snmp-options
Syntax
snmp-options {
backward-traps-only-from-established;
emit-inet-address-length-in-oid;
}
Hierarchy Level
[edit protocols bgp]
Description
Configure the SNMP options and customize the behavior
of BGP-related MIBs. By default, SNMP generates traps when a session
moves from a higher state to a lower state. For example, from Active to Idle or from Established to Idle. This can result in many uninteresting traps, especially
when there are a large number of unconfigured BGP sessions that toggle
continuously betweenActive and Idle state. Set
the backward-traps-only-from-established option to eliminate
the uninteresting traps, and receive backward trap notifications only
when transitioning away from the Established state. This
can substantially reduce the number of traps sent.
Options
| backward-traps-only-from-established |
Limit the generation of traps for backward transitions to session states
that are moving from |
| emit-inet-address-length-in-oid |
Emit Length in OID for InetAddress MIB type. This option ensures that SNMP objects related to BGP include the length of internet addresses in their Object Identifier (OID), helping network monitoring tools interpret data correctly and comply with standards for accurate reporting. |
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 16.1.