Users Guide

Table Of Contents
Parameters
community name Set the community name string to act as a password for SNMPv1 and
SNMPv2c access. A maximum of 20 alphanumeric characters.
ro Set read-only access for the SNMP community.
rw Set read-write access for the SNMP community.
acl acl-name Enter an existing IPv4 ACL name to limit SNMP access in the SNMP community.
Defaults An SNMP community has read-only access.
Command Mode CONFIGURATION
Usage
Information
The SNMPv1 and SNMPv2c security models use a community-based form of security. Use this command
to configure read-only or read-write access for an SNMP community name. The configured community
text string is used for SNMPv1 and SNMPv2c user authentication.
To display the SNMP communities on the switch, use the show snmp community command.
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.
These points are applicable when you assign an ACL to an SNMP community:
By default, SNMP requests from all hosts are allowed.
You can only apply permit ACL rues to an SNMP community. deny ACL rules do not take effect if
you apply them.
To permit SNMP requests for multiple hosts, apply individual permit ACL rules for hosts or prefixes.
Applying ACL rules for an SNMP community in a nondefault VRF is not supported.
The no version of the command removes the configured community text string.
Example
OS10(config)# snmp-server community admin rw
OS10(config)# snmp-server community public ro acl snmp-read-only-acl
Supported
Releases
10.2.0E or later
snmp-server contact
Configures contact information for troubleshooting the local SNMP switch.
Syntax
snmp-server contact text
Parameters text Enter an alphanumeric text string. A maximum of 55 characters.
Default The SNMP server contact is support.
Command Mode CONFIGURATION
Usage
Information
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 this command resets the SNMP server contact to the default value.
Example
OS10(config)# snmp-server contact administrator
Supported
Releases
10.2.0E or later
snmp-server enable traps
Enables SNMP traps on a switch.
Syntax
snmp-server enable traps [notification-type] [notification-option]
Parameters
notification-type notification-option Enter an SNMP notification type, and
optionally, a notification option for the type.
160 System management