snmpget and snmpwalk return corrupt string instead of hex string when MAC address starts with non zero
Randall C Grimshaw <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <D1ED659D5D76664389FB55EE3E3EE506095CE0B502@suex07-mbx-01.ad.syr.edu> |
From: Randall C Grimshaw the snmpget and snmpwalk apps return a corrupt string instead of a hex string whenever the first number of a MAC address is not 00. We are getting a lot of these numbers on recently purchased Dell computers and the result is devastating. It is as though the apps assume that all MAC addresses begin with 00 to determine how to encode the result and the String encoding has a corrupt pointer. My environment is RedHat Enterprise linux compiled with the following options: zcat net-snmp-5.5.tar.gz | tar xvf - cd net-snmp-5.5 ./configure --prefix=/usr/local/net-snmp/5.5 --disable-agent --enable-old-features --enable-ucd-snmp-compatibility --with-PACKAGE=ucd_snmp make make install sanitized examples: # /usr/local/src/net-snmp-5.5/apps/snmpget -c community routername ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.80.x.x.x.2 RFC1213-MIB::ipNetToMediaPhysAddress.80.x.x.x.4 = Hex-STRING: 00 11 22 33 44 66 # /usr/local/src/net-snmp-5.5/apps/snmpget -c community routername ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.80.x.x.x.3 RFC1213-MIB::ipNetToMediaPhysAddress.80.x.x.x.5 = STRING: "¤ºÛô«X" (this new Dell MAC is known to begin with non 00) # /usr/local/src/net-snmp-5.5/apps/snmpwalk -c community routername ip.ipNetToMediaTable.ipNetToMediaEntry.ipNetToMediaPhysAddress.80 RFC1213-MIB::ipNetToMediaPhysAddress.80.x.x.x.3 = Hex-STRING: 00 11 22 33 44 33 RFC1213-MIB::ipNetToMediaPhysAddress.80.x.x.x.4 = Hex-STRING: 00 11 22 33 44 44 RFC1213-MIB::ipNetToMediaPhysAddress.80.x.x.x.5 = STRING: "¤ºÛô«X" (this new Dell MAC is known to begin with non 00) RFC1213-MIB::ipNetToMediaPhysAddress.80.x.x.x.6 = Hex-STRING: 00 11 22 33 44 66 RFC1213-MIB::ipNetToMediaPhysAddress.80.x.x.x.7 = Hex-STRING: 00 11 22 33 44 77 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users