tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* iostat [drive...]
@ 1999-07-04 14:43 Wayne Thompson
  0 siblings, 0 replies; only message in thread
From: Wayne Thompson @ 1999-07-04 14:43 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-04 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-04 14:43 iostat [drive...] Wayne Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox