display cpu-usage history

Use display cpu-usage history to display the historical CPU usage statistics in charts.

Syntax

In standalone mode:

display cpu-usage history [ job job-id ] [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display cpu-usage history [ job job-id ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

job job-id: Specifies a process by its ID. If you do not specify this option, the command displays the historical CPU usage statistics for the entire system, which is the sum of the historical CPU usage statistics for all processes in the system. To view the IDs and names of the running processes, use the display process command. For more information, see Network Management and Monitoring Configuration Guide.

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays the historical CPU usage statistics for the active MPU or switching fabric module. (In standalone mode.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device by its slot number and the member ID. If you do not specify this option, this command displays the historical CPU usage statistics for all cards in the IRF fabric. (In IRF mode.)

cpu cpu-number: Displays the historical CPU usage statistics. The cpu-number argument can only be 0.

Usage guidelines

The system regularly collects CPU usage statistics and saves the statistics in the history record area. This command displays the CPU usage statistics for the last 60 minutes in axes as follows:

Examples

# Display the historical CPU usage statistics for the entire system.

<Sysname> display cpu-usage history
100%|
 95%|
 90%|
 85%|
 80%|
 75%|
 70%|
 65%|
 60%|
 55%|
 50%|
 45%|
 40%|
 35%|
 30%|
 25%|
 20%|
 15%|             #
 10%|            ###  #
  5%|           ########
     ------------------------------------------------------------
              10        20        30        40        50        60  (minutes)
                      cpu-usage (Slot 1 CPU 0) last 60 minutes (SYSTEM)
---- More ----

The output shows the historical CPU usage statistics for the entire system (with the name SYSTEM) in the last 60 minutes:

# Display the historical CPU usage statistics for process 1.

<Sysname> display cpu-usage history job 1
100%|
 95%|
 90%|
 85%|
 80%|
 75%|
 70%|
 65%|
 60%|
 55%|
 50%|
 45%|
 40%|
 35%|
 30%|
 25%|
 20%|
 15%|
 10%|
  5%|                   #
     ------------------------------------------------------------
              10        20        30        40        50        60  (minutes)
                      cpu-usage (Slot 1 CPU 0) last 60 minutes (scmd)
---- More ----

The output shows the historical CPU usage statistics of process 1 (with the process name scmd) in the last 60 minutes. A process name with square brackets ([ ]) means that the process is a kernel process.