160
Step Command
Remarks
2.
(Optional.) Enable
the SNMP agent.
snmp-agent
By default, the SNMP agent is
disabled.
The SNMP agent is enabled
when you use any command
that begins with
snmp-agent
except for the
snmp-agent
calculate-password
command.
3.
(Optional.)
Configure the system
contact.
snmp-agent sys-info
contact
sys-contact
The default system contact is
Hangzhou H3C Tech. Co., Ltd.
.
4.
(Optional.)
Configure the system
location.
snmp-agent sys-info
location
sys-location
The default system location is
Hangzhou, China
.
5.
Enable SNMPv3.
snmp-agent
sys-info
version
v3
By default, SNMPv3 is
enabled.
6.
(Optional.) Change
the local engine ID.
snmp-agent local-engineid
engineid
By default, the local engine ID is
the company ID plus the device
ID.
IMPORTANT:
After you change the local
engine ID, the existing SNMPv3
users and encrypted keys
become invalid, and you must
reconfigure them.
7.
(Optional.)
Configure a remote
engine ID.
snmp-agent
remote
{
ip-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
]
engineid
engineid
By default, no remote engine ID
is configured.
To send informs to an SNMPv3
NMS, you must configure the
SNMP engine ID of the NMS.
8.
(Optional.) Create or
update a MIB view.
snmp-agent mib-view
{
excluded
|
included
}
view
-
name
oid
-
tree
[
mask
mask-value
]
By default, the MIB view
ViewDefault
is predefined. In
this view, all the MIB objects in
the
iso
subtree but the
snmpUsmMIB
,
snmpVacmMIB
,
and
snmpModules.18
subtrees
are accessible.
Each
view-name oid-tree
pair
represents a view record. If you
specify the same record with
different MIB sub-tree masks
multiple times, the most recent
configuration takes effect.
Except for the four sub-trees in
the default MIB view, you can
create up to 16 unique MIB
view records.