Alcatel-Lucent 6850-48 参考指南

下载
页码 3444
SNMP Commands
OmniSwitch CLI Reference Guide
September 2009
page 10-23
snmp trap filter
Enables or disables SNMP trap filtering. Trap filtering is used to determine whether a trap or group of 
traps will be sent from the switch to a specified SNMP station.
snmp trap filter {ip_address | ipv6_addresstrap_id_list
no snmp trap filter {ip_address | ipv6_address} trap_id_list
Syntax Definitions
ip_address
The IP address for the SNMP station for which trap filtering is being 
enabled or disabled.
ipv6_address
The IPv6 address for the SNMP station for which trap filtering is being 
enabled or disabled.
trap_id_list
Specifies the trap(s) for which filtering is being enabled or disabled. 
Traps must be specified using the numeric trap ID. You can specify 
more than one trap in the command line; separate each trap ID with a 
space and no comma.
Defaults
By default, SNMP trap filtering is disabled.
Platforms Supported
OmniSwitch 6400, 6850, 6855, 9000, 9000E
Usage Guidelines
• The amount of traps that can be specified is equal to the number of traps supported in the AOS release.
• To enable trap filtering, use the syntax 
 ip_address trap_id_list
• To disable trap filtering, use the syntax 
 ip_address trap_id_list
• When filtering is enabled, the specified trap(s) will not be sent to the SNMP station. When filtering is 
disabled, the specified traps will be sent to the SNMP station.
• To display a list of traps and their ID numbers, use th
 command.
Examples
-> snmp trap filter 172.1.2.3 1
-> snmp trap filter 172.1.2.3 0 1 3 5
-> snmp trap filter 300::1 1 3 4
-> no snmp trap filter 172.1.2.3 1
-> no snmp trap filter 172.1.2.3 0 1 3 5
-> no snmp trap filter 300::1 1 3