Use display cpu-usage to display CPU usage statistics.
Syntax
display cpu-usage [ slot slot-number [ cpucpu-number ] ]
Views
Any view
Predefined user roles
network-admin network-operator
Parameters
slotslot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command displays the CPU usage statistics for all IRF member devices.
cpucpu-number: Displays the CPU usage statistics. The cpu-number argument must be 0.
Usage guidelines
After startup, the device tracks the average CPU usage at the following intervals:
• 5 seconds.
• 1 minute.
• 5 minutes.
This command displays the average CPU usage values during the last 5-second, 1-minute, and 5-minute intervals.
Examples
# Display the current CPU usage statistics for all member devices.
<Sysname> display cpu-usage Slot 1 CPU 0 CPU usage: 6% in last 5 seconds 10% in last 1 minute 5% in last 5 minutes
Table 25 Command output
Field Description
6% in last 5 seconds Average CPU usage during the last 5-second interval. 10% in last 1 minute Average CPU usage during the last 1-minute interval. 5% in last 5 minutes Average CPU usage during the last 5-minute interval. Slot x CPU y CPU usage Usage statistics for CPU y of member device x.
display cpu-usage configuration
Syntax
display cpu-usage configuration [ slot slot-number [ cpucpu-number ] ]
Views
Any view
Predefined user roles
network-admin
Parameters
slotslot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command displays the CPU usage monitoring settings for the master device in the IRF fabric.
cpucpu-number: Displays the CPU usage monitoring settings. The cpu-number argument must be 0.
Examples
# Display the CPU usage monitoring settings.
<Sysname> display cpu-usage configuration CPU usage monitor is enabled.
Current monitor interval is 60 seconds. Current monitor threshold is 99%.
Related commands
• monitor cpu-usage enable
• monitor cpu-usage interval
• monitor cpu-usage threshold
display cpu-usage history
Use display cpu-usage history to display the historical CPU usage statistics in charts.
Syntax
display cpu-usage history [ job job-id ][ slot slot-number [ cpucpu-number ] ]
Views
Any view
Predefined user roles
network-admin network-operator
Parameters
jobjob-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. 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.
slotslot-number: Specifies an IRF member device by its member ID. If you do not specify this option, the command displays the historical CPU usage statistics for the master device in the IRF fabric.
Usage guidelines
After CPU usage monitoring is enabled, the system regularly samples CPU usage and saves the samples to the history record buffer. This command displays the most recent 60 samples in a coordinate system as follows:
• The vertical axis represents the CPU usage. If a statistic is not a multiple of the usage step, it is rounded up or down to the closest multiple of the usage step. For example, if the CPU usage step is 5%, the statistic 53% is rounded up to 55%, and the statistic 52% is rounded down to 50%.
• The horizontal axis represents the time.
• Consecutive pound signs (#) indicate the CPU usage at a specific time. The value on the vertical axis for the topmost pound sign at a specific time represents the CPU usage at that time.
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)
The output shows the historical CPU usage statistics for the entire system (with the name SYSTEM) in the last 60 minutes.
• 12 minutes ago: Approximately 5%.
• 13 minutes ago: Approximately 10%.
• 14 minutes ago: Approximately 15%.
• 15 minutes ago: Approximately 10%.
• 16 and 17 minutes ago: Approximately 5%.
• 18 minutes ago: Approximately 10%.
• Other time: 2% or lower than 2%.
# 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)
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.
• 20 minutes ago: Approximately 5%.
• Other time: 2% or lower than 2%.
Related commands
• monitor cpu-usage enable
• monitor cpu-usage interval
display device
Use display device to display device information.
Syntax
display device [ flash | usb ] [ slotslot-number [ subslotsubslot-number ] | verbose ]
Views
Any view
Predefined user roles
network-admin network-operator
Parameters
flash: Specifies the flash memory.
usb: Specifies the device connected to the USB interface.
slot slot-number: Specifies an IRF member device by its member ID.
subslot subslot-number: Specifies a subcard by its subslot number.
verbose: Displays detailed hardware information. Without this keyword, the command displays brief information.
Examples
# Display device information for all IRF member devices in the IRF fabric.
<Sysname> display device
Slot Type State Subslot Soft Ver Patch Ver 1 5130 48G PoE+ 4S Master 0 5130-1111 None FP+ HI 1-slot Sw itch
Table 26 Command output
Field Description Slot x ID of the IRF member device. Type Type of the switch.
State Status of the switch.
Subslot Subslot number of the subcard. Soft Ver Software version.
Patch Ver Patch version.