Reference Guide
SNMP and Syslog | 1359
Example
Figure 54-5. snmp ifmib ifalias long Command Example
snmp-server community
c e s
Configure a new community string access for SNMPv1, v2, and v3.
Syntax
snmp-server community community-name {ro | rw} [ipv6 ipv6-access-list-name [ipv6
ipv6-access-list-name | access-list-name | security-name name] | security-name name
[ipv6 ipv6-access-list-name | access-list-name | security-name name] | access-list-name
[ipv6 ipv6-access-list-name | access-list-name | security-name name]]]
To remove access to a community, use the no snmp-server community community-string {ro |
rw} [security-name name [access-list-name | ipv6 access-list-name | access-list-name ipv6
access-list-name]] command.
Parameters
Defaults
No default behavior or values
Command Modes
CONFIGURATION
Command
History
Usage
Information
The example below configures a community named public that is mapped to the security named
guestuser with Read Only (ro) permissions.
!------command run on host connected to switch: --------------!
> 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
IF-MIB::ifAlias.134792448 = STRING:
!------command run on FTOS switch: --------------!
FTOS#snmp ifmib ifalias long
!------command run on server connected to switch: --------------!
> 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:
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.
ipv6 access-list-name (Optional) Enter the keyword ipv6 followed by a an IPv6 ACL name (a
string up to 16 characters long).
security-name name
(Optional) Enter the keyword security-name followed by 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).
Version 7.6.1.0 Support added for S-Series
Version 7.5.1.0 Support added for C-Series
pre-Version.
6.2.1.1
Introduced on E-Series