Just some fix for empty return value:
Code: Select all
/usr/bin/snmpget -v 2c -Ovq -c public $1 .1.3.6.1.4.1.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 | sed 's/"//g' | sed 's/:[[:blank:]]/:0 /g'
Code: Select all
/usr/bin/snmpget -v 2c -Ovq -c public $1 .1.3.6.1.4.1.18689.0.1.4.1.2.14.100.110.115.99.97.99.104.101.45.115.116.97.116.115.1 | sed 's/"//g' | sed 's/:[[:blank:]]/:0 /g'