135
[Agent] snmp-agent usm-user v3 RBACtest user-role test simple authentication-mode sha
123456TESTauth&! privacy-mode aes128 123456TESTencr&!
# Configure contact and physical location information for the agent.
[Agent] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Agent] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable notifications, specify the NMS at 1.1.1.2 as a notification destination, and set the
username to
RBACtest
for the notifications.
[Agent] snmp-agent trap enable
[Agent] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname
RBACtest v3 privacy
2.
Configure the SNMP NMS:
Specify SNMPv3.
Create the SNMPv3 user
RBACtest
.
Enable both authentication and privacy functions.
Use SHA-1 for authentication and AES for encryption.
Set the authentication key to
123456TESTauth&!
and the privacy key to
123456TESTencr&!
.
Set the timeout timer and maximum number of retries.
For information about configuring the NMS, see the NMS manual.
NOTE:
The SNMP settings on the agent and the NMS must match.
Configuring SNMPv3 in VACM mode
1.
Configure the agent:
# Configure the IP address of the agent, and make sure the agent and the NMS can reach each
other. (Details not shown.)
# Create SNMPv3 group
managev3group
and assign
managev3group
read-only access to
the objects under the
snmpMIB
node (OID: 1.3.6.1.6.3.1) in the
test
view, including the
linkUp
and
linkDown
objects.
<Agent> system-view
[Agent] undo snmp-agent mib-view ViewDefault
[Agent] snmp-agent mib-view included test snmpMIB
[Agent] snmp-agent group v3 managev3group privacy read-view test
# Assign SNMPv3 group
managev3group
read-write access to the objects under the
system
node (OID: 1.3.6.1.2.1.1) and
interfaces
node (OID: 1.3.6.1.2.1.2) in the
test
view.
[Agent] snmp-agent mib-view included test 1.3.6.1.2.1.1
[Agent] snmp-agent mib-view included test 1.3.6.1.2.1.2
[Agent] snmp-agent group v3 managev3group privacy read-view test write-view test
# Add user VACMtest to SNMPv3 group
managev3group
, and set the authentication algorithm
to
sha
, authentication key to
123456TESTauth&!
, encryption algorithm to
aes128
, and privacy
key to
123456TESTencr&!
.
[Agent] snmp-agent usm-user v3 VACMtest managev3group simple authentication-mode sha
123456TESTauth&! privacy-mode aes128 123456TESTencr&!
# Configure contact and physical location information for the agent.
[Agent] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Agent] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable notifications, specify the NMS at 1.1.1.2 as a trap destination, and set the username to
VACMtest
for the traps.