projects
/
gnt-info
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finish machine setup to test upgrade
[gnt-info]
/
smart-megaraid.sh
diff --git
a/smart-megaraid.sh
b/smart-megaraid.sh
index
cfae4b5
..
35db0c9
100755
(executable)
--- a/
smart-megaraid.sh
+++ b/
smart-megaraid.sh
@@
-4,7
+4,7
@@
# smart-megaraid.sh '^# 1' # default without args
# SMART="-t long" smart-megaraid.sh # execute smart command
# smart-megaraid.sh '^# 1' # default without args
# SMART="-t long" smart-megaraid.sh # execute smart command
-pattern='(^# [1-2]|test remaining|Hours|Error|Serial|Model|Firmware)'
+pattern='(^# [1-2]|test remaining|Hours|Error|Serial|Model|Firmware
|Load|Reallocated|Pending|failure
)'
test ! -z "$1" && pattern=$*
did_megaraid=0
test ! -z "$1" && pattern=$*
did_megaraid=0
@@
-31,4
+31,4
@@
lsblk --noheadings --scsi -o name | while read drive ; do
fi
done
fi
done
-egrep "$pattern" /dev/shm/smart.* | grep -v -- '- *0$' | cut -d. -f2- | sed -e 's/:/\t/'
+egrep
-i
"$pattern" /dev/shm/smart.* | grep -v -- '- *0$' | cut -d. -f2- | sed -e 's/:/\t/'