Command Line Reference Guide

> snmpwalk -c public 10.10.10.130 .1.3.6.1.2.1.31 | grep -i
alias | more
IF-MIB::ifAlias.134530304 = STRING: This is a port connected
to Router2. This is a
port connected to Router2. This is a port connected to
Router2. This is a port
connected to Router2. This is a port connected to Router2.
IF-MIB::ifAlias.134792448 = STRING:
snmp-server community
Configure a new community string access for SNMPv1 v2 and v3.
Syntax
snmp-server community community-name {ro | rw} [security-name
name][access-list-name]
To remove access to a community, use the no snmp-server community
community-string {ro | rw} [security-name name [access-list-
name] command.
Parameters
community-
name
Enter a text string (up to 20 characters long) to act as a
password for SNMP.
ro Enter the keyword ro to specify read-only permission.
rw Enter the keyword rw to specify read-write permission.
security-name
name
(Optional) Enter the keywords security-name then the
security name as defined by the community MIB.
access-list-
name
(Optional) Enter a standard IPv4 access list name (a string up
to 16 characters long).
Defaults none
Command
Modes
CONFIGURATION
Command
History
Version 8.3.16.1 Introduced on the MXL 10/40GbE Switch IO Module.
Usage
Information
The following example configures a community named public that is mapped to
the security named guestuser with Read Only (ro) permissions.
The security-name parameter maps the community string to an SNMPv3 user/
security name as defined by the community MIB.
If a community string is configured without a security-name (for example,
snmp-server community public ro), the community is mapped to a default
security-name/group:
v1v2creadu / v1v2creadg — maps to a community with ro (read-only)
permissions.
Simple Network Management Protocol (SNMP) and Syslog
1225