#
Show CDP interfaces and neighbors
#
URL
frinx-cdp:cdp
#
OPENCONFIG YANG
{
"cdp": {
"interfaces": {
"interface": [
{
"name": "<intf-id>",
"state": {
"name": "<intf-id>",
"enabled": true
},
"config": {
"name": "<intf-id>",
"enabled": true
},
"neighbors": {
"neighbor": [
{
"id": "<nei-id>",
"state": {
"port-id": "<port-id>"
}
}
]
}
}
]
}
}
}
#
OS Commands
#
Cisco IOS Classic (15.2(4)S5) / XE (15.3(3)S2)
#
CLI
R121#show cdp interface <intf-id> is up, line protocol is up Encapsulation ARPA Sending CDP packets every 60 seconds Holdtime is 180 seconds R121#sh lldp neighbor <intf-id> detail | include System Name Device ID: <nei-id> Interface: FastEthernet0/0, Port ID (outgoing port): <port-id>
#
Unit
Unit version range: 3.1.1.rc1-frinx
Link to github : ios-unit
#
Cisco XR 6.1.2
#
Netconf
RP/0/0/CPU0:PE1#show cdp neighbor Tue Oct 31 13:05:52.238 UTC 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 <nei-id> Mg0/0/CPU0/0 160 R Cisco 720 <port-id>
#
Device YANG
Link to github : xml-sample
#
Unit
Unit version range: 3.1.1.rc1-frinx
Link to github : xr-unit