< Home

display snmp-agent trap feature-name dhcp all

Function

The display snmp-agent trap feature-name dhcp all command displays the status of all traps on the DHCP module.

Format

display snmp-agent trap feature-name dhcp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After enabling the trap function for the DHCP module, you can run this command to check the status of all traps on the DHCP module. To enable the trap function for the DHCP module, run the snmp-agent trap enable feature-name dhcp command.

Prerequisites

The SNMP function has been enabled on the device. For details, see snmp-agent.

Example

# Display the status of all traps on the DHCP module.

<HUAWEI>display snmp-agent trap feature-name dhcp all
------------------------------------------------------------------------------                                                      
Feature name: dhcp                                                                                                                  
Trap number : 18
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwNomatchSnpBindTblDhcpPktAlarm                                                                                                     
                                off                     off                                                                         
hwDhcpSnpChaddrAlarm            off                     off                                                                         
hwUntrustedReplyPktAlarm        off                     off                                                                         
hwDhcpPktRateAlarm              off                     on                                                                          
hwSnpUserNumberAlarmIf          on                      off                                                                         
hwSnpUserNumberAlarmIfResume    on                      off                                                                         
hwSnpUserNumberAlarmVlan        on                      off                                                                         
hwSnpUserNumberAlarmVlanResume  on                      off                                                                         
hwSnpUserNumberAlarmGlobal      on                      off                                                                         
hwSnpUserNumberAlarmGlobalResume                                                                                                    
                                on                      off                                                                         
hwNdSnpUserNumberAlarmIf        on                      off
hwNdSnpUserNumberAlarmIfResume  on                      off 
hwNdSnpUserNumberAlarmGlobal    on                      off  
hwNdSnpUserNumberAlarmGlobalResume   
                                on                      off 
hwNomatchSnpBindTblDhcpv6PktAlarm                                                                                                   
                                off                     off
hwNomatchSnpBindTblNDPktAlarm   off                     off 
hwSnpRemoteBackupAlarm          on                      on
hwSnpRemoteBackupAlarmResume    on                      on 
Table 1 Description of the display snmp-agent trap feature-name dhcp all command output

Item

Description

Feature name

Name of the module to which a trap belongs.

Trap number

Number of traps.

Trap name

Name of a trap. Traps on the DHCP module include:

  • hwNomatchSnpBindTblDhcpPktAlarm: The device sends 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.
  • hwDhcpSnpChaddrAlarm: The device sends a Huawei proprietary trap when the number of discarded DHCP packets whose CHADDR field differs from the source MAC address exceeds the threshold.
  • hwUntrustedReplyPktAlarm: The device sends a Huawei proprietary trap message when the number of DHCP Reply packets discarded on an untrusted interface exceeds the threshold.
  • hwDhcpPktRateAlarm: The device sends a Huawei proprietary trap message when the number of discarded DHCP packets whose rate exceeds the limit exceeds the threshold.
  • hwSnpUserNumberAlarmIf: The device sends a Huawei proprietary trap message when the number of DHCP access users on an interface exceeds the upper threshold.
  • hwSnpUserNumberAlarmIfResume: The device sends a Huawei proprietary trap message when the number of DHCP access users on an interface falls below the lower threshold.
  • hwSnpUserNumberAlarmVlan: The device sends a Huawei proprietary trap message when the number of DHCP access users in a VLAN exceeds the upper threshold.
  • hwSnpUserNumberAlarmVlanResume: The device sends a Huawei proprietary trap message when the number of DHCP access users in a VLAN falls below the lower threshold.
  • hwSnpUserNumberAlarmGlobal: The device sends a Huawei proprietary trap message when the number of DHCP access users on the device exceeds the upper threshold.
  • hwSnpUserNumberAlarmGlobalResume: The device sends a Huawei proprietary trap message when the number of DHCP access users on the device falls below the lower threshold.
  • hwNdSnpUserNumberAlarmIf: The device sends a Huawei proprietary trap message when the number of ND access users on an interface exceeds the upper threshold.
  • hwNdSnpUserNumberAlarmIfResume: The device sends a Huawei proprietary trap message when the number of ND access users on an interface falls below the lower threshold.
  • hwNdSnpUserNumberAlarmGlobal: The device sends a Huawei proprietary trap message when the number of ND access users on the device exceeds the upper threshold.
  • hwNdSnpUserNumberAlarmGlobalResume: The device sends a Huawei proprietary trap message when the number of ND access users on the device falls below the lower threshold.
  • hwNomatchSnpBindTblDhcpv6PktAlarm: The device sends 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: The device sends 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.
  • hwSnpRemoteBackupAlarm: The device sends a Huawei proprietary trap message when DHCP snooping binding entries fail to be restored from the remote server.
  • hwSnpRemoteBackupAlarmResume: The device sends a Huawei proprietary trap message when DHCP snooping binding entries are successfully restored from the remote server.

Default switch status

Default status of the trap function:
  • on: The trap function is enabled by default.

  • off: The trap function is disabled by default.

Current switch status

Trap status:

  • on: The trap is enabled.

  • off: The trap is disabled.

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