14 lines
2.0 KiB
Plaintext
14 lines
2.0 KiB
Plaintext
UserParameter=omreport-system,sudo /opt/dell/srvadmin/bin/omreport system -fmt ssv | grep "Main System Chassis" | cut -d ";" -f 1 | grep -c "Ok"
|
|
UserParameter=omreport-storage[*],sudo /opt/dell/srvadmin/bin/omreport storage $1 | grep Status | cut -d ":" -f 2 | grep -c Ok
|
|
UserParameter=omreport-storage-controller,sudo /opt/dell/srvadmin/bin/omreport storage controller | grep Status | cut -d ":" -f 2 | grep -c -e Ok -e "Non-Critical"
|
|
UserParameter=omreport-storage-battery,sudo /opt/dell/srvadmin/bin/omreport storage battery | grep -e Status -e State | cut -d ":" -f 2 | grep -c -e Ok -e Charging
|
|
UserParameter=omreport-chassis[*],sudo /opt/dell/srvadmin/bin/omreport chassis -fmt ssv | grep "$1" | cut -d ";" -f 1 | grep -c "Ok"
|
|
UserParameter=omreport-chassis-pwrmonitoring,sudo /opt/dell/srvadmin/bin/omreport chassis pwrmonitoring | grep "Status" | cut -d ":" -f 2 | grep -c "Ok"
|
|
UserParameter=omreport-chassis-pwrusage,sudo /opt/dell/srvadmin/bin/omreport chassis pwrmonitoring | grep Reading | head -1 | cut -d ":" -f 2 | tr -d " A-Z"
|
|
UserParameter=omreport-chassis-hwperformance,sudo /opt/dell/srvadmin/bin/omreport chassis hwperformance | grep "Status" | cut -d ":" -f 2 | grep -c "Normal"
|
|
UserParameter=omreport-chassis-firmware,sudo /opt/dell/srvadmin/bin/omreport chassis firmware -fmt ssv | grep DRAC | cut -d ";" -f 2
|
|
UserParameter=omreport-chassis-bios,sudo /opt/dell/srvadmin/bin/omreport chassis bios -fmt ssv | grep Version | cut -d ";" -f 2
|
|
UserParameter=omreport-storage-pdisk-status, sudo /opt/dell/srvadmin/bin/omreport storage pdisk controller=0 | grep "^Status" | grep -v ": Ok" | wc -l
|
|
UserParameter=omreport-storage-pdisk-state, sudo /opt/dell/srvadmin/bin/omreport storage pdisk controller=0 | grep "^State" | grep -v -e ": Online" -e ": Ready" | wc -l
|
|
UserParameter=omreport-tag, sudo /opt/dell/srvadmin/bin/omreport system summary | grep 'Chassis Service Tag' | awk -F ': ' '{ print $2}'
|
|
UserParameter=omreport-hardware, sudo /opt/dell/srvadmin/bin/omreport system summary | grep 'Chassis Model' | awk -F ': ' '{ print $2}' |