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
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