CLI Guide

Table Of Contents
Switch Management Commands 2218
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-158 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.)
filtername— A string that is the name of the RFC 2573 Section 6 filter
that defines the traps/informs sent to this host. If unspecified, all
traps/informs are sent (Range: 1-30 characters.) Use the
snmp-server
filter
command to define a filter.