Adds the IP address of a trap receiver to the trap receiver list and specifies which SNMPv1/v2c traps are to be sent.
ip_address | Specifies an SNMP trap receiver IPv4 address. |
ipv6_address | Specifies an SNMP trap receiver IPv6 address |
hex_community_name | Specifies that the trap receiver is to be supplied as a colon separated string of hex octets. |
community_name | Specifies the community string of the trap receiver to be supplied in ASCII format. |
port_number | Specifies a UDP port to which the trap should be sent. Default is 162. |
src_ip_address | Specifies the IPv4 address of a This command is available on the ExtremeSwitching X440-G2, X450-G2, X460-G2, X465, X590, X620, and X695 series switches. to be used as the source address for the trap. |
src_ipv6_address | Specifies the IPv6 address of a VLAN to be used as the source address for the trap. |
vr_name | Specifies the name of the virtual router. |
trap_mode | Specifies the mode of the traps:enhanced—Contains extra varbinds at the end.standard—Does not contain extra varbinds. |
Trap receivers are in enhanced mode by default, and the version is SNMPv2c by default.
The IP address can be unicast, multicast, or broadcast.
An authorized trap receiver can be one or more network management stations on your network. Authorized trap receivers must be configured on the switch for the trap receiver to receive switch-generated traps. The switch sends SNMP traps to all trap receivers configured to receive the specific trap group.
To view the SNMP trap receivers configured on the switch, use the show management command. The show management command displays information about the switch including the destination and community of the SNMP trap receivers configured on the switch.
The following command adds the IP address 10.101.0.100 as a trap receiver with community string purple:
configure snmp add trapreceiver 10.101.0.100 community purple
The following command adds the IP address 10.101.0.105 as a trap receiver with community string green, using port 3003:
configure snmp add trapreceiver 10.101.0.105 community green port 3003
The following command adds the IP address 10.101.0.105 as a trap receiver with community string blue, and IP address 10.101.0.25 as the source:
configure snmp add trapreceiver 10.101.0.105 community blue from 10.101.0.25
This command was first available in ExtremeXOS 10.1.
The virtual router parameter was added in ExtremeXOS 12.3.
IPv6 support was added in ExtremeXOS 12.4.
This command is available on ExtremeSwitching X435, X440-G2, X450-G2, X460-G2, X465, X590, X620, and X695 series switches.