Related Documentation
- EX Series
- clear dhcp relay statistics
- J Series
- clear dhcp relay statistics
- M Series
- clear dhcp relay statistics
- MX Series
- clear dhcp relay statistics
- PTX Series
- clear dhcp relay statistics
- T Series
- clear dhcp relay statistics
show dhcp relay statistics
Syntax
Syntax
Syntax for EX Series switches:
Release Information
Command introduced in Junos OS Release 8.3.
Command 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
Display 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 displayed 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 displayed for the default routing instance. |
Required Privilege Level
view
Related Documentation
- EX Series
- clear dhcp relay statistics
- J Series
- clear dhcp relay statistics
- M Series
- clear dhcp relay statistics
- MX Series
- clear dhcp relay statistics
- PTX Series
- clear dhcp relay statistics
- T Series
- clear dhcp relay statistics
List of Sample Output
show dhcp relay statisticsOutput Fields
Table 1 lists the output fields for the show dhcp relay statistics command. Output fields are listed in the approximate order in which they appear.
Table 1: show 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.
|
Packets forwarded | Number of packets forwarded.
|
Sample Output
show dhcp relay statistics
user@host> show dhcp relay statisticsPackets dropped:
Total 30
Bad hardware address 1
Bad opcode 1
Bad options 3
Invalid server address 5
No available addresses 1
No interface match 2
No routing instance match 9
No valid local address 4
Packet too short 2
Read error 1
Send error 1
Option 60 1
Option 82 2
Messages received:
BOOTREQUEST 116
DHCPDECLINE 0
DHCPDISCOVER 11
DHCPINFORM 0
DHCPRELEASE 0
DHCPREQUEST 105
Messages sent:
BOOTREPLY 0
DHCPOFFER 2
DHCPACK 1
DHCPNAK 0
DHCPFORCERENEW 0
Packets forwarded:
Total 4
BOOTREQUEST 2
BOOTREPLY 2