Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for performance monitoring

Status
Not open for further replies.

ianf

MIS
Mar 23, 2001
183
GB
Hi,

I'm currently trying to write a script to track down a performance problem. The OS is HP-UX 10.20, the servers are a ServiceGuard'd pair of N-Class's.

Ideally I'd like to cron the script to collect a variety of perf stats into separate files, that I can then collate, present and analyse. I suspect the problem lies in the application side rather than the system side, so I'd also like to collect stats on Informix (DS7.3).

The commands I have so far are;
ps -fu [user]
netstat -in
iostat
swapinfo -t
onstat -gath
onstat -u
onstat -giof
onstat -gioq
onstat -gseg
onstat -ntt
onstat -grea

I know just enough scripting to run these in a very basic way (just firing each off using cron and 'cat'ing the output to a different file for each command from within the script), but this is very clunky and not at all elegant (and it leaves the 'header' in for each fresh run)
Could anyone suggest a prettier and more efficient way, and/or some additional commands that would help me narrow down my performance problem ?

Mnay Thanks Ian

"IF" is not a word it's a way of life
 
Hi Ianf,

Why don't you install the free 60day trial version of Measureware and Perfview, and tune Measureware's Parm file to look specifically for Informix processes. You can extract Measureware logs into an Excel format, so that you can produce graphs within Excel.

If you are set on using manual means, you could also use sar (if you turn on system accounting).
Also try iostat and vmstat.

Regards
Queenie
 
Thanks Queenie,

Unfortunately I am separated from the machines by several seas, so a little(ish) script is really the only way to go.
Looking closer at sar though.

Ian Ian

"IF" is not a word it's a way of life
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top