Users Guide

Table Of Contents
Command Mode CONFIGURATION
Usage Information Use this command to set up the access privileges for a group of SNMP users. Configure the security level for
receiving SNMP messages. Specify read-only, read-write, and/or notification access to the SNMP agent. To
configure an SNMPv3 user's authentication and privacy settings, use the snmp-server user command.
Enter an access acl-name value to limit access to the SNMP agent to only ACL-allowed users.
A read-view provides read-only access to the SNMP agent. A read-write view allows read-write access. A notify-
view allows SNMP notifications to be sent to group members.
Supported on the MX9116n and MX5108n switches in both Full Switch mode starting in release 10.4.2.0. Also
supported in SmartFabric mode starting in release 10.5.0.1.
The no version of the command deletes an SNMP group.
Example
OS10(config)# snmp-server group os10admin p3 priv read readonlyview
Supported
Releases
10.4.2.0 or later
snmp-server host
Configures a host to receive SNMP notifications.
Syntax
snmp-server host {ipv4–address | ipv6–address} {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
ipv4–address | ipv6–address — 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.
System management 147