From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079058315692.tru64-unix-managers.marc@archive.invalid> From: Wayne Thompson Date: Sun, 04 Jul 1999 14:43:59 +0000 To: tru64-unix-managers Subject: iostat [drive...] X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079058315692 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@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@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