HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

FREE SCRIPT: Basic IOPS on HP-UX servers

 
VK2COT
Honored Contributor

FREE SCRIPT: Basic IOPS on HP-UX servers

Hello,

I found somewhere an old iops.sh script that
was written by Pablo Arnaldi. It calculated basic IO per second.

It did not work properly on HP-UX 11.31 so
I updated it and made some other modifications.
I also tried to contact Pablo Arnaldi but no
response was received yet.

The URL for my updated script:

http://www.circlingcycle.com.au/Unix-sources/HP-UX-simple-iops.sh.txt

The results would looks something like this
on a server with two active disks:

Collecting sar info. Please wait...
-------------------------------------
IO rate = 1.00 IOPS
PV = disk8
-------------------------------------
IO rate = 2.00 IOPS
PV = disk12
=====================================
CURRENT TOTAL 3 IOPS
Thu Mar 17 11:48:47 GMT 2011
myserv2
=====================================

As an alternative, if you want to use Glance
for the same things, the following process
would work:

a) Create Glance advisor script:

# cat glance.txt
REPORT "Glance Export on !SYSTEM_ID"
FORMAT ASCII
HEADINGS ON
SEPARATOR=","
SUMMARY=60
MISSING=0
DATA TYPE GLOBAL
YEAR
DATE
TIME
GBL_DISK_PHYS_READ
GBL_DISK_PHYS_READ_RATE
GBL_DISK_PHYS_WRITE
GBL_DISK_PHYS_WRITE_RATE

b) Run it. An example:

# extract -xp -r glance.txt -g -b 3/18/2011 08:15 -f myserv2.cvs

Glance Export on myserv2
, , , Phys , Phys , Phys , Phys ,
Year, Date , Time , Reads , Rd Rt , Writes , Wr Rt ,
2011,03/18/2011,08:15:00, 25, 0.0, 330, 1.1,
2011,03/18/2011,08:20:00, 28, 0.1, 299, 1.0,
2011,03/18/2011,08:25:00, 51, 0.1, 390, 1.3,
2011,03/18/2011,08:30:00, 22, 0.0, 270, 0.9,
2011,03/18/2011,08:35:00, 13, 0.0, 330, 1.1,
2011,03/18/2011,08:40:00, 24, 0.0, 330, 1.1,
2011,03/18/2011,08:45:00, 15, 0.0, 300, 1.0,
2011,03/18/2011,08:50:00, 31, 0.1, 329, 1.1,
2011,03/18/2011,08:55:00, 79, 0.3, 330, 1.1,
2011,03/18/2011,09:00:00, 55, 0.2, 330, 1.1,
2011,03/18/2011,09:05:00, 16, 0.0, 330, 1.1,
2011,03/18/2011,09:10:00, 45, 0.1, 360, 1.2,
2011,03/18/2011,09:15:00, 115, 0.4, 300, 1.0,
2011,03/18/2011,09:20:00, 349, 1.2, 360, 1.2,

Cheers,

VK2COT
VK2COT - Dusan Baljevic
1 REPLY
VK2COT
Honored Contributor

Re: FREE SCRIPT: Basic IOPS on HP-UX servers

This was an informational message.

No replies were expected :)

VK2COT
VK2COT - Dusan Baljevic