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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hardware error script

Status
Not open for further replies.

vkostovic

IS-IT--Management
Jan 16, 2001
34
US
I would like to write a script that can monitor errors for disk drives, memory and etc.
Any help would be appreciated.

Thanks a lot.
 
Suggest you post a similar thread in the Unix Scripting forum of Tek-Tips. Do a search first for any similar threads others may have posted. Regards.
 
If you are looking to parse the information already provided in /var/adm/messages I would recommend Big Brother
http:://bb4.com. It can provide you with several forms of feedback including email and paging.

If you are attempting to go beyond that take a look at the contents of /usr/platform, especially /usr/platform/sun4u/sbin/prtdiag

Cheers

man(1) is your friend
 
Well, Big Brother site will provide the hardware errors checking scripts only for Sun enterprise servers.. FYI.

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
I always grep for scsi and dd the disk...example

dd if=/dev/rdsk/c0t0d0s0 of=/dev/null bs=8192
if [[ $? != 0 ]]
then
bla
fi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top