Configuring SNMPv3 Traps on a Device Running JUNOS Software

In SNMPv3, traps and informs are created by configuring the notify, target-address, and target-parameters parameters. Traps are unconfirmed notifications and informs are confirmed notifications. This section describes how to configure SNMP traps. For information about configuring SNMP informs, see Configuring SNMP Informs.

The target address defines a management application’s address and parameters to be used in sending notifications. Target parameters define the message processing and security parameters that are used in sending notifications to a particular management target. SNMPv3 also lets you define SNMPv1 and SNMPv2c traps.

Note: When you configure SNMP traps, make sure your configured access privileges allow the traps to be sent. Access privileges are configured at the [edit snmp v3 vacm access] and [edit snmp v3 vacm security-to-group] hierarchy levels.

To configure SNMP traps, include the following statements at the [edit snmp v3] hierarchy level:

[edit snmp v3]notify name {tag tag-name;type (trap | inform);}notify-filter name {oid object-identifier (include | exclude);}target-address target-address-name {address address;address-mask address-mask;port port-number;routing-instance instance;tag-list tag-list;target-parameters target-parameters-name;}target-parameters target-parameters-name {notify-filter profile-name;parameters {message-processing-model (v1 | v2c | v3);security-level (authentication | none | privacy);security-model (usm | v1 | v2c);security-name security-name;}}

Related Topics