117
DWS-1008 User’s Manual
D-Link Systems, Inc.
Configuring SNMP
Configuring Community Strings (SNMPv1 and SNMPv2c Only)
To configure a community string for SNMPv1 or SNMPv2c, use the following command:
set snmp community name
comm-string
access
{
read-only
|
read-notify
|
notify-only
|
read-write
|
notify-read-write
}
The
comm-string
can be up to 32 alphanumeric characters long, with no spaces.
You can configure up to 10 community strings.
The access level specifies the read-write privileges of the community string:
•
read-only
- An SNMP management application using the string can get
(read) object values on the switch but cannot set (write) them. This is the
default.
•
read-notify
- An SNMP management application using the string can get
object values on the switch but cannot set them. The switch can use the string
to send notifications.
•
notify-only
- The switch can use the string to send notifications.
• read-write - An SNMP management application using the string can get and
set object values on the switch.
•
notify
-
read
-
write
- An SNMP management application using the string can
get and set object values on the switch. The switch can use the string to
send notifications.
To clear an SNMP community string, use the following command:
clear snmp community name
comm-string
The following command configures community string
switchmgr1
with access level
notify
-
read
-
write
:
DWS-1008
set snmp community name switchmgr1 notify-read-write
success: change accepted.