Create snmp-smart-status.sh

This commit is contained in:
in-famous-raccoon
2020-06-19 21:14:25 +02:00
committed by GitHub
parent b36d3d632f
commit 2e67688b06

8
snmp-smart-status.sh Normal file
View File

@ -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