Configuring snmpv1 or snmpv2c basic parameters – H3C Technologies H3C SecBlade LB Cards User Manual
Page 65

56
Step Command
Remarks
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 | acl
ipv6 ipv6-acl-number ] *
By default, no SNMP group exists.
7.
Convert a plaintext
key to a ciphertext
(encrypted) key.
snmp-agent calculate-password
plain-password mode { 3desmd5 |
3dessha | md5 | sha }
{ local-engineid |
specified-engineid engineid }
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 |
acl ipv6 ipv6-acl-number ] *
N/A
9.
Configure the
maximum SNMP
packet size (in bytes)
that the SNMP agent
can handle.
snmp-agent packet max-size
byte-count
Optional.
By default, the SNMP agent can receive
and send SNMP packets up to 1500 bytes.
Configuring SNMPv1 or SNMPv2c basic parameters
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
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 for the
snmp-agent calculate-password
command.
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 Technologies
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.