Set snmp community – Allied Telesis AT-S63 User Manual

Page 140

Advertising
background image

Chapter 7: SNMPv2 and SNMPv2c Commands

140

Section I: Basic Features

SET SNMP COMMUNITY

Syntax

set snmp community="

community

"

[access=read|write]

[open=yes|no|on|off|true|false]

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, on, true

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

no, off, false

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 126.
The default setting for a community
string is closed. These options are
equivalent.

Description

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

Advertising