Operation Manual

IP Services Commands
Mobility System Software Command Reference Guide
Version 7.3
8 – 116
set snmp community
Configures a community string for SNMPv1 or SNMPv2c.
Syntax
set snmp community name comm-string
access {read-only | read-notify | notify-only | read-write | notify-read-write}
Defaults
None.
Access
Enabled.
History
Usage
SNMP community strings are passed as clear text in SNMPv1 and SNMPv2c. Trapeze
Networks recommends that you use strings that cannot easily be guessed by unauthorized users. For
example, do not use the well-known strings public and private.
If you are using SNMPv3, you can configure SNMPv3 users to use authentication and to encrypt
SNMP data.
Examples
The following command configures the read-write community good_community:
MX# set snmp community read-write good_community
success: change accepted.
The following command configures community string switchmgr1 with access level
notify-read-write:
MX# set snmp community name switchmgr1 notify-read-write
success: change accepted.
Note:
For SNMPv3, use the set snmp usm command to configure an SNMPv3 user. SNMPv3
does not use community strings.
comm-string Name of the SNMP community. Specify between 1 and 32 alphanumeric
characters, with no spaces.
read-only Allows an SNMP management application using the string to get (read) object
values on the switch but not to set (write) them.
read-notify Allows an SNMP management application using the string to get object values
on the MX but not to set them. The switch can use the string to send
notifications.
notify-only Allows the MX to use the string to send notifications.
read-write Allows an SNMP management application using the string to get and set object
values on the switch.
notify-read-write Allows an SNMP management application using the string to get and set object
values on the switch. The MX also can use the string to send notifications.
Version 1.0 Command introduced.
Version 3.1 Default community strings changed from public (for read-only) and private (for
read-write) to blank.
Version 4.0 Default strings removed. There are no default strings in MSS Version 4.0.
New access types added for SNMPv3:
read-notify
notify-only
notify-read-write