User`s guide

Chapter 5: SNMP Community Strings and Trap Commands
54
ADD SNMP COMMUNITY TRAPHOST
Syntax
add snmp community=community traphost=ipaddress
Parameters
community Specifies the switchs SNMP Read or Write
community string.
traphost Specifies the IP address of a management
workstation you want to receive management traps
from the switch.
Description
You can use this command to specify the IP addresses of up to four
management workstations you want to receive management traps from
the switch.
In using this command, you must specify the switchs Read or Write
community string. You can specify either string. It does not matter which
you use. (To view the community strings or to see if any management
workstation IP addresses have already been entered, use the SHOW
SNMP command.)
Example
The following command adds the IP address 149.212.11.22 of a
management workstation to receive traps from the switch. It uses the
default SNMP Read access community string public.
add snmp community=public traphost=149.212.11.22
As mentioned previously, you can use either community string to add IP
addresses of management workstations. The above command could just
as well have been performed using the SNMP Write community string.
The result would have been the same.