Configuring SNMP Trap Groups
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 trap group must be configured for SNMP traps to be sent. To create an SNMP trap group, include the
trap-groupstatement at the[edit snmp]hierarchy level:[edit snmp]trap-groupgroup-name{categories [categories];destination-port <port-number>;targets {address;}version (all | v1 | v2);}The trap group name can be any string and is embedded in the community name field of the trap. To configure your own trap group port, include the
destination-portstatement. The default destination port is port 162.Each trap group you define must have a name and one or more targets, which are the systems that receive the SNMP traps. Specify the targets by IPv4 or IPv6 address, not by hostname.
Specify the types of traps the trap group can receive in the
categoriesstatement. For information about which category traps belong to, see Standard SNMP Traps and Juniper Networks Enterprise-Specific SNMP Traps.A trap group can receive the following categories:
authentication—Authentication failureschassis—Chassis/environment notificationsconfiguration—Configuration notificationslink—Link-related notifications (up-down transitions, DS-3 and DS-1 line status change, IPv6 interface state change, and Passive Monitoring PIC overload)
NOTE: To send Passive Monitoring PIC overload interface traps, select the
linktrap category.
remote-operations—Remote operation notificationsrmon-alarm—Alarm for RMON eventsrouting—Routing protocol notificationssonet-alarms—SONET/SDH alarms
loss-of-light—Loss of light alarm notificationpll-lock—PLL lock alarm notificationloss-of-frame—Loss of frame alarm notificationloss-of-signal—Loss of signal alarm notificationseverely-errored-frame—Severely errored frame alarm notificationline-ais—Line AIS alarm notificationpath-ais—Path AIS alarm notificationloss-of-pointer—Loss of pointer alarm notificationber-defect—SONET/SDH bit error rate alarm defect notificationber-fault—SONET/SDH error rate alarm fault notificationline-remote-defect-indication—Line remote defect indication alarm notificationpath-remote-defect-indication—Path remote defect indication alarm notificationremote-error-indication—Remote error indication alarm notificationunequipped—Unequipped alarm notificationpath-mismatch—Path mismatch alarm notificationloss-of-cell—Loss of cell delineation alarm notificationvt-ais—VT AIS alarm notificationvt-loss-of-pointer—VT loss of pointer alarm notificationvt-remote-defect-indication—VT remote defect indication alarm notificationvt-unequipped—VT unequipped alarm notificationvt-label-mismatch—VT label mismatch error notificationvt-loss-of-cell—VT loss of cell delineation notification
startup—System warm and cold startsvrrp-events—VRRP events such as new-master or authentication failuresThe
versionstatement allows you to specify the SNMP version of the traps sent to targets of the trap group. If you specifyv1only, SNMPv1 traps are sent. If you specifyv2only, SNMPv2 traps are sent. If you specifyall, both an SNMPv1 and an SNMPv2 trap are sent for every trap condition. For more information on theversionstatement, seeversion.Example: Configuring SNMP Trap Groups
Set up a trap notification list named
urgent-dispatcherfor link and startup traps. This list is used to identify the network management hosts (1.2.3.4andfe80::1:2:3:4) to which traps generated by the local router should be sent. The name specified for a trap group is used as the SNMP community string when the agent sends traps to the listed targets.[edit]snmp {trap-group "urgent-dispatcher" {version v2;categories link startup;targets {1.2.3.4;fe80::1:2:3:4;}}}