Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

trap

date_range 18-Dec-24

Syntax

content_copy zoom_out_map
trap {
    interval trap interval;
}

Hierarchy Level

content_copy zoom_out_map
[edit security screen trap],
[edit tenants tenant-name security screen]

Description

Traps are unsolicited messages sent from an SNMP agent to remote network management systems or trap receivers. Many enterprises use SNMP traps as part of a fault-monitoring solution, in addition to system logging. In Junos OS, SNMP traps are not forwarded by default. You can use the SNMP traps by configuring a trap-group.

You can create and name a group of one or more types of SNMP traps and then define which systems receive the group of SNMP traps. The name of the trap group is embedded in SNMP trap notification packets as one variable binding (varbind) known as the community name.

Options

interval

Configure the trap interval.

  • Range: 1 through 3600 seconds

  • Default: 2 seconds

Required Privilege Level

security—To view this statement in the configuration.

security-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 12.3X48-D20.

The tenant option is introduced in Junos OS Release 18.3R1.

footer-navigation