cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
10036
Views
10
Helpful
9
Replies
Beginner

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.

9 REPLIES 9
Hall of Fame Master

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 Expert

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

Giuseppe

Beginner

Re: Display OSPF uptime

I want to know, How to find out down time?
if I'm not found in logs.
Highlighted
VIP Mentor

Re: Display OSPF uptime

Hello,

 

show ip ospf events neighbor

 

should tell you when the neighbor change states. You need to calculate the excact downtime based on the timestamps displayed.

 

Also, under the OSPF process, enable:

 

router ospf 1

log-adjacency-changes detail

Beginner

Display OSPF uptime

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

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

Neighbor 117.xxx.xxx.xxx, interface address 10.22.xxx.xxx

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

    Neighbor is up for 3w1d

Running on Cisco 3750-X

c3750-ipservicesk9-mz.122-55.SE5.bin

Beginner

Re: Display OSPF uptime

Helpful !!!!!

Try this

Try this

show ip ospf nei det | i Neighbor|Neighbor.is

Beginner

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

Beginner

Re: Display OSPF uptime

The command 
show ip ospf nei "Interface name" det
will give you uptime as well

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards