System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX system resource monitoring script

 
SOLVED
Go to solution
ddramos
Occasional Advisor

HP-UX system resource monitoring script

hi guys,

anybody here who has a script that will direct to a file all alerts (warning and error) messages of an hpux system? i would like to capture resource monitoring logs of my system to proactively identify possible hardware failure before its occurence via OS logs.

10 points for the best script. c")

thanks,
ddr
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: HP-UX system resource monitoring script

Attached is one of the pieces i use to check for hardware problems, in this case lbolts. It can easily be adapted for other uses.

Please change the email addy before using this script

I have lots of little pieces, never put them together.

You might want to check Bill McNamara's admin scripts threads.

http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=BR180643&forumId=1

You also might want to go into sam and turn ems on. It can monitor and email on many hardware faults.

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
Mark Grant
Honored Contributor

Re: HP-UX system resource monitoring script

Well, this one is probably a bit unusual, partly because it is two. The first one (HP-UX.sysinfo.sh)reports on CPUS,memory, system boards, iocards, swap, tape drives , interface cards, mounts and disks. The second one (syscompare.pl) runs HP-UX.sysinfo.sh storing the results in a file. It then compares the result with the last time it ran. If there are any differences between the two, it alerts the differences. Currently it alerts to ITO but it is a simple change to make it mail or whatever you like. syscompare.pl is intended to be run at regular intervals via cron. Some things, like netstat -a output changes all the time and it is possible to stop it alerting on things like that.
Never preceed any demonstration with anything more predictive than "watch this"
Mark Grant
Honored Contributor

Re: HP-UX system resource monitoring script

This time I'll really put in the attachments, sorry, hit the button to fast :)
Never preceed any demonstration with anything more predictive than "watch this"
Mark Grant
Honored Contributor

Re: HP-UX system resource monitoring script

And this is the second script. Didn't realise you couldn't do two attachments on itrc.
Never preceed any demonstration with anything more predictive than "watch this"
Karthik S S
Honored Contributor

Re: HP-UX system resource monitoring script

You can consider using EMS for this purpose which can alert you on hardware failures proactively ..

http://docs.hp.com/hpux/onlinedocs/B7612-90015/B7612-90015.html

http://docs.hp.com/hpux/onlinedocs/B5735-90001/B5735-90001.html

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Hoefnix
Honored Contributor

Re: HP-UX system resource monitoring script

quistion asked 2 times.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=430626

Answer in this is the same as Karthik's in this thread, use EMS.

Regards,
Peter