H3C Technologies H3C WX5500E Series Access Controllers User Manual
Page 66

58
Step
Command
Remarks
2.
Enable the SNMP
agent.
snmp-agent
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 the snmp-agent
calculate-password and snmp-agent ifmib
long-ifindex enable commands.
3.
Configure system
information for the
SNMP agent.
snmp-agent sys-info { contact
sys-contact | location sys-location |
version { all |{ v1 | v2c | v3 }* } }
The defaults are as follows:
•
Contact—Hangzhou H3C Tech. Co.,
Ltd.
•
Location—Hangzhou China.
•
Version—SNMPv3.
4.
Configure the local
engine ID.
snmp-agent local-engineid
engineid
Optional.
The default local engine ID is the company
ID plus the device ID.
5.
Create or update a
MIB view.
snmp-agent mib-view { excluded |
included } view-name oid-tree
[ mask mask-value ]
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 last configuration takes effect.
Except for the four subtrees in the default
MIB view, you can create up to 16 unique
MIB view records.
6.
Configure the SNMP
access right.
•
(Approach 1) Create an SNMP
community:
snmp-agent community { read |
write } [ cipher ]
community-name [ mib-view
view-name ] [ acl acl-number ]
•
(Approach 2) Create an SNMP
group, and add a user to the
SNMP group:
a.
snmp-agent group { v1 |
v2c } group-name
[ read-view read-view ]
[ write-view write-view ]
[ notify-view notify-view ]
[ acl acl-number ]
b.
snmp-agent usm-user { v1
| v2c } user-name
group-name [ acl
acl-number ]
Use either approach.
By default, no SNMP group exists.
In approach 2, the username is equivalent
to the community name in approach 1, and
must be the same as the community name
configured on the NMS.
7.
Configure the
maximum size (in
bytes) of SNMP
packets for the
SNMP agent.
snmp-agent packet max-size
byte-count
Optional.
By default, the SNMP agent can receive
and send the SNMP packets up to 1500
bytes.