clear dhcp relay statistics
Syntax
Syntax
Syntax for EX Series switches:
Release Information
Command introduced in Junos OS Release 8.3.
Statement introduced in Junos OS Release 12.1 for EX Series switches.
Command introduced in Junos OS Release 12.1X48R3 for PTX Series Packet Transport Switches.
Description
Clear all Dynamic Host Configuration Protocol (DHCP) relay statistics.
Options
logical-system logical-system-name | — | (On routers only) (Optional) Perform this operation on the specified logical system. If you do not specify a logical system name, statistics are cleared for the default logical system. |
routing-instance routing-instance-name | — | (Optional) Perform this operation on the specified routing instance. If you do not specify a routing instance name, statistics are cleared for the default routing instance. |
Required Privilege Level
view
List of Sample Output
clear dhcp relay statisticsOutput Fields
Table 1 lists the output fields for the clear dhcp relay statistics command.
Table 1: clear dhcp relay statistics Output Fields
Field Name | Field Description |
---|---|
Packets dropped | Number of packets discarded by the extended DHCP relay agent application due to 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.
|
Messages received | Number of DHCP messages received.
|
Messages sent | Number of DHCP messages sent.
|
Sample Output
clear dhcp relay statistics
The following sample output displays the DHCP relay statistics before and after the clear dhcp relay statistics command is issued.
user@host> show dhcp relay statistics
Packets dropped: Total 0 Messages received: BOOTREQUEST 116 DHCPDECLINE 0 DHCPDISCOVER 11 DHCPINFORM 0 DHCPRELEASE 0 DHCPREQUEST 105 Messages sent: BOOTREPLY 44 DHCPOFFER 11 DHCPACK 11 DHCPNAK 11
user@host> clear dhcp relay statistics
user@host> show dhcp relay 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