Create the STA SNMP v2c Trap Recipient
If you are using SNMP v2c, define the STA server as an authorized recipient of SNMP v2c traps and to define traps the library sends.
Note the following configuration requirements:
- To avoid duplicate records, do not define the STA server as a trap recipient in multiple instances. For example, do not create both an SNMP v3 and SNMP v2c trap recipient definition for the STA server.
- Trap level 4 may not be supported by older library firmware versions; however, it can always be specified when creating a trap recipient.
- To avoid entry errors in the CLI, you can first type the command in
a text file, and then copy and paste it into the CLI. For help with CLI
commands, type
help snmp
. - Do not use the values "public" or "private" for the community string, as these values are well known and present a security risk.
SL500, SL3000, and SL8500
-
Establish a CLI session on the library.
-
Create an SNMP v2c trap recipient. Separate trap levels with commas.
> snmp addTrapRecipient trapLevel 1,2,3,4,11,13,14,21,25,27,41,45, 61,63,65,81,85,100 host
STA_server_IP
version v2c communitycommunity_name
Where:
-
STA_server_IP
: IP address of the STA server. -
community_name
: SNMP v2c trap community string.
For example:
> snmp addTrapRecipient trapLevel 1,2,3,4,11,13,14,21,25,27,41,45,61,63,65,81,85,100 host 192.0.2.20 version v2c community stasnmp
-
-
List the trap recipients to verify that STA has been added correctly.
> snmp listTrapRecipients ... Trap Level 1,2,3,4,11,13,14,21,25,27,41,45, 61,63,65,81,85,100 Version v2c Object Snmp snmp
SL150