Users Guide

Table Of Contents
Supported
Releases
10.4.2.0 or later
snmp-server host
Configures a host to receive SNMP notifications.
Syntax
snmp-server host {ipv4address | ipv6address} {informs version version-
number | traps version version-number | version version-number} [snmpv3-
security-level] [community-name] [udp-port port-number] [dom | entity |
envmon | lldp | snmp]
Parameters
ipv4address | ipv6address Enter the IPv4 or IPv6 address of the SNMP host.
informs Send inform messages to the SNMP host.
traps Send trap messages to the SNMP host.
version version-number Enter the SNMP security model used to send traps or informs to
the SNMP host 1, 2c, or 3. All security models support traps; only 2c and 3 support informs. To
send only SNMP notifications, enter only a version-number; do not enter informs or traps. For
SNMPv3 traps and informs, enter the security level:
noauth (SNMPv3 only) Send SNMPv3 traps without user authentication and privacy
encryption.
auth (SNMPv3 only) Include a user authentication key for SNMPv3 messages sent to the
host:
md5 Generate an authentication key using the Message Digest Algorithm (MD5) algorithm.
sha Generate an authentication key using the Secure Hash Algorithm (SHA) algorithm.
auth-password Enter a text string used to generate the authentication key that identifies
the user. A maximum of 32 alphanumeric characters. For an encrypted password, enter the
encrypted string instead of plain text.
priv (SNMPv3 only) Configure encryption for SNMPv3 messages sent to the host:
aes Encrypt messages using an AES 128-bit algorithm.
des Encrypt messages using a DES 56-bit algorithm.
priv-password Enter a text string used to generate the privacy key used in encrypted
messages. A maximum of 32 alphanumeric characters. For an encrypted password, you can
enter the encrypted string instead of plain text.
community-name (Optional) Enter an SNMPv1 or SNMPv2c community string name or an
SNMPv3 user name.
udp-port port-number (Optional) Enter the UDP port number on the SNMP host, from 0 to
65535.
dom | entity | envmon | lldp | snmp Enter one or more types of traps and
notifications to send to the SNMP host digital optical monitor, entity change, environment monitor,
or LLDP state change traps, or SNMP-type notifications.
Defaults
Not configured
Command Mode CONFIGURATION
Usage
Information
The local SNMP agent sends SNMP notifications, traps, and informs to SNMP managers configured as
host receivers. You can configure multiple host receivers.
An SNMP host does not acknowledge the trap messages and notifications received from the SNMP
agent. SNMP hosts send an acknowledgement when receiving informs.
Supported on the MX9116n and MX5108n switches in Full Switch mode starting in release 10.4.0E(R3S).
Also supported in SmartFabric mode starting in release 10.5.0.1.
The no version of the command disables the local agent from sending SNMP traps, informs, or
notifications to a host receiver.
Example Send
SNMP traps to
host
OS10(config)# snmp-server host 1.1.1.1 traps version 3 priv user01 udp-
port 32 entity lldp
132 System management