Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show ospf database

Syntax

Syntax (EX Series Switches and QFX Series)

Description

Display the entries in the OSPF version 2 (OSPFv2) link-state database, which contains data about link-state advertisement (LSA) packets.

Options

none

Display standard information about entries in the OSPFv2 link-state database for all routing instances.

brief | detail | extensive | summary

(Optional) Display the specified level of output.

advertising-router (address | self)

(Optional) Display the LSAs advertised either by a particular routing device or by this routing device.

area area-id

(Optional) Display the LSAs in a particular area.

asbrsummary

(Optional) Display summary AS boundary router LSA entries.

external

(Optional) Display external LSAs.

instance instance-name

(Optional) Display all OSPF database information under the named routing instance.

link-local

(Optional) Display information about link-local LSAs.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

lsa-id lsa-id

(Optional) Display the LSA with the specified LSA identifier.

netsummary

(Optional) Display summary network LSAs.

network

(Optional) Display information about network LSAs.

nssa

(Optional) Display information about not-so-stubby area (NSSA) LSAs.

opaque-area

(Optional) Display opaque area-scope LSAs.

extended-link link-addr link-address

(Optional) Displays the specific extended-link LSAs based on the link-address.

extended-prefix prefix prefix/len

(Optional) Displays the specific extended-prefix LSAs based on the prefix.

router

(Optional) Display information about router LSAs.

Required Privilege Level

view

Output Fields

Table 1 describes the output fields for the show ospf database command. Output fields are listed in the approximate order in which they appear.

Table 1: show ospf database Output Fields

Field Name

Field Description

Level of Output

area

Area number. Area 0.0.0.0 is the backbone area.

All levels

Type

Type of link advertisement: ASBRSum, Extern, Network, NSSA, OpaqArea, Router, or Summary.

All levels

ID

LSA identifier included in the advertisement. An asterisk preceding the identifier marks database entries that originated from the local routing device.

All levels

Adv Rtr

Address of the routing device that sent the advertisement.

All levels

Seq

Link sequence number of the advertisement.

All levels

Age

Time elapsed since the LSA was originated, in seconds.

All levels

Opt

Optional OSPF capabilities associated with the LSA.

All levels

Cksum

Checksum value of the LSA.

All levels

Len

Length of the advertisement, in bytes.

All levels

Router

Router link-state advertisement information:

  • bits—Flags describing the routing device that generated the LSP.

  • link count—Number of links in the advertisement.

  • id—ID of a routing device or subnet on the link.

  • data—For stub networks, the subnet mask. Otherwise, the IP address of the routing device that generated the LSP.

  • type—Type of link. It can be PointToPoint, Transit, Stub, or Virtual.

  • TOS count—Number of type-of-service (ToS) entries in the advertisement.

  • TOS 0 metric—Metric for ToS 0.

  • TOS—Type-of-service (ToS) value.

  • metric—Metric for the ToS.

detail extensive

Network

Network link-state advertisement information:

  • mask—Network mask.

  • attached router—ID of the attached neighbor.

detail extensive

Summary

Summary link-state advertisement information:

  • mask—Network mask.

  • TOS—Type-of-service (ToS) value.

  • metric—Metric for the ToS.

detail extensive

Gen timer

How long until the LSA is regenerated.

extensive

Aging timer

How long until the LSA expires.

extensive

Installed hh:mm:ss ago

How long ago the route was installed.

extensive

expires in hh:mm:ss

How long until the route expires.

extensive

sent hh:mm:ss ago

How long ago the LSA was sent.

extensive

Last changed hh:mm:ss ago

How long ago the route was changed.

extensive

Change count

Number of times the route has changed.

extensive

Ours

Indicates that this is a local advertisement.

extensive

Router LSAs

Number of router link-state advertisements in the link-state database.

summary

Network LSAs

Number of network link-state advertisements in the link-state database.

summary

Summary LSAs

Number of summary link-state advertisements in the link-state database.

summary

NSSA LSAs

Number of not-so-stubby area link-state advertisements in the link-state database.

summary

Sample Output

show ospf database

show ospf database

The output for show ospf databse nssa with nssa-only configuration statement enabled at [edit policy-options policy-statement policy-name term term name then external], which clears P-bit on type 7 LSA.

show ospf database brief

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 .

show ospf database detail

show ospf database extensive

show ospf database extensive

show ospf database summary

show ospf database opaque-area extended-link link-addr link-address

show ospf database opaque-area extended-prefix prefix prefix/len

Release Information

Command introduced before Junos OS Release 7.4.

advertising-router self (address | self) option introduced in Junos OS Release 9.5.

advertising-router self (address | self) option introduced in Junos OS Release 9.5 for EX Series switches.

show ospf database opaque-area extended-link link-addr (link-address) option introduced in Junos OS Release 23.2R1 and Junos OS Evoved 23.2R1.

show ospf database opaque-area extended-prefix prefix (prefix length) option introduced in Junos OS Release 23.2R1 and Junos OS Evoved 23.2R1.