H3C Technologies H3C MSR 50 User Manual
Page 18

Step
Command
Remarks
Optional.
By default, the SNMP agent is
disabled.
You can also enable the SNMP
agent service by using any
command that begins with
snmp-agent except for the
snmp-agent
calculate-password command.
11.
Enable the SNMP
agent.
snmp-agent
The defaults are as follows:
•
Contact—R&D Hangzhou,
Hangzhou H3C
Technologies Co., Ltd.
12.
Configure system
information for the
SNMP agent.
snmp-agent sys-info { contact sys-contact |
location sys-location | version { all |{ v1 | v2c
| v3 }* } }
•
Location—Hangzhou
China.
•
Version—SNMPv3.
Optional.
13.
Configure the local
engine ID.
The default local engine ID is
the company ID plus the device
ID.
snmp-agent local-engineid engineid
Optional.
By default, the MIB view
ViewDefault is predefined and
its OID is 1.
Each view-name oid-tree pair
represents a view record. If you
specify the same record with
different MIB subtree masks
multiple times, the most recent
configuration takes effect.
Except for the four subtrees in
the default MIB view, you can
create up to 16 unique MIB
view records.
14.
Create or update a
MIB view.
snmp-agent mib-view { excluded | included }
view-name oid-tree [ mask mask-value ]
•
(Method 1) Create an SNMP community:
snmp-agent community { read | write }
[ cipher ] community-name [ mib-view
view-name ] [ acl acl-number | acl ipv6
ipv6-acl-number ] *
Use either method.
•
(Method 2) Create an SNMP group, and
add a user to the SNMP group:
By default, no SNMP group
exists.
15.
Configure the SNMP
access right.
a.
snmp-agent group { v1 | v2c }
group-name [ read-view read-view ]
[ write-view write-view ] [ notify-view
notify-view ] [ acl acl-number | acl ipv6
ipv6-acl-number ] *
In method 2, the username is
equivalent to the community
name in method 1, and must be
the same as the community
name configured on the NMS.
b.
snmp-agent usm-user { v1 | v2c }
user-name group-name [ acl
acl-number | acl ipv6
ipv6-acl-number ] *
5