Knowledge Center Search


 

How to view the CPU utilization on J-series routers

  [KB11437] Show KB Properties

  [KB11437] Hide KB Properties

Categories:
Knowledge Base ID: KB11437
Last Updated: 21 Feb 2014
Version: 7.0

Summary:
This article provides information on how to view the CPU utilization on J-series routers via CLI and SNMP.

Problem or Goal:
  • Juniper M and T-series routers utilize individual hardware components to cleanly separate operating system components, which include the routing-engine, forwarding-engine, and services-engine.

  • However, the J-series platform utilizes a single CPU to handle all three components in the system.

  • It also provides for clean separation of the three components. Each engine has its own protected processing and memory resources, so that processing conflicts are never an issue.

  • Due to this clean separation, beginning with Junos 8.0, some new commands and SNMP objects were included; specifically for the monitoring of CPU utilization on the J-series platforms.

Cause:

Solution:
For J-series, a single object or command that will show the total CPU usage for both the routing-engine and forwarding-engine combined, is not available. The two components have their own objects to monitor. For the routing-engine use the show chassis routing-engine command. This command is equivalent to the jnxOperatingCPU SNMP MIB object.

For example:
user@host> show chassis routing-engine   
Routing Engine status:
    Temperature                 26 degrees C / 78 degrees F
    CPU temperature             51 degrees C / 123 degrees F
    DRAM                      2048 MB
    Memory utilization          30 percent
    CPU utilization:
      User                       0 percent
      Real-time threads          7 percent
      Kernel                     4 percent
      Idle                      89 percent
    Model                          RE-J6350-3400
    Serial ID                      NM1742
    Start time                     2008-04-29 16:56:46 UTC
    Uptime                         2 minutes, 20 seconds
    Load averages:                 1 minute   5 minute  15 minute
                                       0.08       0.07       0.03

user@host> show snmp mib walk jnxOperatingCPU   
jnxOperatingCPU.1.1.0.0 = 0
jnxOperatingCPU.2.1.0.0 = 0
jnxOperatingCPU.4.1.0.0 = 0
jnxOperatingCPU.4.2.0.0 = 0
jnxOperatingCPU.4.3.0.0 = 0
jnxOperatingCPU.7.1.0.0 = 0
jnxOperatingCPU.8.1.1.0 = 0
jnxOperatingCPU.9.1.0.0 = 4  < 9.1.0.0 represents the routing-engine if stand alone or node0 if in cluster mode
jnxOperatingCPU.9.1.1.0 = 0  < 9.1.0.0 represents the routing-engine of node1, if in cluster mode

user@host> show snmp mib get .1.3.6.1.4.1.2636.3.1.13.1.8.9.1.0.0
jnxOperatingCPU.9.1.0.0 = 4

In addition to the routing-engine utilization, there is also the forwarding-engine utilization. This value is more important, in terms of actual traffic-affecting CPU utilization. For forwarding, use the show chassis forwarding command. This command is equivalent to the jnxFwddProcess SNMP MIB object. The most important of these within the jnxFwddProcess hierarchy are the real-time threads (OID .1.3.6.1.4.1.2636.3.34.1.2.0).

For example:
user@host> show chassis forwarding             
FWDD status:
  State                                 Online   
  Microkernel CPU utilization         0 percent 
  Real-time threads CPU utilization  12 percent 
  Heap utilization                   23 percent
  Buffer utilization                  5 percent
  Uptime:                             3 minutes, 5 seconds

user@host> show snmp mib walk jnxFwddProcess   
jnxFwddMicroKernelCPUUsage.0 = 0
jnxFwddRtThreadsCPUUsage.0 = 12
jnxFwddHeapUsage.0 = 23
jnxFwddDmaMemUsage.0 = 5
jnxFwddUpTime.0 = 185

user@host> show snmp mib get .1.3.6.1.4.1.2636.3.34.1.2.0
jnxFwddRtThreadsCPUUsage.0 = 12
For more information, refer to the Junos® OS Network Management Configuration Guide - Release 12.1.

Purpose:
Installation
Troubleshooting

Related Links:

 

 

ASK THE KB

Question or KB ID:


 


 

 
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.