Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
2-661
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
set snmp targetaddr
set snmp targetaddr
To configure the SNMP target address entries in the snmpTargetAddressTable, use the set snmp
targetaddr command.
set snmp targetaddr [-hex] {addrname} param [-hex] {paramsname} {ipaddr}
[udpport {port}] [timeout {value}] [retries {value}] [volatile | nonvolatile]
[taglist {[-hex] tag}] [[-hex] tag tagvalue]
Syntax Description
Defaults The defaults are as follows:
storage type is nonvolatile.
udpport is 162.
timeout is 1500.
retries is 3.
taglist is NULL.
Command Types Switch command.
Command Modes Privileged.
-hex (Optional) Displays addrname, paramsname, tagvalue, and tag in a hexadecimal
format.
addrname Unique identifier to index the snmpTargetAddrTable; the maximum length is 32
bytes.
param Specifies an entry in the snmpTargetParamsTable that provides parameters to be used
when generating a message to the target; the maximum length is 32 bytes.
paramsname Entry in the snmpTargetParamsTable; the maximum length is 32 bytes.
ipaddr IP address of the target.
udpport port (Optional) Specifies which UDP port of the target host to use.
timeout value (Optional) Specifies the number of timeouts.
retries value (Optional) Specifies the number of retries.
volatile (Optional) Specifies that the storage type is defined as temporary memory and the
content is deleted if the device is turned off.
nonvolatile (Optional) Specifies that the storage type is defined as persistent memory and the
content remains after the device is turned off and on again.
taglist tag (Optional) Specifies a tag name in the taglist.
tag tagvalue (Optional) Specifies the tag name.