98
To configure SNMPv3:
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Enable the SNMP agent.
snmp-agent
Optional.
Disabled by default.
You can enable the SNMP agent
through this command or any
command that begins with snmp-
agent.
3. Configure SNMP agent system
information.
snmp-agent sys-info { contact sys-
contact | location sys-location |
version { all | { v1 | v2c |
v3 }* } }
Optional.
The defaults are as follows:
Hewlett-Packard Development
Company, L.P., and SNMPv1
SNMPv2c SNMPv3 for the
version.
4. Configure a local engine ID
for an SNMP entity.
snmp-agent local-engineid
engineid
Optional.
Company ID and device ID by
default.
5. Create or update the MIB
view content for an SNMP
agent.
snmp-agent mib-view { excluded
| included } view-name oid-tree
[ mask mask-value ]
Optional.
By default, the MIB view name is
ViewDefault and OID is 1.
6. Configure an SNMP agent
group.
snmp-agent group v3 group-name
[ authentication | privacy ] [ read-
view read-view ] [ write-view
write-view ] [ notify-view notify-
view ] [ acl acl-number ]
Required.
7. Convert the user-defined plain
text password to a cipher text
password.
snmp-agent calculate-password
plain-password mode { 3desmd5
| 3dessha | md5 | sha } { local-
engineid | specified-engineid
engineid }
Optional.
8. Add a new user to an SNMP
agent 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 ]
Required.
If the cipher keyword is specified,
the arguments auth-password and
priv-password are considered as
cipher text passwords.
9. Configure the maximum size
of an SNMP packet that can
be received or sent by an
SNMP agent.
snmp-agent packet max-size byte-
count
Optional.
1,500 bytes by default.