Monday, February 18, 2008

Solaris: How to find disk serial number that need to be replaced

Entry in /var/adm/messages

Feb 14 04:14:50 ebitb2b5 SCSI transport failed: reason 'timeout': giving up
Feb 17 00:12:44 ebitb2b5 scsi: [ID 243001 kern.warning] WARNING: /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100002037e225c6,0 (ssd22):

Entry in #iostat -En

ssd22 Soft Errors: 0 Hard Errors: 1 Transport Errors: 60
Vendor: SEAGATE Product: ST336704FSUN36G Revision: A42D Serial No: 0101D1DLB5
Size: 36.42GB <36418595328>>

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...