The display dhcp server statistics command displays statistics about a DHCP server.
The display dhcp server database command displays storage information of DHCP data.
Usage Scenario
To check packet statistics about device functioning as a DHCP server, run the display dhcp server statistics command.
To check details about the packets sent and received by the DHCP server, run the display dhcp server statistics command to view DHCP server statistics, including:Follow-up Procedure
If some DHCP server statistics are detected to be incorrect, run the reset dhcp server statistics command to clear these statistics and then collect statistics again.
Precautions
If a DHCP server does not respond to a received packet, the DHCP server is not correctly configured.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display dhcp server database
Status: disable
Recover from files after reboot: disable
File authentication mode: check
File saving lease items: cfcard:/dhcp/lease.txt
File saving conflict items: cfcard:/dhcp/conflict.txt
Save interval: 300 (seconds)
<HUAWEI> display dhcp server statistics
DHCP Server Statistics:
Client Request : 6
DHCP Discover : 1
DHCP Request : 4
DHCP Decline : 0
DHCP Release : 1
DHCP Inform : 0
Server Reply : 4
DHCP Offer : 1
DHCP Ack : 3
DHCP Nak : 0
DHCP Force Renew : 0
Bad Messages : 0
Item | Description |
---|---|
Recover from files after reboot | Whether the DHCP data can be restored from the storage device after system restart.
|
File authentication mode | File integrity check mode. |
File saving conflict items | File name and path in which address conflict information is saved. |
File saving lease items | File name and path in which address lease information is saved. |
Save interval | Interval at which data is saved, in seconds. |
DHCP Server Statistics | Statistics about the DHCP server. |
DHCP Discover | Number of DHCP Discover messages sent by DHCP clients to the DHCP server. |
DHCP Request | Number of DHCP Request messages sent by DHCP clients to the DHCP server. |
DHCP Decline | Number of DHCP Decline messages sent by DHCP clients to the DHCP server. |
DHCP Release | Number of DHCP Release messages sent by DHCP clients to the DHCP server. |
DHCP Inform | Number of DHCP Inform messages sent by DHCP clients to the DHCP server. |
DHCP Offer | Number of DHCP Offer messages that the DHCP server sends to DHCP clients. |
DHCP Ack | Number of DHCP ACK messages that the DHCP server sends to DHCP clients. |
DHCP Nak | Number of DHCP NAK messages that the DHCP server sends to DHCP clients. |
DHCP Force Renew | Number of DHCP Force Renew messages that the DHCP server sends to DHCP clients. |
Server Reply | Number of messages that the DHCP server sends to DHCP clients. |
Client Request | Number of messages that a DHCP client sends to a DHCP server. |
Bad Messages | Number of messages that fail to be transmitted between the DHCP server and DHCP clients. |
Status | Whether DHCP data can be saved to a storage device.
|