display cpu-usage

Use display cpu-usage to display CPU usage statistics.

Syntax

In standalone mode:

display cpu-usage [ slot slot-number [ cpu cpu-number ] ]

In IRF mode:

display cpu-usage [ chassis chassis-number slot slot-number [ cpu cpu-number ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command displays the CPU usage statistics for all cards. (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, the command displays the CPU usage statistics for all cards in the IRF fabric. (In IRF mode.)

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

Usage guidelines

The system regularly (typically at 60-second intervals) collects CPU usage statistics and saves the statistical results in the history record area.

Examples

# In standalone mode, display the current CPU usage.

<Sysname> display cpu-usage
Slot 0 CPU 0 CPU usage:                                               
       3% in last 5 seconds                                                     
       3% in last 1 minute                                                      
       3% in last 5 minutes                                                     
                                                                                
Slot 1 CPU 0 CPU usage:                                               
      14% in last 5 seconds                                                     
      14% in last 1 minute                                                      
      14% in last 5 minutes  

# In IRF mode, display the current CPU usage statistics for all cards.

<Sysname> display cpu-usage
Chassis 1 Slot 0 CPU 0 CPU usage:                                               
       3% in last 5 seconds                                                     
       3% in last 1 minute                                                      
       3% in last 5 minutes                                                     
                                                                                
Chassis 1 Slot 1 CPU 0 CPU usage:                                               
      14% in last 5 seconds                                                     
      14% in last 1 minute                                                      
      14% in last 5 minutes  

Chassis 2 Slot 0 CPU 0 CPU usage:                                               
       3% in last 5 seconds                                                     
       3% in last 1 minute                                                      
       3% in last 5 minutes                                                     
                                                                                
Chassis 2 Slot 1 CPU 0 CPU usage:                                               
      14% in last 5 seconds                                                     
      14% in last 1 minute                                                      
      14% in last 5 minutes

Table 29: Command output

Field

Description

3% in last 5 seconds

Average CPU usage during the last 5 seconds.

3% in last 1 minute

Average CPU usage during the last minute.

3% in last 5 minutes

Average CPU usage during the last 5 minutes.

Slot x CPU y CPU usage

Usage statistics for CPU y of the card in slot x. (In standalone mode.)

Chassis x Slot y CPU z CPU usage

Usage statistics for CPU z of the card in slot y on member device x. (In IRF mode.)