Figure 1: Example of diagnostic command selection for IRIX
UNAME='uname'
case "$UNAME" in
IRI*)
OS="IRIX"
IOSTAT="sar -d $TIME $REPEATS"
MAIL="/usr/sbin/Mail"
NFSSTAT="/usr/etc/nfsstat -c"
PING="/usr/etc/ping -c $REPEATS $PINGHOST"
PS="/bin/ps -elf"
SAR="/bin/sar -u $TIME $REPEATS"
TOP="${PUBLIC_DOMAIN}/top -S -I -d$REPEATS -s$TIME -b"
NETSTAT="/usr/etc/netstat -in"
VMSTAT="echo VMSTAT_IS_NOT_SUPPORTED_ON_IRIX"
HARDWARE="/bin/hinv"
;;
|