Thanks for even looking at this
I have a SNMP script that pull 3 OIDs from a device:
Code:
snmpget -v 1 -Ovq -r 0 -c public 10.75.131.181 .1.3.6.1.4.1.11268.2.1.1.2.29.1.1.4.3.1 .1.3.6.1.4.1.11268.2.1.1.2.29.1.1.4.8.1 .1.3.6.1.4.1.11268.2.1.1.2.29.1.1.4.11.1 | sed -n '1h;2,$H;${g;s/\n/,/g;p}' >> test
When I run the script I get the following:
Quote:
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.11268.2.1.1.2.29.1.1.4.11.1
|
Code:
# cat test
15657,2466
How can I set it to output the error to the file?
Example :
Code:
# cat test
15657,2466,NA
Thanks in advance for you help or suggestion.
SeeFor