SNMP Commands 247
1
— SNMPv1 traps will be used.
2
— SNMPv2 traps will be used (Default).
udp-port
port
— UDP port of the host to use. The default is 162. (Range: 1 - 65535)
filter
filtername
— A string that is the name of the filter that define the filter for this
host. If unspecified, does not filter anything. (Range : Up to 30 characters).
timeout
seconds
— Number of seconds to wait for an acknowledgment before resending
informs. The default is 15 seconds. (Range :1 - 300)
retries
retries
— Maximum number of times to resend an inform request, when response
is not received for generated message. The default is 3. (Range: 0 - 255)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode
User Guidelines
When configuring snmp v1 or v2 notification recipients, the software should automatically
generate notification views for those recipients, for all MIBs.
Example
The following example specifies the recipient of Simple Network Management Protocol
notification operation.
snmp-server set
The
snmp-server set
Global Configuration mode command sets SNMP MIB value by the CLI.
Syntax
snmp-server set
variable-name name1 value1 [name2 value2 …]
variable-name
— MIB variable name.
name value.
— List of name and value pairs. In case of scalar MIBs there is only a single
pair of name values. In case of entry in a table the first pairs are the indexes, followed by
one or more fields.
Default Configuration
This command has no default configuration.
Console (config)# snmp-server host 10.1.1.1 management 2