Red Hat Bugzilla – Bug 58005
snmpget (4.2.1) does not produce correct output when -O v is specified
Last modified: 2015-03-04 20:10:04 EST
From Bugzilla Helper:
Description of problem:
When 'snmpget' is used with the -O v command line parameters, it should
return just the value, missing the OID from the output.
Version-Release number of selected component (if applicable): 4.2.1
Steps to Reproduce:
1. snmpget -v 1 -O v localhost public .18.104.22.168.22.214.171.124.1.2.2
Actual Results: interfaces.ifTable.ifEntry.ifDescr.2sit0
Expected Results: sit0
This works with 4.2, however has been broken in 4.2.1.
snmpget -v 1 -O v localhost public .126.96.36.199.188.8.131.52.1.2.2
with 4.2 returns: sit0
with 4.2.1 returns: interfaces.ifTable.ifEntry.ifDescr.2sit0
with 4.2.1 without -O v: interfaces.ifTable.ifEntry.ifDescr.2 = sit0
4.2.1 is the version supplied by RHN (updated from 4.2). Using the older
version works, using newer versions of ucd-snmp (net-snmp) also works.
I have spoken to RedHat support about this issue and they suggested filing a bugzilla report. I can confirm that this is a problem.
Here is an example of the command I am trying to use:
/usr/bin/snmpget -v 1 -Cf -Ov localhost mycommunitystring
According to the snmpcmd man page, the -Ov flag is supposed to show just
the value and leave out the OID, but here's the result I get:
Instead of just the amount of memory. This flag was not broken under
the default RedHat 7.1 installation, but broke when the SNMP package was
I am currently running ucd-snmp-4.2.1-4.7.x and
ucd-snmp-utils-4.2.1-4.7.x under RedHat 7.1
The latest version (4.2.3) is available via rawhide now. This should fix this
Read ya, Phil