i have the following SNMP Command
snmpget -v 1 -c COMMUNITY -t 2 HOST:161 1.3.6.1.4.1.24681.1.2.1.0 | awk '{print $4 $4}' | sed 's/.\(.*\)...../\1/'
that returns a string
9.10
what is percent value in the worng decimal.
I want to multiplicate this with 10 to make it correct:
91.0
How can I do this with the command above?
Thanks! John
The snmpget
command outputs the string
iso.3.6.1.4.1.24681.1.2.1.0 = STRING: "9.10 %"
awk '{print $4 $4}'
seems strange... – JJoao Jan 29 '21 at 18:52