cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1657
Views
7
Helpful
13
Replies

How to check CDP Neighbor UPTIME

ALI12
Level 1
Level 1

Hello Team,

Does there's anyway to check CDP Neighbor Uptime on :cisco WS-C6506-E

Thanks in Advance 

 

13 Replies 13

Max Jobs
Level 1
Level 1

Hi buddy,

Don't hesitate to use this command:

show cdp neighbor detail

 

Thanks @Max Jobs for your reply,

I used it but not showing the neighbor UpTime 

Cdp uptime ? Can you more elaborate.

Uptime of neighbor through cdp?

MHM

yes @MHM Cisco World 

that's what I mean , 

Uptime of neighbor through cdp

Let me check cdp tlv' if there is way to send uptime as cdp tlv.

Update you today 

Thanks 

MHM

I have not seen this as a configurable TLV anywhere before. Please do correct me if I am wrong.

See the following documentation: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/cdp/configuration/15-mt/cdp-15-mt-book/nm-cdp-secure-cdp.html

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

version <<- since we can know uptime by show version then I was thinking using TLV version to get some info from CDP 
unfortunately in me lab I can not use this TLV 
@ALI12 try if you can use tlv version

if not work then there is no other way

show cdp neighbor detail

in end there is IP device use as mgmt IP use it to access and do show version 

thanks 

MHM 

Max Jobs
Level 1
Level 1

ALI, If you mean timmer or holdtime, here is some commands:

DescriptionCommand

Configure CDP Timer

HQ_Router(config)# cdp timer 100

Configure CDP Holdtime

HQ_Router(config)# cdp holdtime 200

 

DescriptionCommand

Enter privileged EXEC mode (Enter your password if prompted)

HQ_Router>enable

Display information about neighboring devices

HQ_Router#show cdp neighbors

Display detailed information about neighboring devices

HQ_Router#show cdp neighbors detail

Display detailed information about neighboring devices 

HQ_Router# show cdp entry *

Display IP addresses of each directly connected neighbor

HQ_Router#show cdp entry * protocols 

Display IOS version of each directly connected neighbor 

HQ_Router# show cdp entry * version

I mean Uptime of neighbor through cdp , 

I think as @Torbjørn reply,  there's no way to see the uptime of a neighboring device

 

However , thank you @Max Jobs for your reply 

Torbjørn
VIP
VIP

There is unfortunately no way to see the uptime of a neighboring device from CDP directly. That data is simply not included in the CDP frames. You can find the neighbor management IP address with "show cdp neighbor" and log into the device to check uptime with "show version",

Happy to help! Please mark as helpful/solution if applicable.
Get in touch: https://torbjorn.dev

Thanks @Torbjørn for this info

ellisfrh13
Level 1
Level 1

I'm a bit late to this thread, but show cdp neighbor detail should really have the feature where you can see when a neighbour was last seen over the switches uptime. Very good question that should be looked into as a feature!

For example, I've just come across a work scenario where I wanted to see if a when a cisco AP had last been connected to the port. I know what port it should be on as it was the only one connected to the Wireless VLAN for that switch, and it didn't show up in show power inline so I knew it had been disconnected from it's port. I just wanted to know when it had last been seen. Would be useful as it could have been linked to different problem events that we've been experiencing over the past few weeks.

No, CDP (Cisco Discovery Protocol) does not track neighbor uptime directly on a Cisco WS-C6506-E or any other Cisco device.
CDP primarily provides details about directly connected neighbors, such as device ID, platform, IP address, interface, and capabilities, but it does not include uptime information.


Thanks,
Joshqun Ismayilov