Juniper Networks Field Guide and Reference

Table 13.23. LDP Monitoring Commands

Information to Monitor Command Example
Entries in the LDP database show ldp database

user@host> show ldp database brief Input label database, 10.255.245.222:0--10.255.245.221:0 Label Prefix 100018 10.255.245.222/32 3 10.255.245.221/32 100011 L2CKT FRAME RELAY VC 11 Output label database, 10.255.245.222:0--10.255.245.221:0 Label Prefix 100018 10.255.245.222/32 3 10.255.245.221/32 100011 L2CKT FRAME RELAY VC 1

Status of interfaces on which LDP is running show ldp interface

user@host> show ldp interface brief Interface Label space ID Nbr count Next hello fxp0.0 10.10.255.6:0 2 3 mps0.0 10.10.255.6:0 0 0

LDP neighbor show ldp neighbor

user@host> show ldp neighbor brief Address Interface Label space ID Hold Time 192.168.1.213 so-0/0/0 10.10.255.4:0 13 192.168.1.211 so-0/0/0 10.10.255.2:0 14

Clear LDP neighbors clear ldp neighbor

user@host> clear ldp neighbor user@host> show ldp neighbor brief Address Interface Label space ID Hold Time

Configured named paths that are used by LDP show ldp path

user@host> show ldp path brief Output Session (label) Input Session (label) 10.10.255.6:0(3) (egress) 10.10.255.3:0(3) . 10.10.255.4:0(3) . 10.10.255.6:0(100000) 10.10.255.3:0(3) 10.10.255.4:0(100000) . 10.10.255.3:0(100001) 10.10.255.6:0(3) 10.10.255.4:0(100001) . 10.10.255.6:0(100002) 10.10.255.4:0(3) 10.10.255.3:0(100002) .

LDP routing table entries show ldp route

user@host> show ldp route brief Destination Next-hop intf Next-hop address 10.10.255.1/32 so-2/3/0 *10.10.255.3/32 so-1/0/0 10.10.1.3 *10.10.255.1/32 so-2/3/0 10.10.255.4/32 so-0/0/0 192.168.1.213 *10.10.255.4/32 so-0/0/0 192.168.1.213 10.10.255.6/32 so-0/0/0 192.168.1.215 *10.10.255.6/32 so-0/0/0 192.168.1.215 *10.10.255.2/32 0.0.0.0/0 so-0/0/0 192.168.1.254 10.10.255.3/32 so-1/0/0 10.10.1.3

Currently active LDP sessions show ldp session

user@host> show ldp session brief Address State Connection Hold Time 10.10.255.2 Operational Open 25 10.10.255.4 Operational Open 26

LDP statistics show ldp statistics

user@host> show ldp statistics Message type Total Last 5 seconds Sent Received Sent Received Hello 265 263 2 2 Initialization 2 2 0 0 Keepalive 112 111 1 0 Notification 0 0 0 0 Address 2 2 0 0 Address withdraw 0 0 0 0 Label mapping 7 6 0 0 Label request 0 0 0 0 Label withdraw 2 0 0 0 Label release 0 2 0 0 Label abort 0 0 0 0 All UDP 265 263 2 2 All TCP 123 121 1 0 Event type Total Last 5 seconds Sessions opened 2 0 Sessions closed 0 0 Topology changes 11 0 No interface 0 0 No session 0 0 No adjacency 0 0 Unknown version 0 0 Malformed PDU 0 0 Malformed message 0 0 Unknown message type 0 0 Inappropriate message 0 0 Malformed TLV 0 0 Bad TLV value 0 0 Missing TLV 0 0 PDU too large 0 0

Clear LDP statistics clear ldp statistics

user@host> clear ldp statistics

Категории