snmpget won't return correct value of string, tcpdump show correct

Streuli Arno <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I have a strange things with snmpget, I'm doing the following request: (it's request to have the ip address on Cisco switch of CDP neighbor )
[root@lslcact01:~] # snmpget -v2c -cXXXXX se-sve-225 .1.3.6.1.4.1.9.9.23.1.2.1.1.4.10108.3
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10108.3 = STRING: "
UyC"


So the answer is not correct, but if I look on the tcpdump it is:

Frame 2: 98 bytes on wire (784 bits), 98 bytes captured (784 bits)
Ethernet II, Src: Cisco_ff:fc:28 (00:08:e3:ff:fc:28), Dst: Vmware_a0:3d:8a (00:50:56:a0:3d:8a)
Internet Protocol Version 4, Src: 10.85.0.225, Dst: 10.128.1.12
User Datagram Protocol, Src Port: 161, Dst Port: 55051
Simple Network Management Protocol
    version: v2c (1)
    community: telvlsn
    data: get-response (2)
        get-response
            request-id: 56909846
            error-status: noError (0)
            error-index: 0
            variable-bindings: 1 item
                1.3.6.1.4.1.9.9.23.1.2.1.1.4.10108.3: 0a557943
                    Object Name: 1.3.6.1.4.1.9.9.23.1.2.1.1.4.10108.3 (iso.3.6.1.4.1.9.9.23.1.2.1.1.4.10108.3)
                    Value (OctetString): 0a557943


And if i do a snmpwalk like that:
[root@lslcact01:~] # snmpwalk -v2c -cXXXXX se-sve-225 .1.3.6.1.4.1.9.9.23.1.2.1.1.4
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10108.3 = STRING: "
UyC"
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10109.2 = Hex-STRING: 0A 55 00 E0
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10110.1 = Hex-STRING: 0A 55 00 01

As you can see only the first value is wrong, the following are correct !
I'm running net.snmp 5.7.2 on CentOS 3.10.0-514.2.2.el7.x86_64

Arno

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.