The snmp-agent trap suppress feature-name lsp command configures the interval for suppressing the display of excessive LSP traps.
The undo snmp-agent trap suppress feature-name lsp command restores the default configuration.
By default, the interval for suppressing the display of excessive LSP traps is 300 seconds, and a maximum of three LSP traps can be sent in the suppression interval.
snmp-agent trap suppress feature-name lsp trap-name { mplsxcup | mplsxcdown } trap-interval trap-interval [ max-trap-number max-trap-number ]
undo snmp-agent trap suppress feature-name lsp trap-name { mplsxcup | mplsxcdown } trap-interval
Parameter | Description | Value |
---|---|---|
mplsxcup | Indicates the excessive traps generated when an LSP goes Up. | - |
mplsxcdown | Indicates the excessive traps generated when an LSP goes Down. | - |
trap-interval trap-interval | Specifies the interval for suppressing the display of excessive LSP traps. | The value is an integer ranging from 0 to 65535, in seconds. By default, the value is 300. |
max-trap-number max-trap-number | Sets the maximum number of traps to be sent during the suppression interval. | The value is an integer ranging from 1 to 65535. By default, the value is
3. If only trap-interval is specified, but max-trap-number is not, at most one trap can be sent during the suppression interval. |
To prevent excessive traps from being displayed because of frequent LSP status changes, run the snmp-agent trap suppress feature-name lsp command to set the interval for suppressing the display of excessive LSP traps. During a specified suppression interval, a trap of a specified type is displayed only once. This setting reduces traps to be displayed.
For example, when the interval for suppressing the display of excessive traps when the LSP goes Down is set to 60s, only one trap indicating that the LSP goes Down is displayed every 60s. Within this interval, no other trap of the same type is displayed, but the number of the same traps generated is logged. During the next 60s, another trap indicating that an LSP goes Down can be displayed.