dhcp server threshold

Syntax

dhcp server threshold { allocated-ip threshold-value | average-ip-use threshold-value | max-ip-use threshold-value }

undo dhcp server threshold { allocated-ip | average-ip-use | max-ip-use }

View

System view

Default level

2: System level

Parameters

allocated-ip threshold-value: Enables the DHCP server to send trap messages to the network management server when the ratio of successfully allocated IP addresses to received DHCP requests within five minutes reaches the threshold specified by the threshold-value argument. The threshold is a percentage value ranging from 1 to 100.

average-ip-use threshold-value: Enables the DHCP server to send trap messages to the network management server when the average IP address utilization of an address pool within five minutes reaches the threshold specified by the threshold-value argument. The threshold is a percentage value ranging from 1 to 100.

max-ip-use threshold-value: Enables the DHCP server to send trap messages to the network management server when the maximum IP address utilization of an address pool within five minutes reaches the threshold specified by the threshold-value argument. The threshold is a percentage value ranging from 1 to 100.

Description

Use dhcp server threshold to enable the DHCP server to send trap messages to the network management server when the specified threshold is reached.

Use undo dhcp server threshold to restore the default.

By default, the DHCP server does not send trap messages to the network management server.

Examples

# Enable the DHCP server to send trap messages to the network management server when the ratio of successfully allocated IP addresses to received DHCP requests within five minutes exceeds 50%.

<Sysname> system-view
[Sysname] dhcp server threshold allocated-ip 50

# Enable the DHCP server to send trap messages to the network management server when the average IP address utilization of an address pool within five minutes exceeds 80%.

<Sysname> system-view
[Sysname] dhcp server threshold average-ip-use 80

# Enable the DHCP server to send trap messages to the network management server when the maximum IP address utilization of an address pool within five minutes exceeds 80%.

<Sysname> system-view
[Sysname] dhcp server threshold max-ip-use 80