H3C Technologies H3C SR8800 User Manual
Page 109

97
Step Command
Remarks
2.
Enable the SNMP agent. snmp-agent
Optional.
Disabled by default.
You can also enable the SNMP
agent by using any command
that begins with snmp-agent.
3.
Configure system
information for the
SNMP agent.
snmp-agent sys-info { contact sys-contact |
location sys-location | version { { v1 | v2c
| v3 }* | all } }
The defaults are as follows:
•
Hangzhou H3C
Technologies Co., Ltd. for
contact.
•
Hangzhou China for
location.
•
SNMP v3 for the version.
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.
6.
Configure SNMP access
right.
•
(Approach 1) Create an SNMP
community:
snmp-agent community { read | write }
community-name [ acl acl-number |
mib-view view-name ]*
•
(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.
To be compatible with SNMPv3,
use the snmp-agent group
command.
Make sure that the username is
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
1,500 bytes by default.
NOTE:
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 the four subtrees in the default MIB
view, you can create up to 16 unique MIB view records.
- H3C SR6600-X H3C SR6600 H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module