Either what frank already suggested or "iostat". Syntax is similar to vmstat and you might want to pipe into grep to get only certain disks.
For instance:
will sample in 1-second-intervals until interrupted (^C) and only show hdisk20-hdisk29.
Beware when interpreting busy-rates (the "tm_acct%" column): 100% does NOT mean that the disk is at its limit!
There is a sensor which queries the disk in regular intervals. If the disk is busy at the time the query takes place it answers "busy", otherwise "idle". by totalling and comparing the two numbers the "tm_acct%" is calculated. 100% might therefore either mean that the disk is at its capacity limit OR that the disk is getting a lot of small requests, which makes it always busy, but not to its full I/O-bandwidth capacity.
I hope this helps.
Last edited by Neo; 09-17-2008 at 01:09 PM..
Reason: fixed code tags
I'm just learning UNIX and I'm trying to do the following:
Write a script called details.bash that, for each file in the working directory, prints the filename, the # of lines, and the # of words to to some output file, like this:
filename1 73 431
filename2 5 21
It's probably a stupid... (1 Reply)
What do others use for measuring I/O statistics? I'd like something versatile, as in being able to watch (like iostat, but easier to trend), generate load (like iozone, but more realistic), and perform somewhat generalized benchmarks (like bonnie, but more current.) It would scale from a few... (0 Replies)
I recieved this out put below soemhow. Unfortunatly I did not write down the command I used to get it. Can someone tell me what command I use to gather these stats?
OS = AIX 5.3 64Bit
System Model: IBM,7026-6H1
Machine Serial Number:... (2 Replies)
Hi,
I am using the below shell script to update the webalizer stats:
#!/bin/bash
username='elogic1'
domain='abcd.com'
path_to_webalizer='/hsphere/shared/bin/webalizer'
path_to_logs='/hsphere/local/home/elogic1/logs/abcd.com'... (4 Replies)
So, I have a php program that i need to delete ALL files in a directory that are older than a certain age.
<?php
/* Get file stat */
$stat = stat('/apps/security/ajaba');
This is as far as I've been able to get. I know in shell programming you can easily do something like this. but I'm... (2 Replies)
Hi,
I am required to build up a stats out of returned output. Something like given below. I would like first string in first column with a heading, and so on.
Is there any way I could do it, while adding something after the command, or any other way.
bash-2.05$ grep -i... (12 Replies)
Please help me with a shell script to get the stats on many subdirectories (sub1), (sub2) etc under a mother directory (big)
/big
|
|_______sub1
|_______sub2
|_______sub3
---------
I want to know
1. What is the last file accessed in each subdirectory with date and by whom
2.... (2 Replies)
Discussion started by: digipak
2 Replies
LEARN ABOUT OSF1
iostat
iostat(1) General Commands Manual iostat(1)NAME
iostat - Reports I/O statistics
SYNOPSIS
iostat [drive...] [interval] [count]
OPERANDS
Forces iostat to display specific drives. If drive is not specified (or the specified drive does not exist on the system or cluster,
iostat displays the first two drives (even if more than two disk drives are configured in the system). Causes iostat to report once each
interval seconds. The first report is for all time since the system was last booted, and each subsequent report is for the last interval
only.The value must not be 0. Specifies the number of reports. For example, iostat 1 10 would produce 10 reports at 1-second intervals.
You cannot specify count without interval because the first numeric argument to iostat is assumed to be interval.
DESCRIPTION
The iostat command reports the following information: For terminals (collectively), the number of characters read and written per second.
For each disk, the number of transfers per second and bytes transferred per second (in kilobytes). For the system, the percentage of time
the system has spent in user mode, in user mode running low priority (nice) processes, in system mode, and idling.
To compute this information, iostat counts data transfer completions, the number of words transferred for each disk, and the collective
number of input and output characters for terminals. Also, each sixtieth of a second, iostat examines the state of each disk and makes a
tally if the disk is active.
When you issue an iostat command on a cluster member, it displays statistics only for those disks that are local to the member and that
member's usage of those shared disks that it has mounted. It displays 0 for other disks in the cluster (those it doesn't have mounted),
regardless of whether they are on the shared bus or are local to some other member.
EXAMPLES
The output from this example displays cpu, terminal, and disk statistics for the first two disks on the system providing 5 reports at 1
second intervals:
# iostat 1 5
tty floppy1 dsk9 cpu
tin tout bps tps bps tps us ni sy id
0 3 0 0 0 0 1 0 4 95
4 58 0 0 0 0 1 0 2 97
1 53 0 0 0 0 0 0 2 98
5 59 0 0 0 0 1 0 1 98
6 60 0 0 0 0 1 0 2 97
The second example specifies device names in the command:
# iostat dsk2 dsk3 cdrom2
tty dsk2 cdrom2 dsk3 cpu
tin tout bps tps bps tps bps tps us ni sy id
0 13 11 5 5 2 2427 1213 0 1 1 98
SEE ALSO Commands:vmstat(1)iostat(1)