The snmp-agent trap enable feature-name mld command enables the trap function for the MLD module.
The undo snmp-agent trap enable feature-name mld command disables the trap function for the MLD module.
By default, the trap function for MLD events is disabled.
snmp-agent trap enable feature-name mld [ trap-name { glblimit | iflimit | iflimitclr | inslimit | joingrp | leavegrp | hwmgmdgmptotallimitclear | hwmgmdgmpgloballimitclear } ]
undo snmp-agent trap enable feature-name mld [ trap-name { glblimit | iflimit | iflimitclr | inslimit | joingrp | leavegrp | hwmgmdgmptotallimitclear | hwmgmdgmpgloballimitclear } ]
Only the S5720-EI, S5720-HI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
Parameter | Description | Value |
---|---|---|
trap-name | Enables the trap of MLD events of specified types. | - |
glblimit | Enables the trap that the total number of the MLD entries of all instances reaches the limit value. | - |
iflimit | Enables the trap that the number of MLD entries on an interface reaches the limit value. | - |
iflimitclr | Enables the trap that the number of MLD entries on an interface falls below the upper threshold | - |
inslimit | Enables the trap that the number of MLD entries in an instance reaches the limit value. | - |
joingrp | Enables the trap of the event that an MLD Join message is received. | - |
leavegrp | Enables the trap of the event that an MLD Leave message is received or the group timer expires. | - |
hwmgmdgmptotallimitclear | Generates an alarm when the number of MLD entries in a single instance falls below the upper threshold. | - |
hwmgmdgmpgloballimitclear | Generates an alarm when the number of MLD entries in all instances falls below the upper threshold. | - |
To enable the trap function of one or more types of trap messages, specify trap-name.
# Enable the trap of the event that an MLD Join message is received.
<HUAWEI> system-view [HUAWEI] snmp-agent trap enable feature-name mld trap-name joingrp
# Disable the trap of the event that an MLD Join message is received.
<HUAWEI> system-view [HUAWEI] undo snmp-agent trap enable feature-name mld trap-name joingrp