display ospf [ process-id ] lsdb [ { [ { router | network | summary | asbr | ase | opaque-as [ origin ] | opaque-area [ origin ] | opaque-link [ origin ] | nssa } [ link-state-id ] ] [ originate-router [ advertising-router-id ] | hostname hostname | self-originate ] } ] [ age { min-value min-age-value | max-value max-age-value } * ]
display ospf [ process-id ] lsdb [ { [ { router | network | summary | asbr | ase | opaque-as [ origin ] | opaque-area [ origin ] | opaque-link [ origin ] | nssa } [ link-state-id ] ] [ originate-router [ advertising-router-id ] | self-originate ] } ] [ age { min-value min-age-value | max-value max-age-value } * ] resolve-hostname
display ospf process-id lsdb [ { router | network | asbr } [ link-state-id ] ] history history-id
Parameter | Description | Value |
---|---|---|
process-id |
Specifies the ID of an OSPF process. |
The value is an integer ranging from 1 to 4294967295. |
router |
Displays historical information about Router LSAs. |
- |
network |
Displays historical information about Network LSAs. |
- |
summary |
Displays information about the network summary LSA. |
- |
asbr |
Displays historical information about ASBR-summary LSAs. |
- |
ase |
Displays information about the AS external LSA. |
- |
opaque-as |
Displays information about the opaque AS LSA. |
- |
origin |
Display the original content of the LSA. |
- |
opaque-area |
Displays information about the opaque area LSA. |
- |
opaque-link |
Displays information about the opaque link LSA. |
- |
nssa |
Displays information about the status of external links in the NSSA. |
- |
link-state-id |
Specifies the LSID of an LSA. |
The value is in dotted decimal notation. |
originate-router |
Displays the LSA of the advertising router. |
- |
advertising-router-id |
Specifies the router ID of the device that advertises the LSA. |
The value is in dotted decimal notation. |
hostname hostname |
Displays information about the LSDB of a host. |
The value is a string of 1 to 255 case-insensitive characters, spaces not supported. |
self-originate |
Displays information about the self-originated LSA. |
- |
age |
Displays information only about LSAs with the age value in the scope. |
- |
min-value min-age-value |
Displays information about only LSAs with the age value greater than or equal to the min-age-value value. |
The value is an integer ranging from 0 to 3600. |
max-value max-age-value |
Displays information only about LSAs with the age value less than or equal to the max-age-value value. |
The value is an integer ranging from 0 to 3600. |
resolve-hostname |
Displays the hostname resolved from a router ID. |
- |
history history-id |
Displays historical information about the backup LSDB of the specified number. |
The value is 1 or 2. |
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ospf 1 lsdb opaque-as
OSPF Process 1 with Router ID 2.2.2.1
Link State Database
Type : Opq-As
Ls id : 7.0.0.0
Adv rtr : 1.1.1.1
Ls age : 551
Len : 48
Options : E
seq# : 8000003d
chksum : 0xa1ac
Opaque Type: 7
Opaque Id: 0
OSPFv2 Extended Prefix Opaque LSA TLV information:
OSPFv2 Extended Prefix TLV:
Route Type: AS-External
AF: IPv4-Unicast
Flags: 0xc0 (A|N|-|-|-|-|-|-)
Prefix: 31.1.1.0/24
Redistribute-list Sub-TLV:
Flags : --
RouterId : 0x1010101-1,0x0-0
<HUAWEI> display ospf 1 lsdb opaque-area
OSPF Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
Link State Database
Type : Opq-Area
Ls id : 1.0.0.1
Adv rtr : 1.1.1.1
Ls age : 639
Len : 200
Options : E
seq# : 80000001
chksum : 0x2175
Opaque Type: 1
Opaque Id: 1
Opaque lsa information:
00 02 00 b0 00 01 00 01 02 00 00 00 00 02 00 04
0a 01 01 01 00 03 00 04 0a 01 01 01 00 04 00 04
00 00 00 00 00 05 00 04 00 00 00 01 80 02 00 04
00 00 00 01 00 06 00 04 00 00 00 00 00 07 00 04
00 00 00 00 80 00 00 04 00 00 00 00 00 09 00 04
00 00 00 00 00 08 00 20 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 80 01 00 20 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 0a 00 09
00 00 00 00 00 00 00 00 00 00 00 00 00 0c 00 04
00 01 00 01
Type : Opq-Area
Ls id : 4.0.0.0
Adv rtr : 1.1.1.1
Ls age : 940
Len : 32
Options : E
seq# : 80000003
chksum : 0xbdb8
Opaque Type: 4
Opaque Id: 0
Router-Information LSA TLV information:
SR-Algorithm TLV:
Algorithm: SPF
SID/Label Range TLV:
Range Size: 50001
SID/Label Sub-TLV:
Label: 200000
Dynamic Hostname TLV:
Hostname: mckck
Node MSD TLV:
MSD Type : 1
MSD Value : 10
Type : Opq-Area
Ls id : 7.0.0.0
Adv rtr : 1.1.1.1
Ls age : 1158
Len : 48
Options : E
seq# : 80000024
chksum : 0x58fc
Opaque Type: 7
Opaque Id: 0
OSPFv2 Extended Prefix Opaque LSA TLV information:
OSPFv2 Extended Prefix Range TLV:
AF: IPv4-Unicast
Flags: 0x00 (-|-|-|-|-|-|-|-)
Prefix: 5.5.5.5/32
Range: 1
Prefix SID Sub-TLV:
Flags: 0x60 (-|NP|M|-|-|-|-|-)
MT ID: 0
Algorithm: SPF
Index: 1
Area: 0.0.0.1
Link State Database
Type : Opq-Area
Ls id : 8.0.0.0
Adv rtr : 1.1.1.1
Ls age : 13
Len : 56
Options : E
seq# : 8000014a
chksum : 0x7ff8
Opaque Type: 8
Opaque Id: 0
OSPFv2 Extended Link Opaque LSA TLV information:
OSPFv2 Extended Link TLV:
Link Type: P-2-P
Link ID: 2.2.2.2
Link Data: 12.0.0.1
Remote IPv4 Address Sub-TLV:
Remote Address: 12.0.0.2
Local Remote Interface ID Sub-TLV:
Local Interface ID: 9
Remote Interface ID: 0
<HUAWEI> display ospf 1 lsdb opaque-area origin
OSPF Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
Link State Database
Type : Opq-Area
Ls id : 4.0.0.0
Adv rtr : 1.1.1.1
Ls age : 4
Len : 64
Options : E
seq# : 80000003
chksum : 0x71fd
Opaque Type: 4
Opaque Id: 0
Opaque lsa information:
00 08 00 01 00 00 00 00 00 09 00 0c 00 03 e9 00
00 01 00 03 00 3e 80 00 00 07 00 06 48 55 41 57
45 49 00 00 00 0c 00 02 01 0a 00 00
<HUAWEI> display ospf 1 lsdb history 1
Backup Time: 2015-11-12 17:44:30
OSPF Process 1 with Router ID 1.1.1.1
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 2.2.2.2 2.2.2.2 98 36 8000000B 1
Router 1.1.1.1 1.1.1.1 92 36 80000005 1
Network 10.1.1.2 2.2.2.2 98 32 80000004 0
Sum-Net 10.1.1.0 2.2.2.2 286 28 80000001 1
Sum-Net 10.1.1.0 1.1.1.1 282 28 80000001 1
Sum-Asbr 2.2.2.2 1.1.1.1 61 28 80000001 1
<HUAWEI> display ospf lsdb
OSPF Process 1 with Router ID 1.1.1.1
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 1.1.1.1 1.1.1.1 93 48 80000004 1
Router 2.2.2.2 2.2.2.2 92 48 80000004 1
Sum-Net 172.16.1.0 1.1.1.1 1287 28 80000002 2
Sum-Net 192.168.1.0 1.1.1.1 1716 28 80000001 1
Sum-Net 172.17.1.0 2.2.2.2 1336 28 80000001 2
Sum-Net 192.168.2.0 2.2.2.2 87 28 80000002 1
Item | Description |
---|---|
Link Data | Link data. |
Link Type | Link type. |
Link ID | Link ID. |
Type | LSA type: Router, Network, Sum-Net, Sum-Asbr, NSSA, External, Opq-Link, Opq-Area, or Opq-As. |
Ls age | Aging time of the LSA. |
Ls id | Link state ID of the LSA that causes route calculation. |
Adv rtr | Router ID of the device that generates the LSA that causes route calculation. |
Len | LSA length. |
Options | LSDB Options. |
chksum | Check LSDB num. |
Opaque lsa information | Detailed Opaque LSA information. |
Opaque Id | Opaque ID, distinguishing between a type of LSAs from others that are applied to the same type of applications. Opaque type and Opaque ID in an LSA header together specify the link status ID. |
Opaque Type | LSA application type. Value 1 indicates traffic engineering; value 3 indicates OSPF graceful restart. |
OSPFv2 Extended Prefix Range TLV | OSPFv2 Extended Prefix Range TLV information. |
OSPFv2 Extended Prefix TLV | OSPFv2 Extended Prefix TLV information. |
OSPFv2 Extended Link TLV | OSPFv2 Extended Link TLV information. |
OSPFv2 Extended Prefix Opaque LSA TLV information | OSPFv2 extended prefix Opaque LSA TLV information. |
OSPFv2 Extended Link Opaque LSA TLV information | OSPFv2 extended link Opaque LSA TLV information. |
Prefix | Prefix information. |
Prefix SID Sub-TLV | Prefix SID Sub-TLV information. |
Route Type | Route type. |
Flags | Flags in the OSPFv2 Extended Prefix Range TLV. |
Flags | Flags in the OSPFv2 Extended Prefix Range TLV. |
RouterId | Router ID. |
Router-Information LSA TLV information | Router-information (RI) LSA TLV information. |
SR-Algorithm TLV | SR-Algorithm TLV information. |
SID/Label Range TLV | SID/Label Range TLV information. |
SID/Label Sub-TLV | SID/Label Sub-TLV information. |
Range Size | SID range. |
Range | Prefix Range. |
Dynamic Hostname TLV | Dynamic Hostname TLV information. |
Hostname | Name of the host that advertised the route. |
Node MSD TLV | Displays the maximum stack depth TLV information of a node. |
MSD Type | Maximum stack depth type. |
MSD Value | Maximum stack depth. |
MT ID | Multi-topology ID. |
Remote IPv4 Address Sub-TLV | Remote IPv4 Address Sub-TLV information. |
Remote Address | Remote IPv4 address. |
Remote Interface ID | Remote interface ID. |
Local Remote Interface ID Sub-TLV | Local Remote Interface ID Sub-TLV information. |
Local Interface ID | Local interface ID. |
Backup Time | Backup time. |
LinkState ID | Link State ID in the LSA header. |
AdvRouter | Device that advertises or generates LSAs. |
Age | Aging time of the LSA. |
Sequence | Sequence number in the LSA header. |
Metric | Cost. |
Area | Area whose LSDB information needs to be displayed. |
Algorithm | Algorithm, which can be:
|
Label | Start SID of a range. |
AF | Address Family. |
Index | TLV index. |