- #!/bin/sh
- PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- echo ''
- echo RAID Controller, Array and Drive status:
- echo ''
- cd /var/tmp
- hpacucli controller slot=0 show status 2>/dev/null | sed -n '/^Smart/,$p'
- hpacucli controller slot=0 array all show status 2>/dev/null | grep array
- hpacucli controller slot=0 physicaldrive all show status 2>/dev/null | grep physicaldrive
- for d in 0 1 2 3
- do
- echo ''
- echo -n "SMART status for drive $d: "
- smartctl -H -l selftest -d cciss,$d /dev/ciss0 | sed -n '4,$p'
- done
Raw Paste