Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show dhcp server statistics

Syntax

Description

Display extended Dynamic Host Configuration Protocol (DHCP) local server statistics.

Options

bulk-leasequery-connections

(Optional) Display information about DHCP local server bulk leasequery statistics.

logical-system logical-system-name

(Optional) Display information about extended DHCP local server statistics on the specified logical system. If you do not specify a logical system, statistics are displayed for the default logical system.

routing-instance routing-instance-name

(Optional) Display information about extended DHCP local server statistics on the specified routing instance. If you do not specify a routing instance, statistics are displayed for the default routing instance.

Required Privilege Level

view

Output Fields

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

Table 1: show dhcp server 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 the extended DHCP local server

  • Authentication—Number of packets discarded because they could not be authenticated

  • 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

  • Dynamic profile—Number of packets discarded due to dynamic profile information

  • Invalid server address—Number of packets discarded because an invalid server address was specified

  • Lease Time Violation—Number of packets discarded because of a lease time violation

  • 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

Offer Delay

Number of DHCPv4 offer messages delayed.

  • DELAYED—Number of DHCPv4 offer packets that have been sent after being delayed.

  • INPROGRESS—Number of DHCPv4 offer packets that are in the delay queue.

  • TOTAL—Total number of delayed DHCPv4 offer messages; sum of DELAYED and INPROGRESS.

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

  • DHCPLEASEQUERY—Number of DHCP leasequery messages received.

  • DHCPBULKLEASEQUERY—Number of DHCP bulk leasequery messages received.

  • DHCPRENEW—Number of DHCP renew messages received; subset of DHCPREQUEST counter.

  • DHCPREBIND—Number of DHCP rebind messages received; subset of DHCPREQUEST counter.

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

  • DHCPLEASEUNASSIGNED—Number of DHCP leases that are managed by the server but have not yet been assigned

  • DHCPLEASEUNKNOWN—Number of unknown DHCP leases

  • DHCPLEASEACTIVE—Number of active DHCP leases

  • DHCPLEASEQUERYDONE—The leasequery is complete

Total Accepted Connections

Total number of bulk leasequery connections accepted by the server.

Total Not-Accepted Connections

Total number of bulk leasequery connections not accepted by the server.

Connections Closed due to Errors

Number of bulk leasequery connections that the server closed due to an internal error.

Connections Closed due to max-empty-replies

Number of bulk leasequery connections that the server closed because the maximum number of empty replies was reached.

In-flight Connections

Number of bulk leasequery connections on the server.

Sample Output

show dhcp server statistics

show dhcp server statistics

Release Information

Command introduced in Junos OS Release 9.0.

bulk-leasequery-connections option introduced in Junos OS Release 16.1.