19 Apr
2010
19 Apr
'10
7:41 p.m.
FYI, this is how I fix bb-prtdiag.sh to monitor my solar10 x86 machines(include vmware session).
Problem: bb-prtdiag.sh always report red on x86 solaris
Cause: output prtdiag -v contains "available" keyword which grepped by prtdiag.sh script using "$GREP ail". intended for [F|f]ail by also match "available".
<snip> 1 in use PCI PCI Slot J11 2 in use PCI PCI Slot J12 3 in use PCI PCI Slot J13 4 available PCI PCI Slot J14 <snip>
Fix:
"$GREP ail" changed to "$EGREP -i fail" to catch [F|f]ail exactly.
-- T.J. Yang