SROS Command Line Interface Reference Guide

Global Configuration Mode Command Set

 

 

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

<listname>

Use the snmp-server community command to specify a community string to control access to 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

 

<view-name> <oidtree> [excluded included] on page 344.

ro

Optional. Keyword to grant read-only access, allowing retrieval of MIB objects.

rw

Optional. Keyword to grant read-write access, allowing retrieval and modification

 

of MIB objects.

<listname>

Optional. Specifies an access-control list name used to limit access. Refer to ip

 

access-list extended <listname> on page 250 and ip access-list standard

 

<listname> on page 257 for more information on creating access-control lists.

Default Values

By default, there are no configured SNMP communities.

Command Modes

(config)#

Global Configuration Mode

Usage Examples

The following example specifies a community named MyCommunity, specifies a previously defined view named blockinterfaces, and assigns read-write access:

(config)#snmp-server community MyCommunity view blockinterfaces rw

5991-2114

© Copyright 2005 Hewlett-Packard Development Company, L.P.

335

Page 335
Image 335
HP 7000 dl Router manual Snmp-server community community view viewname ro rw, Listname