diff --git a/snmp-smart-status.sh b/snmp-smart-status.sh new file mode 100644 index 0000000..ae6cf92 --- /dev/null +++ b/snmp-smart-status.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [ "$1" = "-g" ] +then +echo .1.3.6.1.2.1.25.1.10 +echo STRING +smartctl -H /dev/sda | tail -2 | nawk '{print $6}' +fi +exit 0