Show Commands

This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) show commands.

show ip ospf

To display general information about Open Shortest Path First (OSPF) routing instances, use the show ip ospf command.

show ip ospf [instance-tag] [vrfvrf-name]

Syntax Description

instance-tag

(Optional) Name of the OSPF instance. Use this tag to display OSPF information about a specific OSPF instance. The instance-tag argument can be any alphanumeric string of 20 characters.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default" and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ip ospf command to display information about one or more OSPF instances.

This command requires the LAN Base Services license.

Examples

This example shows how to display information all about OSPF instances:

switch# show ip ospf

Routing Process 201 with ID 192.0.2.1 VRF default

Stateful High Availability enabled

Graceful-restart is configured

Grace period: 60 state: Inactive

Last graceful restart exit status: None

Supports only single TOS(TOS0) routes

Supports opaque LSA

This router is an autonomous system boundary

Redistributing External Routes from

bgp-1

Maximum limit: 1000 (warning-only)

Threshold: message 750

Current count: 0

Administrative distance 110

Reference Bandwidth is 40000 Mbps

Initial SPF schedule delay 3000.000 msecs,

minimum inter SPF delay of 2000.000 msecs,

maximum inter SPF delay of 4000.000 msecs

Initial LSA generation delay 3000.000 msecs,

minimum inter LSA delay of 6000.000 msecs,

maximum inter LSA delay of 6000.000 msecs

Minimum LSA arrival 2000.000 msec

Maximum paths to destination 3

Originating router LSA with maximum metric

Condition: Always

Number of external LSAs 0, checksum sum 0

Number of opaque AS LSAs 0, checksum sum 0

Number of areas is 3, 3 normal, 0 stub, 0 nssa

Number of active areas is 0, 0 normal, 0 stub, 0 nssa

Area BACKBONE(0.0.0.0) (Inactive)

Area has existed for 00:22:49

Interfaces in this area: 1 Active interfaces: 0

Passive interfaces: 0 Loopback interfaces: 0

No authentication available

SPF calculation has run 3 times

Last SPF ran for 0.000036s

Area ranges are

Number of LSAs: 0, checksum sum 0

Area (0.0.0.10) (Inactive)

Area has existed for 00:41:30

Interfaces in this area: 0 Active interfaces: 0

Passive interfaces: 0 Loopback interfaces: 0

Summarization is disabled

Simple password authentication

SPF calculation has run 8 times

Last SPF ran for 0.000150s

Area ranges are

10.3.0.0/16 Passive (Num nets: 0) Advertise

Area-filter in 'FilterLSAs'

Number of LSAs: 0, checksum sum 0

Area (0.0.0.15) (Inactive)

Area has existed for 00:49:30

Interfaces in this area: 1 Active interfaces: 0

Passive interfaces: 1 Loopback interfaces: 0

No authentication available

SPF calculation has run 8 times

Last SPF ran for 0.000021s

Area ranges are

Number of LSAs: 0, checksum sum 0

switch#

This example shows how to display information about one specific OSPF instance:

Related Commands

show ip ospf border-routers

To display the Open Shortest Path First (OSPF) routing table entries to an Area Border Router (ABR) and Autonomous System Boundary Router (ASBR), use the show ip ospf border-routers command.

show ip ospf [instance-tag] border-routers [vrfvrf-name]

Syntax Description

instance-tag

(Optional) Name of the OSPF instance. Use this tag to display OSPF information about a specific OSPF instance. The instance-tag argument can be a maximum of 20 alphanumeric characters.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default" and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ip ospf border-routers command to display information on ABRs. and ASBRs.

This command requires the LAN Base Services license.

Examples

This example shows how to display information about border routers:

switch# show ip ospf border-routers

Related Commands

Command

Description

show running-config ospf

Displays the OSPF running configuration.

show ip ospf database

To display the Open Shortest Path First (OSPF) database for a specific router, use the show ip ospf database command.

(Optional) Displays each type of LSA for each area in the database, and the total number of LSAs.

external

(Optional) Displays information about the external LSAs.

ext_tagvalue

(Optional) Displays information based on an external tag. The range is from 1 to 4294967295.

network

(Optional) Displays information about the network LSAs.

nssa-external

(Optional) Displays information about the not-so-stubby area (NSSA) external LSAs.

opaque-area

(Optional) Displays information about the opaque area LSAs.

opaque-as

(Optional) Displays information about the opaque AS LSAs.

opaque-link

(Optional) Displays information about the opaque link-local LSAs.

router

(Optional) Displays information about the router LSAs.

summary

(Optional) Displays information about the summary LSAs.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default" and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the ip ospf database command to display information about different OSPF LSAs.

When the link state advertisement is describing a network, the link-state-id argument can take one of two forms:

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default" and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ip ospf interface command to display the OSPF status for the interface.

This command requires the LAN Base Services license.

Examples

This example shows how to display OSPF information for Ethernet interface 1/5:

Syntax Description

(Optional) Name of the OSPF instance. Specify as an alphanumeric string.

areaarea-id

Specifies the area number used to define the particular area. The area ID can be an IP address or a number from 0 to 4294967295.

filter-list

Filters prefixes between OSPF areas.

in

Displays policy statistics for incoming routes.

out

Displays policy statistics for outgoing routes.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default", "management", and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ip ospf policy statistics area command to display information about the filter lists applied to an area.

For the bgp keyword, an autonomous system number. The range for 2-byte numbers is from 1 to 65535.

For the eigrp keyword, an autonomous system number. The range is from 1 to 65535.

For the ospf and rip keywords, an instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco Nexus 6000 stores it internally as a string.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default", "management", and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ip ospf policy statistics redistribute command to display redistribution statistics.

This command requires the LAN Base Services license.

Examples

This example shows how to display policy statistics for redistributed routes:

switch# show ip ospf policy statistics redistribute

Related Commands

Command

Description

show running-config ospf

Displays the OSPF running configuration.

show ip ospf request-list

To display a list of all link-state advertisements (LSAs) requested by a router, use the show ip ospf request-list command.

show ip ospf route

Syntax Description

instance-tag

(Optional) Name of the OSPF instance. Specify as an alphanumeric string of 20 characters.

prefix/length

(Optional) IP prefix, which limits output to a specific route. Indicate the length as a slash (/) and number from 1 to 31. For example, /8 indicates that the first eight bits in the IP prefix are network bits.

summary

(Optional) Displays a summary of all routes.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default", "management", and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ospf routes command to display the OSPF private routing table (which contains only routes that are calculated by OSPF). If something is wrong with a route in the routing information base (RIB), then you should check the OSPF copy of the route to determine if it matches the RIB contents. If it does not match, a synchronization problem exists between OSPF and the RIB.

This command requires the LAN Base Services license.

Examples

This example shows how to display OSPF routes:

switch# show ip ospf route

Related Commands

Command

Description

show running-config ospf

Displays the OSPF running configuration.

show ip ospf statistics

To display Open Shortest Path First (OSPF) shortest path first (SPF) calculation statistics, use the show ip ospf statistics command.

show ip ospf [instance-tag] statistics [vrfvrf-name]

Syntax Description

instance-tag

(Optional) Name of the OSPF instance. Specify as an alphanumeric string up to 20 characters.

vrfvrf-name

(Optional) Name of the VRF. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default", "management", and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ip ospf statistics command to display information about link-state advertisements (LSAs). This information can be useful for both OSPF network maintenance and troubleshooting. For example, we recommend that you use the show ip ospf statistics command as the first troubleshooting step for LSA flapping.

This command requires the LAN Base Services license.

Examples

This example shows how to display information about the SPF calculations:

•hwm—high water mark. The maximum number of packets ever stored in the queue.

•drops—The number of packets dropped because the queue was full.

Flood queue

Queue of flood packets to be processed.

Buffers

Chunks of memory used to store packets.

Related Commands

Command

Description

show running-config ospf

Displays the OSPF running configuration.

show ip ospf summary-address

To display a list of all summary address redistribution information configured in an Open Shortest Path First (OSPF) instance, use the show ip ospf summary-address command.

show ip ospf [instance-tag] summary-address [vrfvrf-name]

Syntax Description

instance-tag

(Optional) Name of the OSPF instance. The name can be a maximum of 20 alphanumeric characters.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default", "management", and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

This command requires the LAN Base Services license.

Examples

This example shows how to display information about summary addresses:

switch# show ip ospf summary-address

Related Commands

Command

Description

show running-config ospf

Displays the OSPF running configuration.

show ip ospf traffic

To display Open Shortest Path First (OSPF) traffic statistics, use the show ip ospf traffic command.

Syntax Description

(Optional) Name of the OSPF instance. The name can be a maximum of 20 alphanumeric characters.

ethernetslot/port

(Optional) Specifies the Ethernet interface and the slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.

loopbackif_number

(Optional) Specifies the loopback interface. The loopback interface number is from 0 to 1023.

port-channelnumber

(Optional) Specifies the EtherChannel interface and EtherChannel number. The range is from 1 to 4096.

vrfvrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default", "management", and "all" are reserved VRF names.

Command Default

None

Command Modes

Any command mode

Command History

Release

Modification

6.0(2)N1(1)

This command was introduced.

Usage Guidelines

Use the show ip ospf traffic command to display traffic statistics for one or more OSPF instances.

This command requires the LAN Base Services license.

Examples

This example shows how to display OSPF traffic statistics for interface 1/5: