Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Display OSPF uptime

Is there a nicer way to display the OSPF uptime of neighbors like "show ip bgp sum" does? Currently the only way is to use "show ip ospf ne det". But the output of that is too detailed to look over quickly.

We have a large network and when many OSPF adjacency's bounce at the same time, it's hard to tell if they've come back up, how long they've been up, or how long it has been down without having to compare it against the log file.

Hall of Fame Super Gold

Re: Display OSPF uptime

If the information you're interested is there, but just too detailed, use some parsing/scripting tool to make it more readable.

Hall of Fame Super Silver

Re: Display OSPF uptime

Hello Patrick,

if your IOS supports it

sh ip ospf interface summary

is very handy and can tell you how many neighbors per interface are alive.

Otherwise you can easily filter

sh ip ospf neigh detail using | include or | begin.

for example

sh ip ospf nei det | inc ptime

should give you just the uptimes

Hope to help


New Member

Display OSPF uptime

try... ( sh ip ospf nei det | i  Neighbor)

SPMB-SW1#sh ip ospf nei det | i  Neighbor

Neighbor, interface address

    Neighbor priority is 1, State is FULL, 6 state changes

    Neighbor is up for 3w1d

Running on Cisco 3750-X


New Member

Try this

Try this

show ip ospf nei det | i Neighbor|

New Member

Try this,

Try this,

sh ip protocols.

It will show uptime for all ospf neighbors together under ospf protocol under "Last update".

It will be easier to view than sh ip ospf neigh

CreatePlease to create content