Command Reference Guide

344snmp-agent community 3Com Router 5000 Family and Router 6000 Family
Command Reference
snmp-agent community
Purpose Use the snmp-agent community command to configure the read/write attribute
of a community, the MIB view that it can access, and the ACL applied to it. The
configuration overwrites the old configuration of the community, if there is any.
Use the undo snmp-agent community command to cancel the setting.
Syntax snmp-agent community { read | write } community-name [ [ mib-view
view-name ] | [ acl acl-number ] ]*
undo snmp-agent community community-name
Parameters read
Indicates that the community name has read-only
access to the specified view.
write
Indicates that the community name has read-write
access to the specified view.
community-name
Community string.
mib-view
MIB view that the specified community can access.
view-name
Specifies a MIB view.
acl
Applies an ACL to the community name.
acl-number
Number of the ACL. Valid values are 2000 to 2999.
Example Set the community name to comaccess and grant it read-only access.
[3Com] snmp-agent community read comaccess
Set the community name to mgr and grant it read-write access.
[3Com] snmp-agent community write mgr
Delete the community name comaccess.
[3Com] undo snmp-agent community comaccess
View This command can be used in the following views:
System view
Related Commands snmp-agent group
snmp-agent usm-user