The display snmp-agent trap feature-name dhcp all command displays the status of all traps on the DHCP module.
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.
# 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
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:
|
Default switch status |
Default status of the trap function:
|
Current switch status |
Trap status:
|