1826398 Members
3489 Online
109692 Solutions
New Discussion

sar -v output

 
Ruben Cardenal_2
Occasional Contributor

sar -v output

Hi,

Is there any (easy) way of having the info returned by sar -v in a porcentual way?

tia
6 REPLIES 6
Norman_21
Honored Contributor

Re: sar -v output

Hi,

I would install Glance Plus which is more efficient and easy to understand. The Trial version should be in one of your CDs.

Hope this help.
"Attitudes are contagious, is yours worth catching"/ My first point was given by SEP on January 31, 2003
Stefan Farrelly
Honored Contributor

Re: sar -v output

As well as glance you should install the measurware collector (scopeux) and then PerfView which will let you create some nice color graphs of any performance statistic you want.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Michael Steele_2
Honored Contributor

Re: sar -v output

Is that punctual?

sar -v 5 5 is typical. reports every 5 seconds through report 1 to 5.

Here a quick cron for a history of sar every hour of the day, 365 days of the year.

00 * * * * sar -v 5 5 >> /tmp/sar_report
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: sar -v output

I'm attaching a more comprehensive, tested set of sar scripts. They collect data for a user defined amount of time.

I think it might help.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dietmar Konermann
Honored Contributor

Re: sar -v output

To come back to the original question...

sar -v 1 11 | awk '
{
if ($2 != "N/A") next;
split ($4, f, "\/"); printf ("proc-sz %d%, ", f[1] / f[2] *100 +.5);
split ($6, f, "\/"); printf ("inode-sz %d%, ", f[1] / f[2] *100 +.5);
split ($8, f, "\/"); printf ("file-sz %d%\n", f[1] / f[2] *100 +.5);
}'

Please note that looking at inode-sz does not make sense at all.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Geoff Wild
Honored Contributor

Re: sar -v output

If you are looking to document your server(s) with a nice report, check out:

http://cfg2html.port5.com/index.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.