Command Reference Guide Global Configuration Mode Command Set
61200510L1-35E Copyright © 2005 ADTRAN 502

snmp-server community <community> view <viewname> [ro | rw]

<listname>

Use the snmp-server community command to specify a community string to control access to the Simple
Network Management Protocol (SNMP) information. Use the no form of this command to remove a
specified community.
Syntax Description
<community> Specifies the community string (a password to grant SNMP access).
view <viewname> Optional. Specifies a previously defined view. Views define objects available to
the community. For information on creating a new view, see snmp-server view
<viewname> <oidtree> [excluded | included] on page 512.
ro
Optional.
Keyword to grant read-only access, allowing retrieval of MIB objects.
rw
Optional.
Keyword to grant read-write access, allo wing retrieval and modificatio n
of MIB objects.
<listname>
Optional.
Specifies an access-con trol list na m e use d to limit acc es s. Ref er to ip
access-list extended <listname> on page 392 and ip access-list standard
<listname> [permit | deny] <ip addres s> on page 398 for more information on
creating access-control lists.
Default Values
By default, there are no config ured SNMP communities.
Applicable Platforms
This command applies to the NetVanta 300, 1000, 1000R, 2000, 3000, 4000, and 5000 and
Total Access 900 Series units.
Command History
Release 1.1 Command was introduced.
Release 9.1 view <viewname> option added.
Usage Examples
The following example specifies a community named MyCommunity, specifies a previou sly defin e d view
named blockinterfaces, and assigns read-write access:
(config)#sn mp - se rve r comm un it y M yCommu n it y vi ew bloc ki nt erf ac e s rw