Display OSPF uptime

Unanswered Question
Aug 27th, 2009
User Badges:

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
paolo bevilacqua Thu, 08/27/2009 - 14:44
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

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

Giuseppe Larosa Thu, 08/27/2009 - 22:52
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

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


aldoleiva Sun, 12/08/2013 - 19:54
User Badges:

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


usharanig Fri, 10/14/2016 - 22:58
User Badges:

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


This Discussion