Bug 58005 - snmpget (4.2.1) does not produce correct output when -O v is specified
snmpget (4.2.1) does not produce correct output when -O v is specified
Product: Red Hat Linux
Classification: Retired
Component: ucd-snmp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2002-01-04 19:21 EST by Dan Tucny
Modified: 2015-03-04 20:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-01-18 14:13:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan Tucny 2002-01-04 19:21:58 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

How reproducible:

Steps to Reproduce:
1. snmpget -v 1 -O v localhost public .

Actual Results:  interfaces.ifTable.ifEntry.ifDescr.2sit0

Expected Results:  sit0

Additional info:

This works with 4.2, however has been broken in 4.2.1.
snmpget -v 1 -O v localhost public .
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.
Comment 1 Need Real Name 2002-01-18 14:13:14 EST
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 
Comment 2 Phil Knirsch 2002-01-29 10:37:22 EST
The latest version (4.2.3) is available via rawhide now. This should fix this


Read ya, Phil

Note You need to log in before you can comment on or make changes to this bug.