Configuring snmpv1 or snmpv2c basic parameters – H3C Technologies H3C SR8800 User Manual
Page 108

96
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
begin with snmp-agent.
3.
Configure system
information for the
SNMP agent.
snmp-agent sys-info { contact sys-contact |
location sys-location | version { all | { v1 |
v2c | v3 }* } }
Optional.
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 an
SNMPv3 group.
snmp-agent group v3 group-name
[ authentication | privacy ] [ read-view
read-view ] [ write-view write-view ]
[ notify-view notify-view ] [ acl acl-number ]
N/A
7.
Convert a plaintext
key to an encrypted
key.
snmp-agent calculate-password
plain-password mode { 3desmd5 |
3dessha | md5 | sha } { local-engineid |
specified-engineid string }
Optional.
8.
Add a user to the
SNMPv3 group.
snmp-agent usm-user v3 user-name
group-name [ [ cipher ]
authentication-mode { md5 | sha }
auth-password [ privacy-mode { 3des |
aes128 | des56 } priv-password ] ] [ acl
acl-number ]
If the cipher keyword is specified,
the arguments auth-password and
priv-password are considered as
encrypted keys.
9.
Configure the
maximum SNMP
packet size (in bytes)
that the SNMP agent
can handle.
snmp-agent packet max-size byte-count
Optional.
1,500 bytes by default.
Configuring SNMPv1 or SNMPv2c basic parameters
To configure SNMPv1 or SNMPv2c basic parameters:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
- 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