Adds a SNMP (Simple Network Management Protocol) read or read/write community string.
readonly | Specifies read-only access to the system. |
readwrite | Specifies read and write access to the system. |
encrypted | Community name is encrypted. |
hex | Provide value in hexadecimal. |
hex_community_name | Community name in hexadecimal. |
store-encrypted | Community name will be stored as encrypted, instead plain text. |
alphanumeric_string | Specifies an SNMP community string name. See “Usage Guidelines” for more information. |
The default read-only community string is public. The default read/write community string is private.
Community strings provide a simple method of authentication between a switch and a remote network manager. Read community strings provide read-only access to the switch. The default read-only community string is public. Read-write community strings provide read and write access to the switch. The default read/write community string is private. Sixteen read-only and sixteen read/write community strings can be configured on the switch, including the defaults.
An authorized trap receiver must be configured to use the correct community strings on the switch for the trap receiver to receive switch-generated traps. In some cases, it may be useful to allow multiple community strings so that all switches and trap receivers are not forced to use identical community strings. The configure snmp add community command allows you to add multiple community strings in addition to the default community string.
An SNMP community string can contain up to 32 characters.
We recommend that you delete the defaults of the community strings. To delete the value of the default read/write and read-only community strings, use the configure snmp delete community command.
The following command adds a read/write community string with the value extreme:
configure snmp add community readonly hex 65:01
This command was first available in ExtremeXOS 10.1.
The hex keyword and hex_community_name variable were added in ExtremeXOS 15.6.