- show ospf database
- <brief | detail | extensive | summary>
- <instance instance-name>
- <logical-system (all | logical-system-name)>
- <lsa-filters>
Command introduced before JUNOS Release 7.4.
Display the entries in the Open Shortest Path First version 2 (OSPFv2) link-state database, which contains data about link-state advertisement (LSA) packets.
none — Display standard information about entries in the OSPFv2 link-state database for all routing instances on all logical systems.
brief | detail | extensive | summary — (Optional) Display the specified level of output.
instance instance-name — (Optional) Display all OSPF database information under the named routing instance.
logical-system (all | logical-system-name) — (Optional) Perform this operation on all logical systems or on a particular logical system.
lsa-filters — (Optional) One or more of the following LSA filters. If you specify more than one filter, only LSAs that match all the filters are displayed. For example, the command show ospf database detail router lsa-id 10.0.0.1 displays all router LSAs in all areas that have an LSA identifier of 10.0.0.1.
view
Table 75 describes the output fields for the show ospf database command. Output fields are listed in the approximate order in which they appear.
Table 75: show ospf database Output Fields
user@host> show ospf database
OSPF link state database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.70.103 10.255.70.103 0x80000002 215 0x20 0x4112 48
Router *10.255.71.242 10.255.71.242 0x80000002 214 0x20 0x11b1 48
Summary *23.1.1.0 10.255.71.242 0x80000002 172 0x20 0x6d72 28
Summary *24.1.1.0 10.255.71.242 0x80000002 177 0x20 0x607e 28
NSSA *33.1.1.1 10.255.71.242 0x80000002 217 0x28 0x73bd 36
OSPF link state database, Area 0.0.0.2
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.71.52 10.255.71.52 0x80000004 174 0x20 0xd021 36
Router *10.255.71.242 10.255.71.242 0x80000003 173 0x20 0xe191 36
Network *23.1.1.1 10.255.71.242 0x80000002 173 0x20 0x9c76 32
Summary *12.1.1.0 10.255.71.242 0x80000001 217 0x20 0xfeec 28
Summary *24.1.1.0 10.255.71.242 0x80000002 177 0x20 0x607e 28
NSSA *33.1.1.1 10.255.71.242 0x80000001 222 0x28 0xe047 36
OSPF link state database, Area 0.0.0.3
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.71.238 10.255.71.238 0x80000003 179 0x20 0x3942 36
Router *10.255.71.242 10.255.71.242 0x80000003 177 0x20 0xf37d 36
Network *24.1.1.1 10.255.71.242 0x80000002 177 0x20 0xc591 32
Summary *12.1.1.0 10.255.71.242 0x80000001 217 0x20 0xfeec 28
Summary *23.1.1.0 10.255.71.242 0x80000002 172 0x20 0x6d72 28
NSSA *33.1.1.1 10.255.71.242 0x80000001 222 0x28 0xeb3b 36
The output for the show ospf database brief command is identical to that for the show ospf database command. For sample output, see show ospf database .
user@host> show ospf database detail
OSPF link state database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.70.103 10.255.70.103 0x80000002 261 0x20 0x4112 48
bits 0x0, link count 2
id 10.255.71.242, data 12.1.1.1, Type PointToPoint (1)
TOS count 0, TOS 0 metric 1
id 12.1.1.0, data 255.255.255.0, Type Stub (3)
TOS count 0, TOS 0 metric 1
Router *10.255.71.242 10.255.71.242 0x80000002 260 0x20 0x11b1 48
bits 0x3, link count 2
id 10.255.70.103, data 12.1.1.2, Type PointToPoint (1)
TOS count 0, TOS 0 metric 1
id 12.1.1.0, data 255.255.255.0, Type Stub (3)
TOS count 0, TOS 0 metric 1
Summary *23.1.1.0 10.255.71.242 0x80000002 218 0x20 0x6d72 28
mask 255.255.255.0
TOS 0x0, metric 1
Summary *24.1.1.0 10.255.71.242 0x80000002 223 0x20 0x607e 28
mask 255.255.255.0
TOS 0x0, metric 1
NSSA *33.1.1.1 10.255.71.242 0x80000002 263 0x28 0x73bd 36
mask 255.255.255.255
Type 2, TOS 0x0, metric 0, fwd addr 12.1.1.2, tag 0.0.0.0
OSPF link state database, Area 0.0.0.2
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.71.52 10.255.71.52 0x80000004 220 0x20 0xd021 36
bits 0x0, link count 1
id 23.1.1.1, data 23.1.1.2, Type Transit (2)
TOS count 0, TOS 0 metric 1
Router *10.255.71.242 10.255.71.242 0x80000003 219 0x20 0xe191 36
bits 0x3, link count 1
id 23.1.1.1, data 23.1.1.1, Type Transit (2)
TOS count 0, TOS 0 metric 1
Network *23.1.1.1 10.255.71.242 0x80000002 219 0x20 0x9c76 32
mask 255.255.255.0
attached router 10.255.71.242
attached router 10.255.71.52
Summary *12.1.1.0 10.255.71.242 0x80000001 263 0x20 0xfeec 28
mask 255.255.255.0
TOS 0x0, metric 1
Summary *24.1.1.0 10.255.71.242 0x80000002 223 0x20 0x607e 28
mask 255.255.255.0
TOS 0x0, metric 1
NSSA *33.1.1.1 10.255.71.242 0x80000001 268 0x28 0xe047 36
mask 255.255.255.255
Type 2, TOS 0x0, metric 0, fwd addr 23.1.1.1, tag 0.0.0.0
OSPF link state database, Area 0.0.0.3
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.71.238 10.255.71.238 0x80000003 225 0x20 0x3942 36
bits 0x0, link count 1
id 24.1.1.1, data 24.1.1.2, Type Transit (2)
TOS count 0, TOS 0 metric 1
Router *10.255.71.242 10.255.71.242 0x80000003 223 0x20 0xf37d 36
bits 0x3, link count 1
id 24.1.1.1, data 24.1.1.1, Type Transit (2)
TOS count 0, TOS 0 metric 1
Network *24.1.1.1 10.255.71.242 0x80000002 223 0x20 0xc591 32
mask 255.255.255.0
attached router 10.255.71.242
attached router 10.255.71.238
Summary *12.1.1.0 10.255.71.242 0x80000001 263 0x20 0xfeec 28
mask 255.255.255.0
TOS 0x0, metric 1
Summary *23.1.1.0 10.255.71.242 0x80000002 218 0x20 0x6d72 28
mask 255.255.255.0
TOS 0x0, metric 1
NSSA *33.1.1.1 10.255.71.242 0x80000001 268 0x28 0xeb3b 36
mask 255.255.255.255
Type 2, TOS 0x0, metric 0, fwd addr 24.1.1.1, tag 0.0.0.0
user@host> show ospf database extensive
OSPF link state database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.70.103 10.255.70.103 0x80000002 286 0x20 0x4112 48
bits 0x0, link count 2
id 10.255.71.242, data 12.1.1.1, Type PointToPoint (1)
TOS count 0, TOS 0 metric 1
id 12.1.1.0, data 255.255.255.0, Type Stub (3)
TOS count 0, TOS 0 metric 1
Aging timer 00:55:14
Installed 00:04:43 ago, expires in 00:55:14
Last changed 00:04:43 ago, Change count: 2
Router *10.255.71.242 10.255.71.242 0x80000002 285 0x20 0x11b1 48
bits 0x3, link count 2
id 10.255.70.103, data 12.1.1.2, Type PointToPoint (1)
TOS count 0, TOS 0 metric 1
id 12.1.1.0, data 255.255.255.0, Type Stub (3)
TOS count 0, TOS 0 metric 1
Gen timer 00:45:15
Aging timer 00:55:15
Installed 00:04:45 ago, expires in 00:55:15, sent 00:04:43 ago
Last changed 00:04:45 ago, Change count: 2, Ours
Summary *23.1.1.0 10.255.71.242 0x80000002 243 0x20 0x6d72 28
mask 255.255.255.0
TOS 0x0, metric 1
Gen timer 00:45:57
Aging timer 00:55:57
Installed 00:04:03 ago, expires in 00:55:57, sent 00:04:01 ago
Last changed 00:04:48 ago, Change count: 1, Ours
Summary *24.1.1.0 10.255.71.242 0x80000002 248 0x20 0x607e 28
mask 255.255.255.0
TOS 0x0, metric 1
Gen timer 00:45:52
Aging timer 00:55:52
Installed 00:04:08 ago, expires in 00:55:52, sent 00:04:06 ago
Last changed 00:04:48 ago, Change count: 1, Ours
NSSA *33.1.1.1 10.255.71.242 0x80000002 288 0x28 0x73bd 36
mask 255.255.255.255
Type 2, TOS 0x0, metric 0, fwd addr 12.1.1.2, tag 0.0.0.0
Gen timer 00:45:12
Aging timer 00:55:12
Installed 00:04:48 ago, expires in 00:55:12, sent 00:04:48 ago
Last changed 00:04:48 ago, Change count: 2, Ours
OSPF link state database, Area 0.0.0.2
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.71.52 10.255.71.52 0x80000004 245 0x20 0xd021 36
bits 0x0, link count 1
id 23.1.1.1, data 23.1.1.2, Type Transit (2)
TOS count 0, TOS 0 metric 1
Aging timer 00:55:55
Installed 00:04:02 ago, expires in 00:55:55
Last changed 00:04:02 ago, Change count: 2
Router *10.255.71.242 10.255.71.242 0x80000003 244 0x20 0xe191 36
bits 0x3, link count 1
id 23.1.1.1, data 23.1.1.1, Type Transit (2)
TOS count 0, TOS 0 metric 1
Gen timer 00:45:56
Aging timer 00:55:56
Installed 00:04:04 ago, expires in 00:55:56, sent 00:04:02 ago
Last changed 00:04:04 ago, Change count: 2, Ours
Network *23.1.1.1 10.255.71.242 0x80000002 244 0x20 0x9c76 32
mask 255.255.255.0
attached router 10.255.71.242
attached router 10.255.71.52
Gen timer 00:45:56
Aging timer 00:55:56
Installed 00:04:04 ago, expires in 00:55:56, sent 00:04:02 ago
Last changed 00:04:04 ago, Change count: 1, Ours
Summary *12.1.1.0 10.255.71.242 0x80000001 288 0x20 0xfeec 28
mask 255.255.255.0
TOS 0x0, metric 1
Gen timer 00:45:12
Aging timer 00:55:12
Installed 00:04:48 ago, expires in 00:55:12, sent 00:04:04 ago
Last changed 00:04:48 ago, Change count: 1, Ours
Summary *24.1.1.0 10.255.71.242 0x80000002 248 0x20 0x607e 28
mask 255.255.255.0
TOS 0x0, metric 1
Gen timer 00:45:52
Aging timer 00:55:52
Installed 00:04:08 ago, expires in 00:55:52, sent 00:04:04 ago
Last changed 00:04:48 ago, Change count: 1, Ours
NSSA *33.1.1.1 10.255.71.242 0x80000001 293 0x28 0xe047 36
mask 255.255.255.255
Type 2, TOS 0x0, metric 0, fwd addr 23.1.1.1, tag 0.0.0.0
Gen timer 00:45:07
Aging timer 00:55:07
Installed 00:04:53 ago, expires in 00:55:07, sent 00:04:04 ago
Last changed 00:04:53 ago, Change count: 1, Ours
OSPF link state database, Area 0.0.0.3
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.255.71.238 10.255.71.238 0x80000003 250 0x20 0x3942 36
bits 0x0, link count 1
id 24.1.1.1, data 24.1.1.2, Type Transit (2)
TOS count 0, TOS 0 metric 1
Aging timer 00:55:50
Installed 00:04:07 ago, expires in 00:55:50
Last changed 00:04:07 ago, Change count: 2
Router *10.255.71.242 10.255.71.242 0x80000003 248 0x20 0xf37d 36
bits 0x3, link count 1
id 24.1.1.1, data 24.1.1.1, Type Transit (2)
TOS count 0, TOS 0 metric 1
Gen timer 00:45:52
Aging timer 00:55:52
Installed 00:04:08 ago, expires in 00:55:52, sent 00:04:06 ago
Last changed 00:04:08 ago, Change count: 2, Ours
Network *24.1.1.1 10.255.71.242 0x80000002 248 0x20 0xc591 32
mask 255.255.255.0
attached router 10.255.71.242
attached router 10.255.71.238
Gen timer 00:45:52
Aging timer 00:55:52
Installed 00:04:08 ago, expires in 00:55:52, sent 00:04:06 ago
Last changed 00:04:08 ago, Change count: 1, Ours
Summary *12.1.1.0 10.255.71.242 0x80000001 288 0x20 0xfeec 28
mask 255.255.255.0
TOS 0x0, metric 1
Gen timer 00:45:12
Aging timer 00:55:12
Installed 00:04:48 ago, expires in 00:55:12, sent 00:04:13 ago
Last changed 00:04:48 ago, Change count: 1, Ours
Summary *23.1.1.0 10.255.71.242 0x80000002 243 0x20 0x6d72 28
mask 255.255.255.0
TOS 0x0, metric 1
Gen timer 00:45:57
Aging timer 00:55:57
Installed 00:04:03 ago, expires in 00:55:57, sent 00:04:01 ago
Last changed 00:04:48 ago, Change count: 1, Ours
NSSA *33.1.1.1 10.255.71.242 0x80000001 293 0x28 0xeb3b 36
mask 255.255.255.255
Type 2, TOS 0x0, metric 0, fwd addr 24.1.1.1, tag 0.0.0.0
Gen timer 00:45:07
Aging timer 00:55:07
Installed 00:04:53 ago, expires in 00:55:07, sent 00:04:13 ago
Last changed 00:04:53 ago, Change count: 1, Ours
user@host> show ospf database summary
Area 0.0.0.1: 2 Router LSAs 2 Summary LSAs 1 NSSA LSAs Area 0.0.0.2: 2 Router LSAs 1 Network LSAs 2 Summary LSAs 1 NSSA LSAs Area 0.0.0.3: 2 Router LSAs 1 Network LSAs 2 Summary LSAs 1 NSSA LSAs Externals: Interface fe-2/2/1.0: Interface ge-0/3/2.0: Interface so-0/1/2.0: Interface so-0/1/2.0: