3com MSR 20-20 참조 매뉴얼

다운로드
페이지 2742
2337
snmp-agent community
Syntax
snmp-agent community { read | write community-name [ acl acl-number | 
mib-view view-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-number indicating the 
ACL number, in the range 2,000 to 2,999.
mib-view view-name: Specifies the MIB view name associated with 
community-name, where view-name represents 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