The dhcp server alarm ip-used percentage command configures the percentage of the alarms indicating that the addresses in an interface address pool are used up, and the percentage of the clear alarms.
The undo dhcp server alarm ip-used percentage command restores the default percentages of the alarms and clear alarms.
By default, the percentage of the alarms indicating that the addresses in an interface address pool are used up is 100%, and the percentage of the clear alarms is 50%.
dhcp server alarm ip-used percentage alarm-resume-percentage alarm-percentage
undo dhcp server alarm ip-used percentage
Parameter |
Description |
Value |
---|---|---|
alarm-resume-percentage |
Specifies the percentage of the clear alarms. |
The value is an integer that ranges from 1 to 100. The default value is 50. NOTE:
The percentage of the clear alarms cannot exceed that of the alarms. |
alarm-percentage |
Specifies the percentage of the alarms indicating that the addresses in an address pool are used up. |
The value is an integer that ranges from 1 to 100. The default value is 100. |
Usage Scenario
When the addresses in an interface address pool are used up, alarms are sent to notify the administrator.
Prerequisites
IP addresses in the interface address pool have been configured using the ip address command.
The DHCP server function has been enabled on the interface using the dhcp select interface command.
Precautions
The percentage of the clear alarms cannot exceed that of the alarms.
# Configure the percentage of the alarms indicating that the addresses in an interface address pool are used up, and the percentage of the clear alarms in the interface address pool of the VLANIF100.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server alarm ip-used percentage 80 90
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ip address 10.10.10.10 24 [HUAWEI-GigabitEthernet0/0/1] dhcp select interface [HUAWEI-GigabitEthernet0/0/1] dhcp server alarm ip-used percentage 80 90