Dell Command Line Reference Guide for the S4048–ON System 9.14.2.8

PDF

snmp-server community

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
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 then an IPv6 ACL name (a string up to 16 characters long).
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

This guide is platform-specific. For command information about other platforms, see the relevant Dell EMC Networking OS Command Line Reference Guide.

Version
Description
9.10(0.1)
Introduced on the S6010-ON and S4048T-ON.
9.10(0.0)
Introduced on the S3148.
9.10(0.0)
Introduced on the S6100–ON.
9.8(2.0)
Introduced on the S3100 series.
9.8(1.0)
Introduced on the Z9100–ON.
9.8(0.0P5)
Introduced on the S4048-ON.
9.8(0.0P2)
Introduced on the S3048-ON.
9.7(0.0)
Introduced on the S6000-ON.
9.2(1.0)
Introduced on the Z9500.
9.0.2.0
Introduced on the S6000.
8.3.19.0
Introduced on the S4820T.
8.3.11.1
Introduced on the Z9000.
8.3.7.0
Introduced on the S4810.
7.6.1.0
Introduced on the S-Series.
7.5.1.0
Introduced on the C-Series.
6.2.1.1
Introduced on the E-Series.
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.
  • v1v2cwriteu/ v1v2cwriteg — maps to a community with rw (read-write) permissions.

The community-name parameter indexes this command.

If you do not configure the snmp-server community command, you cannot query SNMP data. Only Standard IPv4 ACL and IPv6 ACL is supported in the optional access-list-name.

The command options ipv6, security-name, and access-list-name are recursive. In other words, each option can, in turn, accept any of the three options as a sub-option, and each of those sub-options can accept any of the three sub-options as a sub-option, and so forth. The second Example shows the creation of a standard IPv4 ACL called snmp-ro-acl and then assigning it to the SNMP community guest.

NOTE: For IPv6 ACLs, only IPv6 and UDP types are valid for SNMP; TCP and ICMP rules are not valid for SNMP. In IPv6 ACLs, port rules are not valid for SNMP.
Example
DellEMC# config
DellEMC(conf)# snmp-server community public ro
DellEMC(conf)# snmp-server community guest ro security-name guestuser
DellEMC(conf)#
Example
DellEMC(conf)# ip access-list standard snmp-ro-acl
DellEMC(config-std-nacl)#seq 5 permit host 10.10.10.224
DellEMC(config-std-nacl)#seq 10 deny any count
!
DellEMC(conf)# snmp-server community guest ro snmp-ro-acl
DellEMC(conf)#
Related Commands

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\