cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3510
Views
0
Helpful
4
Replies

net snmp cdp

IliaVolotov
Level 1
Level 1

hello

when using snmpwalk on 2960 to get cdp neighbours information, I get the output like this:

C:\usr\bin>snmpwalk -v 2c -c R0b0ts21 10.242.48.13 .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.10101.1 = Hex-STRING: 0A F2 30 0E
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10102.15 = STRING: "
т0      "
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10103.16 = Hex-STRING: 0A F2 30 10
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10104.3 = Hex-STRING: 0A F2 30 11
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10105.20 = Hex-STRING: 0A F2 30 12
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10111.10 = Hex-STRING: 0A F2 30 01
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10112.11 = Hex-STRING: 0A F2 30 01

C:\usr\bin>snmpwalk -v 2c -c R0b0ts21 10.242.48.13 .1.3.6.1.4.1.9.9.23.1.2.1.1.6

SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.6.10101.1 = STRING: "C2960_6k1"
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.6.10102.15 = STRING: "C2960_6k2"
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.6.10103.16 = STRING: "C2960_6k3"
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.6.10104.3 = STRING: "C2960_6k4"
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.6.10105.20 = STRING: "C2960_6k5"
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.6.10111.10 = STRING: "6509-core2"
SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.6.10112.11 = STRING: "6509-core2"

C:\usr\bin>

with a strange string

SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10102.15 = STRING: "

т0      " instead of ip address.

And it works absolutely correct with several other switches with same images

What could be the source of the problem?

4 Replies 4

ngoldwat
Level 4
Level 4

Hi, 

What is the result when you walk cdpCacheAddressType?

SNMPv2-SMI::enterprises.9.9.23.1.2.1.1.4.10102.15

cdpCacheAddress


DESCRIPTION    "The (first) network-layer address of the device's SNMP-agent as reported in the most recent CDP message. For example, if the the corresponding instance of cacheAddressType had the value 'ip(1)', then this object would be an IP-address."

cdpCacheAddressType

DESCRIPTION    "An indication of the type of address contained in the corresponding instance of cdpCacheAddress."

SYNTAX        Integer { ip(1), decnet(2), pup(3), chaos(4), xns(5), x121(6), appletalk(7), clns(8), lat(9), vines(10), cons(11), apollo(12), stun(13), novell(14), qllc(15), snapshot(16), atmIlmi(17), bstun(18), x25pvc(19), ipv6(20), cdm(21), nbf(22), bpxIgx(23), clnsPfx(24), http(25), unknown(65535)}

thanks i solved this problem by loading mib file to my net-snmp

C:\usr\bin>snmpwalk  -m CISCO-CDP-MIB -c R0b0ts21 -v 2c 10.242.48.13 .1.3.6.1.4.

1.9.9.23.1.2.1.1.4

CISCO-CDP-MIB::cdpCacheAddress.10101.1 = STRING: a:f2:30:e

CISCO-CDP-MIB::cdpCacheAddress.10102.15 = STRING: a:f2:30:9

CISCO-CDP-MIB::cdpCacheAddress.10103.16 = STRING: a:f2:30:10

CISCO-CDP-MIB::cdpCacheAddress.10104.3 = STRING: a:f2:30:11

CISCO-CDP-MIB::cdpCacheAddress.10105.21 = STRING: a:f2:30:12

CISCO-CDP-MIB::cdpCacheAddress.10111.10 = STRING: a:f2:30:1

CISCO-CDP-MIB::cdpCacheAddress.10112.11 = STRING: a:f2:30:1

☻ ☺
Level 1
Level 1

try

snmpwalk -c xxx -v2c -Ox  x.x.x.x  cdpCacheAddress

Hi ,This is a thank-you after 6 years

Review Cisco Networking for a $25 gift card