Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring SNMP Reporting for the Sensor Category of Statistics

    IDP OS Release 5.1 supports extensive system resource instrumentation, so you can use SNMP to monitor device health and load. The system resource instrumentation is classified in five categories: sensor, resource, traffic, rule, and interface. In previous releases, the IDP Series device automatically sent alarm logs and SNMP traps when device CPU, memory, or disk space utilization exceeded the default threshold (80%). Beginning with IDP OS Release 5.1, these statistics are grouped in category called “sensor,” and reporting and trap behavior is configurable.

    To configure the sensor category of statistics reporting and traps:

    1. Log in to the CLI as admin and enter su - to switch to root.
    2. Use the list command to display the current settings:

      [root@defaulthost ~]# scio sri sensor list
      SRI sensor :
       sc_enable_sensor_stats         = 1      [ 0 - 1 ]
       sc_enable_sensor_traps         = 1      [ 0 - 1 ]
       thrshld_memory                 = 80     [ 0 - 100 ]
       thrshld_hard_disk              = 80     [ 0 - 100 ]
       thrshld_control_cpu            = 80     [ 0 - 100 ]

      By default, statistic reporting and traps are enabled (value 1) and the threshold to trigger traps for memory, hard disk, and control plane CPU utilization is 80% (value 80).

    3. (Optional) Use the set command to change the defaults. For example, the following commands show how to change the threshold for sending control plane CPU traps to 85% and verify your change:

      [root@defaulthost ~]# scio sri sensor set thrshld_control_cpu 85
      Setting variable thrshld_control_cpu successful

      [root@defaulthost ~]# scio sri sensor list
      SRI sensor :
       sc_enable_sensor_stats                   = 1      [ 0 - 1 ]
       sc_enable_sensor_traps                   = 1      [ 0 - 1 ]
       thrshld_memory                           = 80     [ 0 - 100 ]
       thrshld_hard_disk                        = 80     [ 0 - 100 ]
       thrshld_control_cpu                      = 85     [ 0 - 100 ]
      

    Tip: If you know you want to enable statistics for all system resource instrumentation categories, use the following command: scio sri all set sc_enable_all_stats 1. If you know you want to enable traps for all categories, use the following command: scio sri all set _sc_enable_all_traps 1.

    The following tables describe the device statistics reported to the IDP Series device MIB when sensor statistics are enabled.

    Control Plane CPU - Instant

    Name

    jnxIdpSensorCpuUsage

    OID

    1.3.6.1.4.1.2636.3.9.1.1.0

    Description

    Control plane CPU utilization (percent).

    Example

    [host]# snmpget -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorCpuUsage.0
    JUNIPER-IDP-MIB::jnxIdpSensorCpuUsage.0 = Gauge32: 19

    Control Plane CPU - Last 1 Minute

    Name

    jnxIdpSensorCpuUsageOneMin

    OID

    1.3.6.1.4.1.2636.3.9.1.10.0

    Description

    Average control plane CPU utilization in the last 1 minute (percent).

    Example

    [host]# snmpget -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorCpuUsageOneMin.0
    JUNIPER-IDP-MIB::jnxIdpSensorCpuUsageOneMin.0 = Gauge32: 25

    Control Plane CPU - Last 5 Minutes

    Name

    jnxIdpSensorCpuUsageFiveMin

    OID

    1.3.6.1.4.1.2636.3.9.1.11.0

    Description

    Average control plane CPU utilization in the last 5 minutes (percent).

    Example

    [host]# snmpget -v2c -c public 10.209.96.78 snmpget -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorCpuUsageFiveMin.0
    JUNIPER-IDP-MIB::jnxIdpSensorCpuUsageFiveMin.0 = Gauge32: 20

    Device Memory

    Name

    jnxIdpSensorMemUsage

    OID

    1.3.6.1.4.1.2636.3.9.1.2.0

    Description

    Memory utilization (percent).

    Example

    [host]# snmpget -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorMemUsage.0
    JUNIPER-IDP-MIB::jnxIdpSensorMemUsage.0 = Gauge32: 44

    Device Disk Utilization

    Name

    jnxIdpSensorFreeDiskSpace

    OID

    1.3.6.1.4.1.2636.3.9.1.5.0

    Description

    Available disk space (megabytes).

    Example

    [host]# snmpget -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorFreeDiskSpace.0
    JUNIPER-IDP-MIB::jnxIdpSensorFreeDiskSpace.0 = Gauge32: 55865 Megabytes

    Table 1 describes the device statistics reported to SNMP traps when sensor traps are enabled.

    Table 1: System Resource Instrumentation: Sensor SNMP Traps

    Object Name

    OID

    Description

    jnxIdpCPUUtilizationNotify

    jnxIdpTrapsPrefix 3

    Alarm is triggered when control plane CPU utilization exceeds the configured threshold.

    Objects referenced: jnxIdpSensorCpuUsage, jnxIdpSensorCpuId, jnxIdpSensorCpuThreshold

    jnxIdpCPUUtilizationLimitRestored

    jnxIdpTrapsPrefix 4

    Notification is triggered when utilization falls below the alarm threshold.

    Objects referenced: jnxIdpSensorCpuUsage, jnxIdpSensorCpuId

    jnxIdpMemoryNotify

    jnxIdpTrapsPrefix 5

    Alarm is triggered when utilization exceeds the configured threshold.

    Objects referenced: jnxIdpSensorMemUsage, jnxIdpSensorMemThreshold

    jnxIdpMemoryLimitRestored

    jnxIdpTrapsPrefix 6

    Notification is triggered when utilization falls below the alarm threshold.

    Objects referenced: jnxIdpSensorMemUsage

    jnxIdpDiskUtilizationNotify

    jnxIdpTrapsPrefix 7

    Alarm is triggered when utilization exceeds the configured threshold.

    Objects referenced: jnxIdpSensorFreeDiskSpace, jnxIdpSensorDiskSpaceThreshold

    jnxIdpDiskUtilizationLimitRestored

    jnxIdpTrapsPrefix 8

    Notification is triggered when utilization falls below the alarm threshold.

    Objects referenced: jnxIdpSensorFreeDiskSpace

    jnxIdpControlCpuUsgFiveMinNotify

    jnxIdpTrapsPrefix 9

    Alarm is triggered when control plane CPU utilization exceeds the configured threshold.

    Objects referenced: jnxIdpSensorCpuUsage, jnxIdpSensorCpuId, jnxIdpSensorCpuThreshold

    jnxIdpControlCpuUsgFiveMinRestored

    jnxIdpTrapsPrefix 10

    Notification is triggered when utilization falls below the alarm threshold.

    Objects referenced: jnxIdpSensorCpuUsage, jnxIdpSensorCpuId

    Note: After a down trap is sent, the alarm is suspended for 1 minute. After this period, alarms can again be triggered.


    Published: 2011-02-08