This article provides an example for configuring an EX device to send SNMPv3 traps to SNMP Server.
Configure a user name.
Set the security level and the authentication Keys for this user.
Security level (Choose according to the switch configuration):
Choose the type of SecurityPossible completions:
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>
Set Security Model for the Security model context for group assignment.
Set the privacy level:
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
Set the Target IP Address. It is the IP address of SNMP Server.
Configure the target parameters.
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
Configure Notify type (Trap/Tag)
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 the Source Address as the device IP
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