Users Guide

Switch Management Commands 2196
Example
The following example attaches a group called user-group to SNMPv3 and
assigns to the group the privacy security level and read access rights to a view
called user-view.
console(config)#snmp-server view user-view iso included
console(config)#snmp-server group user-group v3 priv read user-view
snmp-server host
Use the snmp-server host command in Global Configuration mode to specify
the recipient of Simple Network Management Protocol notifications. To
remove the specified host, use the no form of this command. This command
enters the user into SNMP-host configuration mode.
Syntax
snmp-server host host-addr [informs [timeout seconds] [retries retries] |
traps version {1 | 2 }]] community-string [udp-port port] [filter filtername]
no snmp-server host host-addr { traps | informs }
host-addr—Specifies the IP address of the host (targeted recipient) or
the name of the host. Both IPv4 and IPv6 addresses are
accepted.(Range:1-256 characters)
community-string—Specifies a password-like community string sent
with the notification operation. (Range: 1-20 characters). The
community-string may include any printable characters except a
question mark, a backslash, or an at sign.
traps —Indicates that SNMP traps are sent to this host.
version 1—Indicates that SNMPv1 traps will be used.
version 2—Indicates that SNMPv2 traps will be used.
informs— Indicates that SNMPv2 informs are sent to this host.
seconds—Number of seconds to wait for an acknowledgment before
resending informs. The default is 15 seconds. (Range: 1-300.)
retries—Maximum number of times to resend an inform request. The
default is 3 attempts. (Range: 1-255)
port—UDP port of the host to use. The default is 162. (Range: 1-
65535.)