# Monitoring LDP Statistics

#### Purpose

Display statistics for LDP on the current virtual router.

#### Action

To display all LDP statistics:

    host1#show ldp statistics

      Message type     Received   Sent
    ----------------   --------   -----
    Hello                 25733   25735
    Initialization            2       2
    Keepalive              9646    9646
    Notification              0       0
    Address                   2       2
    Address withdraw          0       0
    Label mapping             8       8
    Label request             0       0
    Label withdraw            0       0
    Label release             0       0
    Label abort               0       0
    All UDP               25733   25735
    All TCP                9654    9654

         Event type         Total
    ---------------------   -----
    Sessions opened             2
    Sessions closed             0
    Topology changes            5
    No router id                0
    No address                  0
    No interface                0
    No session                  0
    No adjacency                0
    Unknown version             0
    Malformed PDU               0
    Malformed message           0
    Unknown message type        0
    Inappropriate message       0
    Malformed tlv               0
    Bad TLV value               0
    Missing TLV                 0
    PDU too large               0
    PDU too small               0
    No Memory                   0

| Note: The mpls keyword is optional and is provided for compatibility with non–E Series implementations.

#### Meaning

Table 70 lists the show ldp statistics command output fields.

Table 70: show ldp statistics Output Fields

Field Name | Field Description
--- | ---
Hello | Number of hello messages received and sent
Initialization | Number of initialization messages received and sent
Keepalive | Number of keepalive messages received and sent
Notification | Number of notification messages received and sent
Address | Number of address messages received and sent
Address withdraw | Number of address withdraw messages received and sent
Label mapping | Number of label mapping messages received and sent
Label request | Number of label request messages received and sent
Label withdraw | Number of label withdraw messages received and sent
Label release | Number of label release messages received and sent
Label abort | Number of label abort messages received and sent
All UDP | Number of UDP messages received and sent
All TCP | Number of TCP messages received and sent
Sessions opened | Number of session opened events
Sessions closed | Number of session closed events
Topology changes | Number of topology change events
No router id | Number of no router ID events
No address | Number of no address events
No interface | Number of no interface events
No session | Number of no session events
No adjacency | Number of no adjacency events
Unknown version | Number of unknown version events
Malformed PDU | Number of malformed PDU events
Malformed message | Number of malformed message events
Unknown message type | Number of unknown message type events
Inappropriate message | Number of inappropriate message events
Malformed tlv | Number of inappropriate message events
Bad TLV value | Number of bad TLV value events
Missing TLV | Number of missing TLV events
PDU too large | Number of PDU too large events
PDU too small | Number of PDU too small events
No Memory | Number of no memory events

#### Related Topics

- show ldp statistics