73
Configuring SNMPv1 and SNMPv2c settings
Ste
Command
Remarks
1. Enter system view. system-view —
2. Enable SNMP agent. snmp-agent
Optional.
Disabled by default.
Enable SNMP agent with this
command or any command
that begins with snmp-agent.
3. Create or update MIB view information.
snmp-agent mib-view
{ excluded | included }
view-name oid-tree [ mask
mask-value ]
Optional.
By default, the MIB view
name is ViewDefault and
OID is 1.
4. Configure
SNMP
NMS
access
right.
Directly
Configure an
SNMP
community.
snmp-agent community
{ read | write }
community-name [ acl
acl-number | mib-view
view-name ]*
Required.
Use either approach.
The direction configuration
approach is for SNMPv1 or
SNMPv2c. The community
name configured on the
NMS should be consistent
with the username configured
on the agent.
The indirect configuration
approach is for SNMPv3.
Indirectly
Configure an
SNMP group.
snmp-agent group { v1 |
v2c } group-name
[ read-view read-view ]
[ write-view write-view ]
[ notify-view notify-view ]
[ acl acl-number ]
Add a user to
the SNMP
group.
snmp-agent usm-user { v1 |
v2c } user-name group-name
[ acl acl-number ]