Operating System - HP-UX
1834018 Members
2060 Online
110063 Solutions
New Discussion

Re: script to monitor system performance

 
SOLVED
Go to solution
Jagadesh_2
Regular Advisor

script to monitor system performance


I need a script which can monitor the system performance. I need to do this using scripts.
Single script should provide all information about sar, vmstat, iostat etc.

3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: script to monitor system performance

Attached.

Its adjustable and runs background. Consists of multiple scripts.

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
Jagadesh_2
Regular Advisor

Re: script to monitor system performance

Hi Steve,

I am not able to open the attachment. Can you pls provide the same in a text or word doc pls.
Kent Ostby
Honored Contributor
Solution

Re: script to monitor system performance

Jagadesh. I opened the doc. It creates two files.

Here it is in text:

uname -a > /tmp/HP_info
model >> /tmp/HP_info
uptime >> /tmp/HP_info
swlist -l bundle >> /tmp/HP_info
bdf >> /tmp/HP_info
swapinfo -ta >> /tmp/HP_info
cat /etc/fstab >> /tmp/HP_info
lvlnboot -v >> /tmp/HP_info
vgdisplay -v >> /tmp/HP_info
lanscan >> /tmp/HP_info
ioscan -fn >> /tmp/HP_info
cat /etc/inittab >> /tmp/HP_info
dmesg >> /tmp/HP_info
crontab -l >> /tmp/HP_info
swlist -l fileset >> /tmp/HP_info
/usr/bin/top -f /tmp/HP_perf_info
cat /stand/system >> /tmp/HP_perf_info
nohup sar -qM 1 600 > /tmp/HP_perf_info.report &
nohup sar -uM 1 600 > /tmp/HP_perf_info.cpu &
nohup sar -b 1 600 > /tmp/HP_perf_info.buffer &
nohup sar -d 1 600 > /tmp/HP_perf_info.disk &
nohup sar -w 1 600 > /tmp/HP_perf_info.swap &
nohup sar -v 1 600 > /tmp/HP_perf_info.inode &
sysdef >> /tmp/HP_perf_info
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"