API Guide

priv Authenticate users and encrypt/decrypt SNMP messages.
access acl-name (Optional) Enter the name of an IPv4 or IPv6 access list to filter SNMP
requests received on the switch. A maximum of 16 characters.
read view-name (Optional) Enter the name of a read-only view. A maximum of 32 characters
maximum.
write view-name (Optional) Enter the name of a read-write view. A maximum of 32 characters
maximum.
notify view-name (Optional) Enter the name of a notification view. A maximum of 32
characters maximum.
Defaults Not configured
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 {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:
170 System management