set snmp targetaddr

Use this command to configure an SNMP target address.

Syntax

set snmp targetaddr targetaddr ipaddr param param [udpport udpport] [mask mask] [timeout timeout] [retries retries] [taglist taglist] [volatile | nonvolatile]

Parameters

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.

Defaults

  • If not specified, udpport will be set to 162.
  • If not specified, mask will be set to 255.255.255.255
  • If not specified, timeout will be set to 1500.
  • If not specified, number of retries will be set to 3.
  • If taglist is not specified, none will be set.
  • If not specified, storage type will be set to nonvolatile.

Mode

All command modes.

Usage

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.

Example

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