display ospf sham-link

Use display ospf sham-link to display OSPF sham link information.

Syntax

display ospf [ process-id ] sham-link [ area area-id ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

process-id: Specifies an OSPF process by its ID. The process ID is in the range of 1 to 65535. If you do not specify a process, this command displays sham link information for all OSPF processes.

area area-id: Specifies an OSPF area by its ID, which is an IP address, or an integer. The integer is in the range of 0 to 4294967295. If you do not specify an area, this command displays sham link information for all OSPF areas.

Usage guidelines

If you do not specify any processes or areas, this command displays information about all OSPF sham links.

Examples

# Display information about all OSPF sham links.

<Sysname> display ospf sham-link

          OSPF Process 1 with Router ID 125.1.1.1
                  Sham link

 Area            Neighbor ID     Source IP       Destination IP  State  Cost
 0.0.0.0         95.1.1.1        125.2.1.1       95.2.1.1        P-2-P  1

# Display OSPF sham link information for OSPF area 1.

<Sysname> display ospf sham-link area 1

          OSPF Process 100 with Router ID 100.1.1.2

 Sham link: 3.3.3.3 --> 5.5.5.5
 Neighbor ID: 120.1.1.2        State: Full
 Area: 0.0.0.1
 Cost: 1  State: P-2-P  Type: Sham
 Timers: Hello 10, Dead 40, Retransmit 5, Transmit Delay 1
 Request list: 0  Retransmit list: 0
 GTSM: Enabled, maximum number of hops: 2
 MD5 authentication enabled.
    The last key is 3.
    The rollover is in progress, 1 neighbor(s) left.

Table 74: Command output

Field

Description

State

Neighbor state for the sham link: Down, Init, 2-way, ExStart, Exchange, Loading, or Full.

Cost

Cost of the sham link.

State

Sham link state: Down or P-2-P.

Timers

Timers for the sham link, in seconds. The timers include Hello timer, Dead timer, Retransmit timer, and Transmit Delay timer.

GTSM: Enabled, maximum number of hops: 2

OSPF GTSM is enabled, and the maximum number of hops is 2.

If OSPF GTSM is disabled, this field displays GTSM: Disabled.