This article provides an example for configuring an EX device to send SNMPv3 traps to SNMP Server.
Step 1 - Switch Configuration
Auth, Priv
No Auth, No Priv
Auth, No Priv
set snmp v3 usm local-engine user AuthPrivSHAUser authentication-sha authentication-key <plain text password>
set snmp v3 usm local-engine user AuthPrivSHAUser privacy-aes128 privacy-key <plain text password>
security-to-group Assigns security names to group
usm User-based security model
v1 SNMPv1 model
v2c SNMPv2c model
notify-view View used to notifications
read-view View used for read access
write-view View used for write access
set snmp v3 vacm security-to-group security-model usm security-name AuthPrivSHAUser group test
set snmp v3 vacm access group test default-context-prefix security-model usm security-level privacy read-view view-all
set snmp v3 vacm access group test default-context-prefix security-model usm security-level privacy notify-view view-all
security-level Security-level used when generating SNMP notifications
security-model Security-model used when generating SNMP notifications
security-name Security name used when generating SNMP notifications
set snmp v3 target-address TARGET address 10.9.221.199 <-- SNMP Server Address
set snmp v3 target-address TARGET port 162
set snmp v3 target-address TARGET target-parameters target1
set snmp v3 target-parameters target1 parameters message-processing-model v3
set snmp v3 target-parameters target1 parameters security-model usm
set snmp v3 target-parameters target1 parameters security-level privacy
set snmp v3 target-parameters target1 parameters security-name AuthPrivSHAUser
set snmp v3 notify NOTIFY type trap
set snmp v3 notify NOTIFY tag trapreceiver
set snmp v3 notify-filter filter oid .1 include
set snmp view view-all oid .1 include
set snmp trap-options source-address <Ip Address>
<oid-name> OID to include/exclude from notify filter
.1 OID to include/exclude from notify filter
Step 2 - Configure the server for receiving traps
(example of Manage Engine)
If an Interface is flapped on the switch, the traps will look similar to the ones in the following image:
The details of the messages can be seen by clicking on the “
Show Details” button. The details will appear similar to the following image:
2020-04-18: Article reviewed for accuracy; no changes required.