No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
snmp-agent trap enable feature-name dhcp

snmp-agent trap enable feature-name dhcp

Function

The snmp-agent trap enable feature-name dhcp command enables the trap function for the DHCP module.

The undo snmp-agent trap enable feature-name dhcp command disables the trap function for the DHCP module.

For details about whether the trap function for the DHCP module is enabled or disabled by default, see display snmp-agent trap feature-name dhcp all.

Format

snmp-agent trap enable feature-name dhcp [ trap-name { hwdhcppktratealarm | hwdhcpsnpchaddralarm | hwdhcpv6pktprefixalarm | hwndsnpusernumberalarmglobal | hwndsnpusernumberalarmglobalresume | hwndsnpusernumberalarmif | hwndsnpusernumberalarmifresume | hwnomatchsnpbindtbldhcppktalarm | hwsnpusernumberalarmglobal | hwsnpusernumberalarmglobalresume | hwsnpusernumberalarmif | hwsnpusernumberalarmifresume | hwsnpusernumberalarmvlan | hwsnpusernumberalarmvlanresume | hwuntrustedreplypktalarm | hwnomatchsnpbindtbldhcpv6pktalarm | hwnomatchsnpbindtblndpktalarm } ]

undo snmp-agent trap enable feature-name dhcp [ trap-name { hwdhcppktratealarm | hwdhcpsnpchaddralarm | hwdhcpv6pktprefixalarm | hwndsnpusernumberalarmglobal | hwndsnpusernumberalarmglobalresume | hwndsnpusernumberalarmif | hwndsnpusernumberalarmifresume | hwnomatchsnpbindtbldhcppktalarm | hwsnpusernumberalarmglobal | hwsnpusernumberalarmglobalresume | hwsnpusernumberalarmif | hwsnpusernumberalarmifresume | hwsnpusernumberalarmvlan | hwsnpusernumberalarmvlanresume | hwuntrustedreplypktalarm | hwnomatchsnpbindtbldhcpv6pktalarm | hwnomatchsnpbindtblndpktalarm } ]

Parameters

Parameter

Description

Value

trap-name

Enables or disables the trap function for a specified event of the DHCP module.

-

hwdhcppktratealarm

Enables the device to send a Huawei proprietary trap when the number of discarded DHCP packets whose rate exceeds the limit exceeds the threshold.

-

hwdhcpsnpchaddralarm

Enables the device to send a Huawei proprietary trap when the number of discarded DHCP packets whose CHADDR field differs from the source MAC address exceeds the threshold.

-

hwdhcpv6pktprefixalarm Enables the device to send a Huawei proprietary trap when the DHCPv6 prefix length exceeds the threshold.

-

hwndsnpusernumberalarmglobal

Enables the device to send a Huawei proprietary trap when the number of ND access users on the device exceeds the upper threshold.

-

hwndsnpusernumberalarmglobalresume

Enables the device to send a Huawei proprietary trap when the number of ND access users on the device falls below the lower threshold.

-

hwndsnpusernumberalarmif

Enables the device to send a Huawei proprietary trap when the number of ND access users on an interface exceeds the upper threshold.

-

hwndsnpusernumberalarmifresume

Enables the device to send a Huawei proprietary trap when the number of ND access users on an interface falls below the lower threshold.

-

hwnomatchsnpbindtbldhcppktalarm

Enables the device to send a Huawei proprietary trap when the number of DHCP Request packets that do not match DHCP snooping binding entries and are discarded on an interface exceeds the threshold.

-

hwsnpusernumberalarmglobal

Enables the device to send a Huawei proprietary trap when the number of DHCP access users on the device exceeds the upper threshold.

-

hwsnpusernumberalarmglobalresume

Enables the device to send a Huawei proprietary trap when the number of DHCP access users on the device falls below the lower threshold.

-

hwsnpusernumberalarmif

Enables the device to send a Huawei proprietary trap when the number of DHCP access users on an interface exceeds the upper threshold.

-

hwsnpusernumberalarmifresume

Enables the device to send a Huawei proprietary trap when the number of DHCP access users on an interface falls below the lower threshold.

-

hwsnpusernumberalarmvlan

Enables the device to send a Huawei proprietary trap when the number of DHCP access users in a VLAN exceeds the upper threshold.

-

hwsnpusernumberalarmvlanresume

Enables the device to send a Huawei proprietary trap when the number of DHCP access users in a VLAN falls below the lower threshold.

-

hwuntrustedreplypktalarm

Enables the device to send a Huawei proprietary trap when the number of DHCP Reply packets discarded on an untrusted interface exceeds the threshold.

-

hwnomatchsnpbindtbldhcpv6pktalarm Enables the device to send a Huawei proprietary trap message when the number of DHCPv6 Request packets discarded on an interface because they do not match the binding entries exceeds the threshold.

-

hwnomatchsnpbindtblndpktalarm Enables the device to send a Huawei proprietary trap message when the number of ND packets discarded on an interface because they do not match the binding entries exceeds the threshold.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After the trap function is enabled, the device generates traps during operation and sends the traps to the NMS through the SNMP module. If the trap function is disabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify snmp-agent to enable the trap function for one or more events.

For traps that are enabled by default, the device has the trap suppression function configured and does not report traps within 10 minutes.

Example

# Enable the trap function for hwdhcppktratealarm of the DHCP module.

<Huawei> system-view
[Huawei] snmp-agent trap enable feature-name dhcp trap-name hwdhcppktratealarm
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 205763

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next