show ldp session
Syntax
show ldp session <brief | detail | extensive> <auto-targeted> <destination> <instance instance-name> <logical-system (all | logical-system-name)>
Description
Display information about Label Distribution Protocol (LDP) sessions.
Options
none | Display standard information about all LDP sessions for all routing instances. |
brief | detail | extensive | (Optional) Display the specified level of output. |
auto-targeted | (Optional) Display information about LDP sessions that are automatically targeted using loopback addresses. |
destination | (Optional) Restrict LDP session display to the specified address. |
instance instance-name | (Optional) Display routing instance information for
the specified instance. If |
logical-system (all | logical-system-name) | (Optional) Perform this operation on all logical systems or on a particular logical system. This option is only supported on Junos OS. |
Required Privilege Level
view
Output Fields
Table 1 describes
the output fields for the show ldp session
command. Output
fields are listed in the approximate order in which they appear.
Field Name |
Field Description |
Level of Output |
---|---|---|
|
Transport address of the session. |
any |
|
State of the session: |
any |
|
TCP connection state: |
any |
|
Time remaining until the session will be closed, in seconds. |
any |
|
LDP identifiers of the peers of this session. |
detail extensive |
|
Time until next keepalive is sent, in seconds. |
|
|
Whether the local router is playing the active role in the session and during session establishment. |
|
|
Whether the local router is playing the passive role in the session and during session establishment. |
|
|
Maximum protocol data unit (PDU) size (packet size) for the session. |
|
|
Time remaining until the session
will be closed, in seconds. This value corresponds to the one configured
using the |
|
|
Number of neighbors that are contributing to the session. |
|
|
Category of LDP session: |
any |
|
Keepalive interval, in seconds. |
|
|
TCP connection retry interval, in seconds. |
|
|
Local transport address. |
|
|
Remote transport address. |
|
|
Time that this session has been up. |
|
|
Time since the session last went down. |
|
|
Reason the session went down:
|
|
|
Number of times the session changes from up to down. |
|
|
LDP is in the process of gracefully restarting. |
|
|
LDP capabilities advertised to a peer. |
|
|
LDP capabilities received from a peer. |
|
|
Information about the status of MPLS LDP session protection. |
|
|
Amount of time (in milliseconds) remaining until graceful restart is declared complete. |
|
|
Shows the longest match MD5 authentication |
|
|
Information about graceful restart for the local end of an LDP session. Graceful restart and helper mode are independent.
|
|
|
Information about graceful restart at the remote end of an LDP session. Graceful restart and helper mode are independent.
|
|
|
Amount of time during which the restarting node attempts to recover its lost states with help from its neighbors (in milliseconds). |
|
|
Next-hop addresses received on the session. |
|
|
Number of messages that are queued for sending to the peers in the group. |
|
|
Type of message being sent:
|
|
Sample Output
- show ldp session brief
- show ldp session detail
- show ldp session extensive
- show ldp session auto-targeted detail
show ldp session brief
user@host> show ldp session brief Address State Connection Hold time 10.255.72.160 Operational Open 21 10.255.72.164 Operational Open 20 10.255.72.172 Operational Open 21
show ldp session detail
user@host> show ldp session detail Address: 192.168.0.3, State: Operational, Connection: Open, Hold time: 27 Session ID: 192.168.0.2:0--192.168.0.3:0 Next keepalive in 7 seconds Passive, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1 Neighbor types: discovered Keepalive interval: 10, Connect retry interval: 1 Local address: 192.168.0.2, Remote address: 192.168.0.3 Up for 00:00:02 Capabilities advertised: none Capabilities received: none Protection: disabled Local - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Remote - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Local maximum neighbor reconnect time: 120000 msec Local maximum neighbor recovery time: 240000 msec Local Label Advertisement mode: Downstream unsolicited Remote Label Advertisement mode: Downstream unsolicited Negotiated Label Advertisement mode: Downstream unsolicited Nonstop routing state: Not in sync Next-hop addresses received: 10.0.0.5 10.0.0.33
show ldp session extensive
user@host> show ldp session extensive Address: 192.168.0.3, State: Operational, Connection: Open, Hold time: 22 Session ID: 192.168.0.2:0--192.168.0.3:0 Next keepalive in 2 seconds Passive, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1 Neighbor types: discovered Keepalive interval: 10, Connect retry interval: 1 Local address: 192.168.0.2, Remote address: 192.168.0.3 Up for 00:05:37 Capabilities advertised: none Capabilities received: none Protection: disabled Local - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Remote - Restart: enabled, Helper mode: enabled, Reconnect time: 60000 Local maximum neighbor reconnect time: 120000 msec Local maximum neighbor recovery time: 240000 msec Local Label Advertisement mode: Downstream unsolicited Remote Label Advertisement mode: Downstream unsolicited Negotiated Label Advertisement mode: Downstream unsolicited Nonstop routing state: Not in sync Next-hop addresses received: 10.0.0.5 10.0.0.33 Queue depth: 0 Message type Total Last 5 seconds Sent Received Sent Received Initialization 1 1 0 0 Keepalive 33 33 1 1 Notification 0 0 0 0 Address 1 1 0 0 Address withdraw 0 0 0 0 Label mapping 7 5 0 0 Label request 0 0 0 0 Label withdraw 3 1 0 0 Label release 1 3 0 0 Label abort 0 0 0 0
show ldp session auto-targeted detail
user@host> show ldp session auto-generated detail Address: 192.168.1.5, State: Operational, Connection: Open, Hold time: 25 Session ID: 192.168.1.1:0--192.168.1.5:0 Next keepalive in 5 seconds Passive, Maximum PDU: 4096, Hold time: 30, Neighbor count: 1 Neighbor types: discovered, Auto-targeted ^^^^^^^^^^^^^ Keepalive interval: 10, Connect retry interval: 1 Local address: 192.168.1.1, Remote address: 192.168.1.5 Up for 00:00:34 Capabilities advertised: none Capabilities received: none Protection: disabled Local - Restart: disabled, Helper mode: enabled Remote - Restart: disabled, Helper mode: enabled Local maximum neighbor reconnect time: 120000 msec Local maximum neighbor recovery time: 240000 msec Local Label Advertisement mode: Downstream unsolicited Remote Label Advertisement mode: Downstream unsolicited Negotiated Label Advertisement mode: Downstream unsolicited Nonstop routing state: Not in sync Next-hop addresses received: 192.168.1.2 192.168.1.3
Release Information
Command introduced before Junos OS Release 7.4.