81
ï‚¡ Create the SNMPv3 user managev3user.
ï‚¡ 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.
The SNMP settings on the agent and the NMS must match.
3. Verify the configuration:
# Try to get the value of sysName from the agent. The get attempt succeeds.
Send request to 1.1.1.1/161 ...
Protocol version: SNMPv3
Operation: Get
Request binding:
1: 1.3.6.1.2.1.1.5.0
Response binding:
1: Oid=sysName.0 Syntax=OCTETS Value=Agent
Get finished
# Try to set the device name from the agent. The set attempt fails because the NMS does not
have access rights to the node.
Send request to 1.1.1.1/161 ...
Protocol version: SNMPv3
Operation: Set
Request binding:
1: 1.3.6.1.2.1.1.5.0
Response binding:
Session failed ! SNMP: Cannot access variable, No Access, error index=11:
Oid=sysName.0 Syntax=OCTETS Value=HPE Set finished
%Aug 14 16:13:21:475 2013 Agent SNMP/5/SNMP_SETDENY:
-IPAddr=1.1.1.2-SecurityName=managev3user-SecurityModel=SNMPv3-OP=SET-Node=sysNam
e(1.3.6.1.2.1.1.5.0)-Value=HPE; Permission denied.
# Log in to the agent. You can see a notification on the NMS.
hh3cLogIn inform received from: 192.168.41.41 at 2013/8/14 17:36:16
Time stamp: 0 days 08h:03m:43s.37th
Agent address: 1.1.1.1 Port: 62861 Transport: IP/UDP Protocol: SNMPv2c Inform
Manager address: 1.1.1.2 Port: 10005 Transport: IP/UDP
Community: public
Bindings (4)
Binding #1: sysUpTime.0 *** (timeticks) 0 days 08h:03m:43s.37th
Binding #2: snmpTrapOID.0 *** (oid) hh3cLogIn
Binding #3: hh3cTerminalUserName.0 *** (octets) testuser
[74.65.73.74.75.73.65.72 hex)]
Binding #4: hh3cTerminalSource.0 *** (octets) VTY [56.54.59 (hex)]