beautypg.com

Create snmp community – Allied Telesis AT-S39 User Manual

Page 51

background image

AT-S39 Command Line Interface User’s Guide

51

CREATE SNMP COMMUNITY

Syntax

create snmp community=”community”
access=read|write [traphost=ipaddress]

Parameter

community

Specifies the new community string. A community

string can be up to thirteen characters. Community
strings are case sensitive. If the string contains a space
or special character, such as an exclamation point, it
must be enclosed in double quotes; otherwise, the
quotes are optional.

access

Specifies the string’s access level. Options are Read

and Write.

traphost

Specifies the IP address of a management workstation
to receive management traps from the switch.

Description

This command creates a new Read or Write community string on the
switch.

The switch supports only one Read community string and one Write
community string at a time. Consequently, you cannot create a new
Read or Write community string until after you have deleted the current
community string using the DESTROY SNMP command. For example, to
create a new community string with Read access, you must first destroy
the current community string that has that access level. To view the
current community strings, refer to the SHOW SNMP command.

When you create a new community string, you can specify an IP address
of a network node to receive traps from the switch, referred to as a trap
receiver. The switch can support up to four IP addresses of trap receivers,
but only one can be added with this command. To add more IP
addresses of trap receivers, refer to the ADD SNMP COMMUNITY
TRAPHOST command.

Example

The following command creates the new Read community sting
“serv12”:

create snmp community=serv12 access=read