H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – SNMP and RMON
H3C S7500 Series Ethernet Switches Chapter 1
SNMP Configuration Commands
1-10
1.1.10 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
Parameters
read: Indicates that MIB objects can only be read. Read-only communities can only
query device information.
write: Indicates that MIB objects can be read and written. Read-write communities can
configure the device.
community-name: Community name, a character string of 1 to 32 characters.
view-name: MIB view name, a character string of 1 to 32 characters.
acl-number: Basic Access Control List (ACL) number specified by a community name,
ranging from 2000 to 2999.
Description
Use the snmp-agent community command to configure community name and enable
the access to SNMP.
Use the undo snmp-agent community command to cancel the community name
settings.
Examples
# Configure the community name as comaccess and permit read-only access by this
community name.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] snmp-agent community read comaccess
# Configure community name as mgr and permit read-write access.
[H3C] snmp-agent community write mgr
# Remove the community name comaccess.
[H3C] undo snmp-agent community comaccess