Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show dhcp statistics

    Syntax

    show dhcp statistics<interface interface-name>

    Release Information

    Command introduced in Junos OS Release 11.3.

    Description

    Display extended Dynamic Host Configuration Protocol (DHCP) statistics.

    Options

    interface interface-name
    —

    (Optional) Show the statistics for DHCP clients on the specified interface. If you do not specify an interface, statistics are cleared for the default interface.

    Required Privilege Level

    view

    List of Sample Output

    show dhcp statistics

    Output Fields

    Table 1 lists the output fields for the show dhcp statistics command. Output fields are listed in the approximate order in which they appear.

    Table 1: show dhcp statistics Output Fields

    Field Name

    Field Description

    Packets dropped

    Number of packets discarded by the extended DHCP local server because of errors. Only nonzero statistics appear in the Packets dropped output. When all of the Packets dropped statistics are 0 (zero), only the Total field appears.

    • Total—Total number of packets discarded by DHCP
    • Bad hardware address—Number of packets discarded because an invalid hardware address was specified
    • Bad opcode—Number of packets discarded because an invalid operation code was specified
    • Bad options—Number of packets discarded because invalid options were specified
    • Invalid server address—Number of packets discarded because an invalid server address was specified
    • No available addresses—Number of packets discarded because there were no addresses available for assignment
    • No interface match—Number of packets discarded because they did not belong to a configured interface
    • No routing instance match—Number of packets discarded because they did not belong to a configured routing instance
    • No valid local address—Number of packets discarded because there was no valid local address
    • Packet too short—Number of packets discarded because they were too short
    • Read error—Number of packets discarded because of a system read error
    • Send error—Number of packets that the extended DHCP local server could not send

    Messages received

    Number of DHCP messages received.

    • BOOTREQUEST—Number of BOOTP protocol data units (PDUs) received
    • DHCPDECLINE—Number of DHCP PDUs of type DECLINE received
    • DHCPDISCOVER—Number of DHCP PDUs of type DISCOVER received
    • DHCPINFORM—Number of DHCP PDUs of type INFORM received
    • DHCPRELEASE—Number of DHCP PDUs of type RELEASE received
    • DHCPREQUEST—Number of DHCP PDUs of type REQUEST received

    Messages sent

    Number of DHCP messages sent.

    • BOOTREPLY—Number of BOOTP PDUs transmitted
    • DHCPOFFER—Number of DHCP OFFER PDUs transmitted
    • DHCPACK—Number of DHCP ACK PDUs transmitted
    • DHCPNACK—Number of DHCP NACK PDUs transmitted
    • DHCPFORCERENEW—Number of DHCP FORCERENEW PDUs transmitted

    Sample Output

    show dhcp statistics

    user@host> show dhcp statistics
    Packets dropped:
        Total                      0
    
    Messages received:
        BOOTREQUEST                0
        DHCPDECLINE                0
        DHCPDISCOVER               0
        DHCPINFORM                 0
        DHCPRELEASE                0
        DHCPREQUEST                0
    
    Messages sent:
        BOOTREPLY                  0
        DHCPOFFER                  0
        DHCPACK                    0
        DHCPNAK                    0
        DHCPFORCERENEW             0
    

    Published: 2013-03-14