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.
If the information you're interested is there, but just too detailed, use some parsing/scripting tool to make it more readable.
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.
sh ip ospf nei det | inc ptime
should give you just the uptimes
Hope to help
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
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
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