Bug 144917

Summary: snmpwalk has extra carriage return in output
Product: Red Hat Enterprise Linux 4 Reporter: Stephen John Smoogen <smooge>
Component: net-snmpAssignee: Radek Vokál <rvokal>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-23 13:10:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen John Smoogen 2005-01-12 18:49:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
We are evaluating net-snmp in RHEL-3 and onward to replace our older
Debian boxes. A problem in our switchwalking and autoblocking code was
found to be with an extra carriage return that 

snmpwalk -v 1 -c public -OQn 192.168.114.28 .1.3.6.1.2.1.17.4.3.1.1

5.1 SNMP shows this:

.1.3.6.1.2.1.17.4.3.1.1.0.224.129.42.189.239 = "00 E0 81 2A BD EF "
.1.3.6.1.2.1.17.4.3.1.1.8.0.9.215.46.79 = "08 00 09 D7 2E 4F "
.1.3.6.1.2.1.17.4.3.1.1.8.0.32.168.238.69 = "08 00 20 A8 EE 45 "

5.2 SNMP shows this

.1.3.6.1.2.1.17.4.3.1.1.0.208.183.189.145.97 = "00 D0 B7 BD 91 61
"
.1.3.6.1.2.1.17.4.3.1.1.0.208.183.189.188.194 = "00 D0 B7 BD BC C2
"
.1.3.6.1.2.1.17.4.3.1.1.0.224.43.0.0.1 = "00 E0 2B 00 00 01
"
.1.3.6.1.2.1.17.4.3.1.1.0.224.129.42.189.96 = "00 E0 81 2A BD 60
"
.1.3.6.1.2.1.17.4.3.1.1.0.224.129.42.189.239 = "00 E0 81 2A BD EF
"
.1.3.6.1.2.1.17.4.3.1.1.8.0.9.215.46.79 = "08 00 09 D7 2E 4F
"
.1.3.6.1.2.1.17.4.3.1.1.8.0.32.168.238.69 = "08 00 20 A8 EE 45
" 

There seems to be an extra carriage return after the mac address.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. snmpwalk your switches
2. see bad data
3.
    

Additional info:

Trying to work out patch.. but slow going on my part.

Comment 1 Stephen John Smoogen 2005-01-12 19:49:08 UTC
*** Bug 144928 has been marked as a duplicate of this bug. ***

Comment 2 Stephen John Smoogen 2005-01-12 20:23:22 UTC
It looks like the extra \n is being added before the printout. Doing a
 -D ALL to the command line showed items like this:

trace: snmp_pdu_parse(): snmp_api.c, 4339:
dumph_recv:         Value
dumpx_recv:          04 06 08 00 20 A8 EE 45

dumpv_recv:            String:  .. ..E
trace: sprint_realloc_by_type(): mib.c, 1975:

These are not in the 5.1.2 Debug

Comment 3 Radek Vokál 2005-02-23 13:10:08 UTC
Fixed, will appear in rawhide.