< Home

display dhcp server database

Function

The display dhcp server database command displays information about the DHCP database.

Format

display dhcp server database

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display dhcp server database command displays the storage path and file name of DHCP data on a DHCP server. This information helps to check:
  • Whether the function that saves DHCP data to the storage device is enabled. If this function is not enabled, run the dhcp server database command to enable it.
  • Whether the interval at which DHCP data is saved is proper.
  • Whether the function that recovers DHCP data from the storage device after the system restarts is enabled.

Precautions

The function that saves DHCP data to storage devices and the function that recovers DHCP data from storage devices can be enabled in any sequence.

Example

# Display information about the DHCP database.

<HUAWEI> display dhcp server database
 Status: disable
 Recover from files after reboot: disable
 File saving lease items: flash:/dhcp/lease.txt
 File saving conflict items: flash:/dhcp/conflict.txt
 Save Interval: 300 (seconds)
Table 1 Description of the display dhcp server database command output

Item

Description

Status

Whether to save the data to the storage device:
  • disable
  • enable

The value is set using the dhcp server database command.

Recover from files after reboot

Whether to recover data from the file on the storage device after the system restarts:
  • disable
  • enable

The value is set using the dhcp server database command.

File saving lease items

File name and path of the file for storing address lease information.

File saving conflict items

File name and path of the file for storing address conflict information.

Save Interval

Interval at which DHCP data is saved, in seconds.

The value is set using the dhcp server database command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >