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 Interface Category of Statistics

    IDP OS Release 5.1 supports extensive system resource instrumentation so you can use SNMP to monitor device health. The system resource instrumentation is classified in five categories: sensor, resource, traffic, rule, and interface. The interface category includes detailed statistics about traffic received, transmitted, and dropped by the IDP Series device traffic interfaces. You use the interface category of statistics to understand load at receive and transmit queues. You can turn interface statistics on or off and configure thresholds that trigger SNMP traps.

    To configure the interface 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 interface list
      SRI interface :
       sc_enable_interface_stats                = 1      [ 0 - 1 ]
       sc_enable_interface_traps                = 1      [ 0 - 1 ]
       thrshld_rx_pkt_drop_rate_per_if          = 80     [ 0 - 100 ]
       thrshld_rx_pkt_drop_per_if               = 80     [ 0 - 100 ]
       thrshld_rx_pkt_drop_all_if               = 80     [ 0 - 100 ]
       thrshld_rx_pkt_drop_rate_all_if          = 80     [ 0 - 100 ]
       thrshld_rx_pkt_drop_ovflow               = 80     [ 0 - 100 ]
       thrshld_tx_pkt_drop_per_if               = 80     [ 0 - 100 ]
       thrshld_tx_pkt_drop_all_if               = 80     [ 0 - 100 ]
       thrshld_free_pkt_bufs                    = 5      [ 0 - 100 ]
      

      By default, statistic reporting and traps are enabled (value 1). The default threshold that triggers traps on drop statistics is 80%. The trap for free packet-buffer space is triggered when free space is less than 5%.

    3. (Optional) Use the set command to change the defaults. For example, the following commands show how to change the threshold for sending traps when the free packet-buffer space is less than 10%.

      [root@defaulthost ~]# scio sri interface set thrshld_rx_pkt_drop_rate_per_if 10
      Setting variable thrshld_idp_cpu successful

      [root@defaulthost ~]# scio sri interface list
      SRI interface :
       sc_enable_interface_stats                = 1      [ 0 - 1 ]
       sc_enable_interface_traps                = 1      [ 0 - 1 ]
       thrshld_rx_pkt_drop_rate_per_if          = 10     [ 0 - 100 ]
       thrshld_rx_pkt_drop_per_if               = 80     [ 0 - 100 ]
       thrshld_rx_pkt_drop_all_if               = 80     [ 0 - 100 ]
       thrshld_rx_pkt_drop_rate_all_if          = 80     [ 0 - 100 ]
       thrshld_rx_pkt_drop_ovflow               = 80     [ 0 - 100 ]
       thrshld_tx_pkt_drop_per_if               = 80     [ 0 - 100 ]
       thrshld_tx_pkt_drop_all_if               = 80     [ 0 - 100 ]
       thrshld_free_pkt_bufs                    = 10     [ 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 interface statistics are enabled.

    Note: Interface statistics use the same counters as ifconfig commands. Counters are reset when the IDP Series device is rebooted.

    Packets Received Per Interface (Count)

    Name

    jnxIdpSensorPktsRxdPerIntfcTable

    OID

    1.3.6.1.4.1.2636.3.9.1.49

    Description

    Packets received per interface (count).

    Example

    [host]# snmptable -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorPktsRxdPerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorPktsRxdPerIntfcTable
    
     jnxIdpSensorIFTable1Index jnxIdpSensorIntfcName jnxIdpSensorNoOfPkts
                             1                "eth1"                    0
                             2                "eth7"                    0
                             3                "eth6"                    0
                             4                "eth9"                    0
                             5                "eth8"                    0
                             6               "eth11"                    0
                             7               "eth10"                    0
                             8                "eth3"                27207
                             9                "eth2"                44484
                            10                "eth5"                    0
                            11                "eth4"                    0

    Packets Received Per Interface (Rate)

    Name

    jnxIdpSensorPktsRxRatePerIntfcTable

    OID

    1.3.6.1.4.1.2636.3.9.1.50

    Description

    Packets received per interface (rate).

    Example

    [host]# snmptable -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorPktsRxRatePerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorPktsRxRatePerIntfcTable
    
     jnxIdpSensorIFTable2Index jnxIdpSensorPktsRxRateIntfcName jnxIdpSensorPktsRxdPerSec
                             1                          "eth1"                         0
                             2                          "eth7"                         0
                             3                          "eth6"                         0
                             4                          "eth9"                         0
                             5                          "eth8"                         0
                             6                         "eth11"                         0
                             7                         "eth10"                         0
                             8                          "eth3"                         1
                             9                          "eth2"                         0
                            10                          "eth5"                         0
                            11                          "eth4"                         0

    Packets Dropped Per Receiving Interface (Count)

    Name

    jnxIdpSensorRxPktsDropPerIntfcTable

    OID

    1.3.6.1.4.1.2636.3.9.1.51

    Description

    Packets dropped at the interface (count).

    Example

    [host]# snmptable -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorRxPktsDropPerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorRxPktsDropPerIntfcTable
    
     jnxIdpSensorIFTable3Index jnxIdpSensorRxIntfcName jnxIdpSensorRxPktsDropCount
                             1                  "eth1"                           0
                             2                  "eth7"                           0
                             3                  "eth6"                           0
                             4                  "eth9"                           0
                             5                  "eth8"                           0
                             6                 "eth11"                           0
                             7                 "eth10"                           0
                             8                  "eth3"                           0
                             9                  "eth2"                           0
                            10                  "eth5"                           0
                            11                  "eth4"                           0

    Packets Dropped Per Receiving Interface (Rate)

    Name

    jnxIdpSensorRxPktsDropRatePerIntfcTable

    OID

    1.3.6.1.4.1.2636.3.9.1.52

    Description

    Packets dropped at the interface (rate).

    Example

    [host]# snmptable -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorRxPktsDropRatePerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorRxPktsDropRatePerIntfcTable
    
     jnxIdpSensorIFTable4Index jnxIdpSensorRxPktsDropRateIntfcName jnxIdpSensorRxPktsDropRate
                             1                              "eth1"                          0
                             2                              "eth7"                          0
                             3                              "eth6"                          0
                             4                              "eth9"                          0
                             5                              "eth8"                          0
                             6                             "eth11"                          0
                             7                             "eth10"                          0
                             8                              "eth3"                          0
                             9                              "eth2"                          0
                            10                              "eth5"                          0
                            11                              "eth4"                          0
    

    Total Packets Received (Count)

    Name

    jnxIdpSensorPktsRxdOnAllIntfc

    OID

    1.3.6.1.4.1.2636.3.9.1.53.0

    Description

    Sum of packets received on all interfaces (count).

    Example

    [host]# snmpget -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorPktsRxdOnAllIntfc.0
    JUNIPER-IDP-MIB::jnxIdpSensorPktsRxdOnAllIntfc.0 = INTEGER: 71753

    Total Packets Dropped (Count)

    Name

    jnxIdpSensorPktsDropOnAllIntfc

    OID

    1.3.6.1.4.1.2636.3.9.1.54.0

    Description

    Sum of packets dropped on all interfaces (count).

    Example

    [host]# snmpget -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorPktsDropOnAllIntfc.0
    JUNIPER-IDP-MIB::jnxIdpSensorPktsDropOnAllIntfc.0 = INTEGER: 0

    Total Packets Dropped (Rate)

    Name

    jnxIdpSensorPktsDropRateOnAllIntfc

    OID

    1.3.6.1.4.1.2636.3.9.1.55.0

    Description

    Rate of packets per second (pps) dropped.

    Example

    [host]# snmpget -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorPktsDropRateOnAllIntfc.0
    JUNIPER-IDP-MIB::jnxIdpSensorPktsDropRateOnAllIntfc.0 = INTEGER: 0

    Packets Dropped Due Overflow at Receiving Interface (Count)

    Name

    jnxIdpSensorPktsDropDueToRxOvflowTable

    OID

    1.3.6.1.4.1.2636.3.9.1.56

    Description

    Packets dropped because of overflow at the receiving interface (count).

    Example

    [host]# snmptable -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorPktsDropDueToRxOvflowTable
    JUNIPER-IDP-MIB::jnxIdpSensorPktsDropDueToRxOvflowTable: No entries

    Packets Transmitted Per Interface (Count)

    Name

    jnxIdpSensorPktsTxdPerIntfcTable

    OID

    1.3.6.1.4.1.2636.3.9.1.57

    Description

    Packets transmitted per interface (count).

    Example

    [host]# snmptable -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorPktsTxdPerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorPktsTxdPerIntfcTable
    
     jnxIdpSensorIFTable5Index jnxIdpSensorTxIntfcName jnxIdpSensorNoOfPktsTxd
                             1                  "eth1"                       0
                             2                  "eth7"                       0
                             3                  "eth6"                       0
                             4                  "eth9"                       0
                             5                  "eth8"                       0
                             6                 "eth11"                       0
                             7                 "eth10"                       0
                             8                  "eth3"                   44555
                             9                  "eth2"                   27236
                            10                  "eth5"                       0
                            11                  "eth4"                       0

    Packets Transmitted Per Interface (Rate)

    Name

    jnxIdpSensorPktsTxRatePerIntfcTable

    OID

    1.3.6.1.4.1.2636.3.9.1.58

    Description

    Packets transmitted per interface (rate).

    Example

    [host]# snmptable -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorPktsTxRatePerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorPktsTxRatePerIntfcTable
    
     jnxIdpSensorIFTable8Index jnxIdpSensorPktsTxRateIntfcName jnxIdpSensorPktsTxdPerSec
                             1                          "eth1"                         0
                             2                          "eth7"                         0
                             3                          "eth6"                         0
                             4                          "eth9"                         0
                             5                          "eth8"                         0
                             6                         "eth11"                         0
                             7                         "eth10"                         0
                             8                          "eth3"                         0
                             9                          "eth2"                         0
                            10                          "eth5"                         0
                            11                          "eth4"                         0

    Packets Dropped at Transmitting Interface (Count)

    Name

    jnxIdpSensorTxPktsDropPerIntfcTable

    OID

    1.3.6.1.4.1.2636.3.9.1.59

    Description

    Packets dropped at the transmitting interface (count).

    Example

    [host]# snmptable -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorTxPktsDropPerIntfcTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorTxPktsDropPerIntfcTable
    
     jnxIdpSensorIFTable6Index jnxIdpSensorTxdIntfcName jnxIdpSensorTxPktsDropped
                             1                   "eth1"                         0
                             2                   "eth7"                         0
                             3                   "eth6"                         0
                             4                   "eth9"                         0
                             5                   "eth8"                         0
                             6                   "eth3"                         0
                             7                   "eth2"                         0
                             8                   "eth5"                         0
                             9                   "eth4"                         0

    Total Packets Transmitted (Count)

    Name

    jnxIdpSensorTxPktsOnAllIntfc

    OID

    1.3.6.1.4.1.2636.3.9.1.60.0

    Description

    Sum of packets transmitted by all transit interfaces (count).

    Example

    [host]# snmpget -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorTxPktsOnAllIntfc.0
    JUNIPER-IDP-MIB::jnxIdpSensorTxPktsOnAllIntfc.0 = INTEGER: 72195

    Total Packets Dropped at the Transmitting Interface (Count)

    Name

    jnxIdpSensorTxPktsDropOnAllIntfc

    OID

    1.3.6.1.4.1.2636.3.9.1.61.0

    Description

    Sum of packets transmitted by all transit interfaces (count).

    Example

    [host]# snmpget -v2c -c public localhost JUNIPER-IDP-MIB::jnxIdpSensorTxPktsDropOnAllIntfc.0
    JUNIPER-IDP-MIB::jnxIdpSensorTxPktsDropOnAllIntfc.0 = INTEGER: 0

    Network Interface Status (Up or Down)

    Name

    jnxIdpSensorNICStatusTable

    OID

    1.3.6.1.4.1.2636.3.9.1.62

    Description

    Network interface status (up or down).

    Example

    [host]# snmptable -v2c -c public 10.209.96.78 JUNIPER-IDP-MIB::jnxIdpSensorNICStatusTable
    SNMP table: JUNIPER-IDP-MIB::jnxIdpSensorNICStatusTable
    
     jnxIdpSensorIFTable7Index jnxIdpSensorNICIntfcName jnxIdpSensorNICStatus
                             1                   "eth1"                "Down"
                             2                   "eth7"                "Down"
                             3                   "eth6"                "Down"
                             4                   "eth9"                "Down"
                             5                   "eth8"                "Down"
                             6                   "eth3"                  "Up"
                             7                   "eth2"                  "Up"
                             8                   "eth5"                "Down"
                             9                   "eth4"                "Down"

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

    Table 1: System Resource Instrumentation: Network Interface Traps

    Object Name

    Object ID

    Description

    jnxIdpFreePktLastFiveSecNotify

    jnxIdpTrapsPrefix 17

    Alarm is triggered when the count falls below the configured threshold.

    Objects referenced: jnxIdpSensorFreePktBuffersFiveSec, jnxIdpSensorFreePktThreshold

    jnxIdpFreePktLastFiveSecRestored

    jnxIdpTrapsPrefix 18

    Notification is triggered when the count is restored to above the alarm threshold.

    Objects referenced: jnxIdpSensorFreePktBuffersFiveSec

    jnxIdpFreePktLastOneMinNotify

    jnxIdpTrapsPrefix 19

    Alarm is triggered when the count falls below the configured threshold.

    Objects referenced: jnxIdpSensorFreePktBuffersOneMin, jnxIdpSensorFreePktThreshold

    jnxIdpFreePktLastOneMinRestored

    jnxIdpTrapsPrefix 20

    Notification is triggered when the count is restored to above the alarm threshold.

    Objects referenced: jnxIdpSensorFreePktBuffersOneMin

    jnxIdpTotalRxPktsDropNotify

    jnxIdpTrapsPrefix 21

    Alarm is triggered when the count exceeds the configured threshold.

    Objects referenced: jnxIdpSensorPktsDropOnAllIntfc, jnxIdpSensorPktsDropOnAllIntfcThreshold

    jnxIdpTotalRxPktsDropRestored

    jnxIdpTrapsPrefix 22

    Notification is triggered when the count falls below the alarm threshold.

    Objects referenced: jnxIdpSensorPktsDropOnAllIntfc

    jnxIdpTotalRxPktsDropRateNotify

    jnxIdpTrapsPrefix 23

    Alarm is triggered when the count exceeds the configured threshold.

    Objects referenced: jnxIdpSensorPktsDropRateOnAllIntfc, jnxIdpSensorPktsDropRateOnAllIntfcThreshold

    jnxIdpTotalRxPktsDropRateRestored

    jnxIdpTrapsPrefix 24

    Notification is triggered when the count falls below the alarm threshold.

    Objects referenced: jnxIdpSensorPktsDropRateOnAllIntfce

    jnxIdpPerIfRxOvrflowNotify

    jnxIdpTrapsPrefix 25

    Alarm is triggered when the count exceeds the configured threshold.

    Objects referenced: jnxIdpSensorPktDropCount, jnxIdpSensorIfName, jnxIdpSensorPktsDropRateOnAllIntfcThreshold

    jnxIdpPerIfRxOvrflowRestored

    jnxIdpTrapsPrefix 26

    Notification is triggered when the count falls below the alarm threshold.

    Objects referenced: jnxIdpSensorPktDropCount

    jnxIdpPerIfRxDropNotify

    jnxIdpTrapsPrefix 27

    Alarm is triggered when the count exceeds the configured threshold.

    Objects referenced: jnxIdpSensorPktDropCount, jnxIdpSensorIfName, jnxIdpSensorPktsDropRateOnAllIntfcThreshold

    jnxIdpPerIfRxDropRestored

    jnxIdpTrapsPrefix 28

    Notification is triggered when the count falls below the alarm threshold.

    Objects referenced: jnxIdpSensorPktDropCount

    jnxIdpPerIfRxDropRateNotify

    jnxIdpTrapsPrefix 29

    Alarm is triggered when the rate exceeds the configured threshold.

    Objects referenced: jnxIdpSensorPktDropCount, jnxIdpSensorIfName, jnxIdpSensorPktsDropRateOnAllIntfcThreshold

    jnxIdpPerIfRxDropRateRestored

    jnxIdpTrapsPrefix 30

    Notification is triggered when the rate falls below the alarm threshold.

    Objects referenced: jnxIdpSensorPktDropCount

    jnxIdpPerIfTxDropNotify

    jnxIdpTrapsPrefix 31

    Alarm is triggered when the count exceeds the configured threshold.

    Objects referenced: jnxIdpSensorPktDropCount, jnxIdpSensorIfName, jnxIdpSensorPktsDropRateOnAllIntfcThreshold

    jnxIdpPerIfTxDropRestored

    jnxIdpTrapsPrefix 32

    Notification is triggered when the count falls below the alarm threshold.

    Objects referenced: jnxIdpSensorPktDropCount

    jnxIdpTotalTxDropNotify

    jnxIdpTrapsPrefix 33

    Alarm is triggered when the count exceeds the configured threshold.

    Objects referenced: jnxIdpSensorPktDropCount, jnxIdpSensorIfName, jnxIdpSensorPktsDropRateOnAllIntfcThreshold

    jnxIdpTotalTxDropRestored

    jnxIdpTrapsPrefix 34

    Notification is triggered when the count falls below the alarm threshold.

    Objects referenced: jnxIdpSensorPktDropCount

    jnxIdpIntfcDownNotify

    jnxIdpTrapsPrefix 35

    Alarm is triggered when status is down.

    Objects referenced: jnxIdpSensorIfStatus, jnxIdpSensorIfName

    jnxIdpIntfcStatusRestored

    jnxIdpTrapsPrefix 36

    Notification is triggered when status of a down interface is restored (up).

    Objects referenced: jnxIdpSensorIfStatus, jnxIdpSensorIfName

    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