Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

clear dhcp server statistics

Syntax

clear dhcp server statistics <interface interface-name><logical-system logical-system-name><routing-instance routing-instance-name>

Release Information

Command introduced in Junos OS Release 9.0.

Description

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

Options

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

List of Sample Output

clear dhcp server statistics

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                      0

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

Published: 2013-03-14

Published: 2013-03-14