Supported Platforms
Related Documentation
- QFabric System, QFX Series standalone switches
- Configuring SNMP
- Juniper Networks Enterprise-Specific MIBs
- QFX Series standalone switches
- Monitoring RMON MIB Tables
- RMON MIB Event, Alarm, Log, and History Control Tables
- Understanding RMON
Configuring RMON Alarms and Events
The Junos OS supports the Remote Network Monitoring (RMON) MIB (RFC 2819), which allows a management device to monitor the values of MIB objects, or variables, against configured thresholds. When the value of a variable crosses a threshold, an alarm and its corresponding event are generated. The event can be logged and can generate an SNMP trap.
To configure RMON alarms and events using the CLI, perform these tasks:
Configuring SNMP
To configure SNMP:
- Grant read-only access to all SNMP clients:
[edit snmp]
user@switch# set community community-name authorization authorizationFor example:
[edit snmp]
user@switch# set community public authorization read-only - Grant read-write access to the RMON and jnx-rmon MIBs:
For example:
OIDs 1.3.6.1.2.1.16 and 1.3.6.1.4.1.2636.13 correspond to the RMON and jnxRmon MIBs.
- Configure an SNMP trap group:
[edit snmp]
user@switch# set trap-group group-name categories category
user@switch# set trap-group group-name targets addressFor example:
[edit snmp]
user@switch# set trap-group rmon-trap-group categories rmon-alarm
user@switch# set trap-group rmon-trap-group targets 192.168.5.5The trap group rmon-trap-group is configured to send RMON traps to 192.168.5.5.
Configuring an Event
To configure an event:
- Configure an event index, community name, and type:
For example:
The event community corresponds to the SNMP trap group and is not the same as an SNMP community. This event generates an SNMP trap and adds an entry to the logTable in the RMON MIB.
- Configure a description for the event:
[edit snmp rmon]
user@switch# set event index description descriptionFor example:
[edit snmp rmon]
user@switch# set event 1 description “rmon event”
Configuring an Alarm
To configure an alarm:
- Configure an alarm index, the variable to monitor, the
rising and falling thresholds, and the corresponding rising and falling
events:
[edit snmp rmon]
user@switch# set alarm index variable oid-variable falling-threshold integer rising-threshold integer rising-event-index index falling-event-index indexFor example:
[edit snmp rmon]
user@switch# set alarm 5 variable .1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0 falling-threshold 75 rising-threshold 90 rising-event-index 1 falling-event-index 1The variable .1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0 corresponds to the jnxRmon MIB object jnxOperatingCPU, which represents the CPU utilization of the Routing Engine. The falling and rising threshold integers are 75 and 90. The rising and falling events both generate the same event (event index 1).
- Configure the sample interval and type and the alarm type:
[edit snmp rmon]
user@switch# set alarm index interval seconds sample-type (absolute-value | delta-value) startup-alarm (falling-alarm | rising-alarm | rising-or-falling-alarm)For example:
[edit snmp rmon]
user@switch# set alarm 5 interval 30 sample-type absolute-value startup-alarm rising-or-falling-alarmThe absolute value of the monitored variable is sampled every 30 seconds. The initial alarm can occur because of rising above the rising threshold or falling below the falling threshold.
Related Documentation
- QFabric System, QFX Series standalone switches
- Configuring SNMP
- Juniper Networks Enterprise-Specific MIBs
- QFX Series standalone switches
- Monitoring RMON MIB Tables
- RMON MIB Event, Alarm, Log, and History Control Tables
- Understanding RMON
Published: 2014-07-23
Supported Platforms
Related Documentation
- QFabric System, QFX Series standalone switches
- Configuring SNMP
- Juniper Networks Enterprise-Specific MIBs
- QFX Series standalone switches
- Monitoring RMON MIB Tables
- RMON MIB Event, Alarm, Log, and History Control Tables
- Understanding RMON