dhcp log enable
Use dhcp log enable to enable DHCP server logging.
Use undo dhcp log enable to disable DHCP server logging.
Syntax
dhcp log enable
undo dhcp log enable
Default
DHCP server logging is disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
This command enables the DHCP server to generate DHCP logs and send them to the information center. The information helps administrators to locate and solve problems. For information about the log destination and output rule configuration in the information center, see Network Management and Monitoring Configuration Guide.
As a best practice, disable this feature if the log generation affects the device performance or reduces the address allocation efficiency. For example, this situation might occur when a large number of clients frequently come online or go offline.
Examples
# Enable DHCP server logging.
<Sysname> system-view [Sysname] dhcp log enable