clear dhcp server statistics
Syntax
clear dhcp server statistics
<bulk-leasequery-connections>
<logical-system logical-system-name>
<routing-instance routing-instance-name>
Description
Clear all extended Dynamic Host Configuration Protocol (DHCP) local server statistics.
Options
bulk-leasequery-connections | (Optional) Clear DHCPv4 local server bulk leasequery statistics. |
logical-system logical-system-name | (Optional) Clear the statistics for DHCP clients on the specified logical system. If you do not specify a logical system, statistics are cleared for the default logical system. |
routing-instance routing-instance-name | (Optional) Clear the statistics for DHCP clients on the specified routing instance. If you do not specify a routing instance, statistics are cleared for the default routing instance. |
Required Privilege Level
view
Output Fields
See show dhcp server statistics for an explanation of output fields.
Sample Output
clear dhcp server statistics
The following sample output displays the extended DHCP local
server statistics before and after the clear dhcp server statistics
command is issued.
user@host> show dhcp server statistics Packets dropped: Total 1 Lease Time Violation 1 Messages received: BOOTREQUEST 89163 DHCPDECLINE 0 DHCPDISCOVER 8110 DHCPINFORM 0 DHCPRELEASE 0 DHCPREQUEST 81053 Messages sent: BOOTREPLY 32420 DHCPOFFER 8110 DHCPACK 8110 DHCPNAK 8100 user@host> clear dhcp server statistics user@host> show dhcp server 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
Release Information
Command introduced in Junos OS Release 9.0.
bulk-leasequery-connections
option introduced in
Junos OS Release 16.1.