display dhcp server

Function

The display dhcp server statistics command displays statistics about a DHCP server.

The display dhcp server database command displays storage information of DHCP data.

Format

display dhcp server database

display dhcp server statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
dhcp read

Usage Guidelines

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:

  • Statistics about various DHCP packets sent by DHCP clients to the DHCP server
  • Statistics about various DHCP packets sent by the DHCP server to DHCP clients
  • Statistics about unidentified packets

    To view storage information of DHCP data, such as the save path and file name, run the display dhcp server database command. The storage information helps you determine:
  • Whether the function of storing DHCP data to a storage device is enabled. To enable such function, run the dhcp server database command.
  • Whether the interval for storing DHCP data is qualified
  • Whether the function of restoring data from a storage device is enabled after system restart

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display DHCP database storage information.
<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)
# Display statistics about a DHCP server.
<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
Table 1 Description of the display dhcp server command output
Item Description
Recover from files after reboot

Whether the DHCP data can be restored from the storage device after system restart.

  • disable: DHCP data cannot be restored from the storage device after system restart.
  • enable: 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.

  • disable: DHCP data cannot be saved to a storage device.
  • enable: DHCP data can be saved to a storage device.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >