3Com MSR 50, MSR 30 manual Snmp-agent community, Undo snmp-agent community community name

Models: MSR 50 MSR 30

1 2742
Download 2742 pages 31.98 Kb
Page 2337
Image 2337

2337

snmp-agent community

Syntax

snmp-agent community { read write } community-name[ acl acl-number

 

mib-viewview-name ] *

 

undo snmp-agent community community-name

View

System view

Parameter

read: Indicates that the community has read only access right to the MIB objects,

 

that is, the community can only inquire MIB information.

 

write: Indicates that the community has read and write access right to the MIB

 

objects, that is, the community can configure MIB information.

 

community-name: Community name, a string of 1 to 32 characters.

 

view-name: MIB view name, a string of 1 to 32 characters. If no keyword is

 

specified, the default view is ViewDefault (The view created by the system after

 

SNMP Agent is enabled).

 

acl acl-number: ACL for the community name, with acl-numberindicating the

 

ACL number, in the range 2,000 to 2,999.

 

mib-viewview-name: Specifies the MIB view name associated with

 

community-name, where view-namerepresents the MIB view name, a string of 1

 

to 32 characters. If no keyword is specified, the default view is ViewDefault (The

 

view created by the system after SNMP agent is enabled).

Description

Use the snmp-agent community command to configure a new SNMP

 

community. Parameters to be configured include access right, community name,

 

ACL, and accessible MIB views.

 

Use the undo snmp-agent community command to delete a specified

 

community.

 

The community name configured with this command is only valid for the SNMP v1

 

and v2c agent.

Example

# Configure a community with the name of comaccess that has read-only access

 

right.

 

<Sysname> system-view

 

[Sysname] snmp-agent community read comaccess

 

# Delete the community comaccess.

 

<Sysname> system-view

 

[Sysname] undo snmp-agent community comaccess

Page 2337
Image 2337
3Com MSR 50, MSR 30 manual Snmp-agent community, Undo snmp-agent community community name