Hi,
I'm trying to determine which advfs domains are incuuring the most I/O.
However I'm having trouble with iostat which seems to want to report on
the first four drives regardless of command line arguments.
root_at_zitidar:/usr/local/wayne # cat svcload
#!/bin/sh
for domain in `/sbin/mount | /bin/awk -F# '/ha_dom_/ { print $1}'`
do
disks=`cd /etc/fdmns/$domain; /bin/ls -l | /bin/awk '/dev/ {print $NF}'`
echo /bin/iostat $disks
/bin/iostat $disks
done
root_at_zitidar:/usr/local/wayne # sh svcload
/bin/iostat /dev/rzd112c /dev/rzd113c /dev/rzd120c /dev/rzd121c
tty rz32 rz34 rz65 rz67 cpu
tin tout bps tps bps tps bps tps bps tps us ni sy id
0 2 4 0 2 0 4 0 2 0 0 0 1 99
Notice that the header contains different disks than the command line.
What am I doing wrong. Is there a better way to do this?
TIA,
Wayne
Received on Sun Jul 04 1999 - 14:46:33 NZST