Set snmp community – Allied Telesis AT-S63 User Manual

Page 80

Advertising
background image

Chapter 4: SNMPv2 and SNMPv2c Commands

80

SET SNMP COMMUNITY

Syntax

set snmp community="

community

"

[access=read|write]

[open=yes|no]

Parameters

community

Specifies the SNMP community string whose access

level or access status is to be changed. This
community string must already exist on the switch.
This parameter is case sensitive. The name must be
enclosed in double quotes if it contains a space or
other special character such as an exclamation point.
Otherwise, the quotes are optional.

access

Specifies the new access level. Options are “read” for

read only access and “write” for both read and write
access. If no access level is specified, the default is
“read.”

open

Specifies the open or closed access status of the

community string. The options are:

yes

The community string is open, meaning that
any management station can use the string to
access the switch.

no

The community string is closed, meaning that
only those management stations whose IP
addresses are assigned to the string can use it
to access the switch. To add IP addresses of
management stations to a community string,
refer to “ADD SNMP COMMUNITY” on page 66.
The default setting for a community string is
closed.

Description

This command changes the access level and access status of an existing
SNMP community string.

Examples

The following command changes the access status for the SNMP
community string “sw44” to closed:

Advertising