# cdp table on a router ... using Cisco command line interface

Skynet>show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
nanomite            Eth 1/6        155          T S       1900      24
minshall.cs.pdx.edu Eth 1/0        152           S        WS-C2924M-Fas 0/1
pcat142a            Eth 1/7        153           S        WS-C2924-XFas 0/19
pcat142a            Fas 3/0        153           S        WS-C2924-XFas 0/1
pcat142b            Fas 0/0        120           S        WS-C2916M-Fas 0/12
pcat113a            Fas 4/0.1      128           S        WS-C2916M-Fas 1/1
160a                Fas 2/0        159           S        WS-C2916M-Fas 1/2

# what tcpdump shows about cdpo0
tcpdump: listening on fxp0
12:26:22.353987 802.1d config 8000.00:d0:79:09:3f:43.801a root 8000.00:03:6b:77:04:83 pathcost 27 age 3 max 20 hello 2 fdelay 15 

12:27:11.031971 CDP v1, ttl=180s
	 DevID 'fab100a'
	 Addr (1): IPv4 131.252.208.60   
	 PortID 'FastEthernet0/13'
	 CAP 0x08
	[!cdp]

# the snmp script for sucking the cdp table out of a router

#!/bin/sh
MIBS=ALL
export MIBS
snmpwalk -v 1 -c $1 $2 enterprises.9.9.23

run it

# ./cdp.sh public dexter.cs.pdx.edu

the result: why?
 
--------------------------------------------------------------------------------
enterprises.9.9.23.1.1.1.1.2.1 = 1
enterprises.9.9.23.1.1.1.1.2.2 = 1
enterprises.9.9.23.1.1.1.1.4.1 = 0
enterprises.9.9.23.1.1.1.1.4.2 = 0
enterprises.9.9.23.1.1.1.1.5.1 = 0
enterprises.9.9.23.1.1.1.1.5.2 = 0
enterprises.9.9.23.1.2.1.1.3.1.3 = 1
enterprises.9.9.23.1.2.1.1.3.2.3 = 1
enterprises.9.9.23.1.2.1.1.4.1.3 =  Hex: 83 FC D7 0E 
enterprises.9.9.23.1.2.1.1.4.2.3 =  Hex: 83 FC D7 0E 
enterprises.9.9.23.1.2.1.1.5.1.3 = "Cisco Internetwork Operating System Software .IOS (tm) C2900XL Software (C2900XL-HS-M), Version 11.2(8)SA5, RELEASE SOFTWARE (fc1).Copyright (c) 1986-1999 by cisco Systems, Inc..Compiled Tue 23-Mar-99 11:44 by rheaton"
enterprises.9.9.23.1.2.1.1.5.2.3 = "Cisco Internetwork Operating System Software .IOS (tm) C2900XL Software (C2900XL-HS-M), Version 11.2(8)SA5, RELEASE SOFTWARE (fc1).Copyright (c) 1986-1999 by cisco Systems, Inc..Compiled Tue 23-Mar-99 11:44 by rheaton"
enterprises.9.9.23.1.2.1.1.6.1.3 = "minshall.cs.pdx.edu"
enterprises.9.9.23.1.2.1.1.6.2.3 = "minshall.cs.pdx.edu"
enterprises.9.9.23.1.2.1.1.7.1.3 = "FastEthernet0/3"
enterprises.9.9.23.1.2.1.1.7.2.3 = "FastEthernet0/5"
enterprises.9.9.23.1.2.1.1.8.1.3 = "cisco WS-C2924M-XL"
enterprises.9.9.23.1.2.1.1.8.2.3 = "cisco WS-C2924M-XL"
enterprises.9.9.23.1.2.1.1.9.1.3 =  Hex: 00 00 00 08 
enterprises.9.9.23.1.2.1.1.9.2.3 =  Hex: 00 00 00 08 
enterprises.9.9.23.1.3.1.0 = 1
enterprises.9.9.23.1.3.2.0 = 60
enterprises.9.9.23.1.3.3.0 = 180

how do we fix this?
