1156 OSPF Commands
show ip ospf database
Use the show ip ospf database command in Privileged EXEC mode to display
information about the link state database when OSPF is enabled. If
parameters are entered, the command displays the LSA headers. Use the
optional parameters to specify the type of link state adverti sements to display.
Syntax
show ip ospf [
area-id
] database [{asbr-summary | external | network | nssa-
external | router | summary}][

ls-id

] [adv-router [
ip-address
] | self-originate]
area-id
— Identifies a specific OSPF area
for which link state database
information will be displayed.
asbr-summary — Display the autonomous system boundary router (ASBR)
summary LSAs.
external — Display the external LSAs.
network — Display the network LSAs.
nssa-external — Display NSSA external LSAs.
router — Display router LSAs.
summary — Display the LSA database summary information.
ls-id — Specifies the link state ID (LSID). (Range: IP address or an integer
in the range of 0–4294967295)
adv-router
— Display the LSAs that are restricted by the advertising
router. To specify a router, enter the IP address of the router.
self-originate — Display the LSAs in that are self-originated.
Default Configuration
This command has no default configuration.
Command Mode
Privileged EXEC mode.
User Guidelines
Information is only displayed if OSPF is enabled.
2CSPC4.XCT-SWUM2XX1.book Page 1156 Monday, October 3, 2011 11:05 AM