Use this command to configure an SNMP target address.
targetaddr | Specifies a unique identifier to index the snmpTargetAddrTable. Maximum length is 32 bytes. |
ipaddr | Specifies the IP address of the target. |
param param | Specifies an entry in the SNMP target parameters table, which is used when generating a message to the target. Maximum length is 32 bytes. |
udpport udpport | (Optional) Specifies which UDP port of the target host to use. Default value is 162. |
mask mask | (Optional) Specifies the IP mask of the target. Default value is 255.255.255.255. |
timeout timeout | (Optional) Specifies the maximum round trip time allowed to communicate to this target address. This value is in .01 seconds and the default is 1500 (15 seconds.) |
retries retries | (Optional) Specifies the number of message retries allowed if a response is not received. Default is 3. |
taglist taglist | (Optional) Specifies a list of SNMP notify tag values. This tags a location to the target address as a place to send notifications. List must be enclosed in quotes and tag values must be separated by a space (i.e.: “tag 1 tag 2”) |
volatile | nonvolatile | (Optional) Specifies temporary (default), or permanent storage for SNMP entries. Default is nonvolatile. |
All command modes.
The target address is a unique identifier and a specific IP address that will receive SNMP notification messages and determine which community strings will be accepted. This address configuration can be linked to optional SNMP transmit parameters (such as timeout, retry count, and UDP port).
In C2 security mode, you can not create, delete, or modify an SNMP target address configuration while in Read-Write user mode.
This example shows how to configure a trap notification called “TrapSink.” This trap notification will be sent to the workstation 192.168.190.80 (which is target address “tr”). It will use security and authorization criteria contained in a target parameters entry called “v2cExampleParams”. For more information on creating a basic SNMP trap, refer to the S-, K-, and 7100 Series Configuration Guide.
System(rw)->set snmp targetaddr tr 192.168.190.80 param v2cExampleParams taglist TrapSink