Viewing the OSPF link-state database
View the area advertisements and other information in the LSDB to ensure correct OSPF operations.
Procedure
Example
Switch(config-ospf)#show ip ospf lsdb
================================================================================
                            OSPF LSDB - GlobalRouter
================================================================================
                Router Lsas in Area 0.0.0.0
LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------
Router     192.0.2.0       192.0.2.0       617  0x80000031 0xeafd    
Router     198.51.100.0    198.51.100.0    1033 0x80000030 0xa5f2    
                Network Lsas in Area 0.0.0.0
LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------
Network    100.1.1.2       192.0.2.0       617  0x8000002f 0xd038    
                Summary Lsas in Area 0.0.0.0
LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------
                AsSummary Lsas in Area 0.0.0.0
                    
LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------
                NSSA Lsas in Area 0.0.0.0
LSTYPE     LINKSTATEID     ADV_ROUTER      AGE  SEQ_NBR    CSUM
--------------------------------------------------------------------------------
================================================================================
                                AsExternal Lsas
================================================================================
LSTYPE     LINKSTATEID     ADV_ROUTER      ETYPE  METRIC  ASE_FWD_ADDR    AGE  SEQ_NBR    CSUM      
--------------------------------------------------------------------------------
Variable definitions
The following table defines parameters for the show ip ospf lsdb command.
| Variable | Value | 
|---|---|
| adv_rtr {A.B.C.D} | Specifies the advertising router. | 
| area {A.B.C.D} | Specifies the OSPF area. | 
| detail | Provides detailed output. | 
| lsa-type <1-11 | Specifies the link-state advertisement type in the range of 1–11. | 
| lsid {A.B.C.D} | Specifies the link-state ID. | 
| vrf WORD<1-16> | Specifies a VRF by name. | 
| vrfids WORD<0-512> | Specifies a range of VRF IDs. | 




