79
[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
managev3user for the traps.
[Agent] snmp-agent trap enable
[Agent] snmp-agent target-host trap address udp-domain 1.1.1.2 params securityname
managev3user v3 privacy
2. Configure the SNMP NMS:
ï‚¡ Specify SNMPv3.
ï‚¡ 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 MTU value of NULL0 interface 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.2.2.1.4.135471
Response binding:
1: Oid=ifMtu.135471 Syntax=INT Value=1500
Get finished
# Try to get the device name from the agent. The get attempt fails because the NMS has no
access right to the node.
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=noSuchObject Value=NULL
Get finished
# Execute the shutdown or undo shutdown command on an idle interface on the agent. You
can see the link state change traps on the NMS:
1.1.1.1/3374 V3 Trap = linkdown
SNMP Version = V3
Community = managev3user
Command = Trap
1.1.1.1/3374 V3 Trap = linkup
SNMP Version = V3
Community = managev3user