1823715 Members
3885 Online
109664 Solutions
New Discussion юеВ

Sar and iostat.

 
Saneesh S
Advisor

Sar and iostat.

Hi All,

I have got a mail saying to collect an "iostat -xntc" output every 10 minutes regarding the performance issue.Is there any option like this for iostat command ?

Regards,
Saneesh S.
6 REPLIES 6
Sudeesh
Respected Contributor

Re: Sar and iostat.

Hi,

I dont see any options like x,n and c. Only option available is t.

#>iostat -t 1 1
tty cpu
tin tout us ni sy id
0 2 0 0 0 100

device bps sps msps

c2t1d0 0 0.0 1.0


To confirm I just tried...


#>iostat -xntc
iostat: illegal option -- x

!!!!


Hope this helps

Sudeesh
The most predictable thing in life is its unpredictability
Bernhard Mueller
Honored Contributor

Re: Sar and iostat.

Saneesh,

this is a Solaris style use of iostat, for HP-UX you have to use a combination of iostat and sar.

Regards,
Bernhard
Bharat Katkar
Honored Contributor

Re: Sar and iostat.

Hi Saneesh,

You can use sar and iostat for monitoring disk activity. See the examples below.
You need to the significance of attributes and it's values it is showing in order to conclude.

# sar -d 1 10

HP-UX ServerA B.11.23 U ia64 05/20/05

08:40:48 device %busy avque r+w/s blks/s avwait avserv
08:40:49 c2t1d0 0.98 0.50 1 2 0.00 7.11
08:40:50 c2t1d0 3.00 0.50 6 96 0.00 4.47
08:40:51
08:40:52 c2t1d0 1.00 0.50 1 16 0.00 9.72
08:40:53 c2t1d0 2.00 0.50 3 48 0.00 10.83
08:40:54
08:40:55 c2t1d0 1.00 0.50 1 4 0.00 6.47
08:40:56 c2t1d0 1.00 0.50 2 32 0.00 8.73
08:40:57
08:40:58

Average c2t1d0 0.90 0.50 1 20 0.00 7.15

# iostat

device bps sps msps

c2t1d0 0 0.0 1.0
c2t0d0 0 0.0 1.0
c4t0d0 0 0.0 1.0
c4t0d4 0 0.0 1.0
c4t0d3 0 0.0 1.0
c4t0d5 0 0.0 1.0
c4t0d6 0 0.0 1.0
c4t0d2 0 0.0 1.0

# iostat -h
iostat: illegal option -- h
usage: iostat [ -t ] [ interval [ count ] ]


Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Devender Khatana
Honored Contributor

Re: Sar and iostat.

Hi,

Out of these four (-xntc) only thr valid options in HPux.Run this at every 10 Minutes.

#iostat -t 10 10
( Will collect 10 samples at an interval of 10 seconds each)
Other commands to look into for HPUX will be sar and vmstat.


HTH,
Devender
Impossible itself mentions "I m possible"
Bill Hassell
Honored Contributor

Re: Sar and iostat.

iostat is virtually useless on today's disks, especially for disk arrays. sar provides some crude information about physical disks, still not very useful. It sounds like the mail request came from someone unfamiliar with HP-UX. If you have performance issues, the first step is to load and run GlancePlus. You'll also need the HP-UX 11i Tuning and Performance book by Bob Sauers.


Bill Hassell, sysadmin
Bharat Katkar
Honored Contributor

Re: Sar and iostat.

I have one performace cook book ... Attached.
Regards,
You need to know a lot to actually know how little you know