From: Wayne Thompson <me () hal ! com>
To: tru64-unix-managers
Subject: iostat [drive...]
Date: Sun, 04 Jul 1999 14:43:59 +0000 [thread overview]
Message-ID: <96079058315692.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1999-07-04 14:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox