SNMP OUTPUT OPTIONS - How do I get the OID response value only?
问题 I have to go through and collect a few OIDs from some SNMP enabled network printers with a BASH script I have been working on. My Request: snmpget -v2c -c public 192.168.0.77 .1.3.6.1.2.1.1.1 .1.3.6.1.2.1.1.2 My Actual Response: .1.3.6.1.2.1.1.1 = Counter32: 1974 .1.3.6.1.2.1.1.2 = Counter32: 633940 The Desired Response: 1974 633940314 (just the oid values only) I looked and tested several options using the resource from the site below: http://www.netsnmp.org/docs/man/snmpcmd.html#lbAF -Oq