Create the STA SNMP v3 Trap Recipient
Define the STA server as an authorized recipient of SNMP v3 traps. Define the traps that the library will send.
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 levels 13 (Test Trap) and 14 (Health Trap) were added in STA 2.0.x. Trap level 4 may not be supported by older library firmware versions; however, it can always be specified when creating a trap recipient.
SL500, SL3000, SL8500
-
Create an SNMP v3 trap recipient. Separate the 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 v3 name recipient_name auth SHA authPass auth_password priv DES privPass priv_password engineId library_engineID
Where:
STA_server_IP
is the IP address of the STA server.recipient_name
is the SNMP username you created in for the SNMPv3 user.auth_password
andpriv_password
are the authorization and privacy passwords you created in for the SNMPv3 user.library_engineID
is the library engine ID you displayed in Retrieve the Library SNMP Engine ID (SL500, SL3000, SL8500), including the 0x prefix.
For SL3000 and SL8500 libraries, enclose
recipient_name
,auth_password
, andpriv_password
in single quotes. For example:SL3000> 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 v3 name 'STAsnmp' auth SHA authPass 'authpwd1' priv DES privPass 'privpwd1' engineId 0x00abcdef000000000000000000
For SL500, do not use quotes. For example:
SL500> 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 v3 name STAsnmp auth SHA authPass authpwd1 priv DES privPass privpwd1 engineId 0x00abcdef000000000000000000
-
List the trap recipients, and verify the recipient has been added correctly.
> snmp listTrapRecipients
SL150