Operating System - HP-UX
1753297 Members
6428 Online
108792 Solutions
New Discussion юеВ

How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

 
SOLVED
Go to solution
Leo Lai
Occasional Contributor

How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

Hi, I was wondering how to get kb read per sec, kb written per sec, and percentage of disk busy for network and user file systems on HP-UX.

On Solaris, I use `iostat -x` to get this information. I need something similar on HP. Any help is appreciated.
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

I think you might want to try "sar -b" or "sar -d".


Pete

Pete
Rick Garland
Honored Contributor

Re: How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

The sar command can be of use.

'sar -d' for disk info.

iostat is available on HPUX as well

Also you can use Glance. This is a cost product but is available for a 60 day trial.
James R. Ferguson
Acclaimed Contributor

Re: How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

Hi Leo:

Have a look at 'sar' (see the manpages) and also 'glance'. The later must be licensed, but is a "must-have" on any production server. A trial version is available on the Application CD/DVDs.

Regards!

...JRF...
Muthukumar_5
Honored Contributor

Re: How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

Use this script:

#!/bin/sh
#activity.sh

clear
echo
uname -a
echo

while [ 1 ]
do

echo "Report buffer activity"
echo
sar -b 5,5 | tail -2
echo

echo "Disk activity"
echo
sar -d 5,5 | tail -2
echo

sleep 5
done

### END ###
exit 0


Note: Use ctrl + c to close the script.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

Hello, You can use "Glance" or Glance plus for this purpose. You can download free/trial version from,

http://h21007.www2.hp.com/dspp/dld/dld_DownloadsListingPage_IDX/1,2381,11169,00.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Frank de Vries
Respected Contributor

Re: How to report disk utilization such as kb read per sec, kb written per sec, % disk busy

vmstat -d 5
Look before you leap