API Guide

Parameters None
Defaults None
Command Mode EXEC
Usage
Information
Use the show snmp view command to verify the OID starting point for SNMP views in MIB trees. To
configure an SNMP view, use the snmp-server view command.
Example
OS10# show snmp view
view name : readview
OID : 1.3.6.5
excluded : True
Supported
Releases
10.4.2.0 or later
snmp-server community
Configures an SNMP user community.
Syntax
snmp-server community name {ro | rw} [acl acl-name]
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.
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.
System management 167