cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19409
Views
20
Helpful
9
Replies

Display OSPF uptime

patrickpaez
Level 1
Level 1

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

paolo bevilacqua
Hall of Fame
Hall of Fame

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

Giuseppe Larosa
Hall of Fame
Hall of Fame

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

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

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

aldoleiva
Level 1
Level 1

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

Helpful !!!!!

Try this

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

usharanig
Level 1
Level 1

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

Natslaug
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: