![](http://pdfasset.owneriq.net/6/90/69029205-8bce-4051-bf2a-3f7a074bd3a4/69029205-8bce-4051-bf2a-3f7a074bd3a4-bg2f2.png)
-172
show ip ospf database
Use this command to show information about different OSPF Link State
Advertisements (LSAs) stored in this router’s database.
Syntax
show ip ospf [area-id] database [adv-router [ip-address]]
show ip ospf [area-id] database [asbr-summary] [link-state-id]
show ip ospf [area-id] database [asbr-summary] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [asbr-summary] [link-state-id] [self-originate] [link-state-id]
show ip ospf [area-id] database [database-summary]
show ip ospf [area-id] database [external] [link-state-id]
show ip ospf [area-id] database [external] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [external] [link-state-id] [self-originate] [ip-address]
show ip ospf [area-id] database [network] [link-state-id]
show ip ospf [area-id] database [network] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [network] [link-state-id] [self-originate] [link-state-id]
show ip ospf [area-id] database [nssa-external] [link-state-id]
show ip ospf [area-id] database [nssa-external] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [nssa-external] [link-state-id] [self-originate] [link-state-id]
show ip ospf [area-id] database [router] [link-state-id]
show ip ospf [area-id] database [[router] [adv-router [ip-address]]
show ip ospf [area-id] database [router] [self-originate] [link-state-id]
show ip ospf [area-id] database [self-originate] [link-state-id]
show ip ospf [area-id] database [summary] [link-state-id]
show ip ospf [area-id] database [summary] [link-state-id] [adv-router [ip-address]]
show ip ospf [area-id] database [summary] [link-state-id] [self-originate] [link-state-id]
• area-id - Area defined for which you want to view LSA information.
(This item must be entered in the form of an IP address.)
• adv-router - IP address of the advertising router. If not entered,
information about all advertising routers is displayed.
• ip-address - IP address of the specified router. If no address is entered,
information about the local router is displayed.
• asbr-summary - Shows information about Autonomous System
Boundary Router summary LSAs.
• link-state-id - The network portion described by an LSA. The
link-state-id entered should be:
Area The area from which this route was learned
SPF No The number of times the shortest path first algorithm has been
executed for this route
Field Description