exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display cpu-usage to display CPU usage statistics.
The system regularly (typically at 60-second intervals) collects CPU usage statistics and saves the
statistical results in the history record area.
The display cpu-usage entry-number command displays entry-number latest records, starting from the
latest record. The display cpu-usage entry-number offset command displays entry-number latest records,
starting from the last (offset+1)th record.
Examples
# Display the current CPU usage statistics.
<Sysname> display cpu-usage
Slot 2 CPU usage:
3% in last 5 seconds
2% in last 1 minute
2% in last 5 minutes
# Display the last fifth and sixth CPU usage statistics records.
<Sysname> display cpu-usage 2 4
===== CPU usage info (no:
CPU Usage Stat. Cycle: 60 (Second)
CPU Usage
CPU Usage Stat. Time : 2010-07-10
CPU Usage Stat. Tick : 0x1d9d(CPU Tick High) 0x3a659a70(CPU Tick Low)
Actual Stat. Cycle
===== CPU usage info (no:
CPU Usage Stat. Cycle: 60 (Second)
CPU Usage
CPU Usage Stat. Time : 2010-07-10
CPU Usage Stat. Tick : 0x1d9c(CPU Tick High) 0xa50e5351(CPU Tick Low)
Actual Stat. Cycle
Table 20 Command output
Field
Slot 1
1% in last 5 seconds
1% in last 1 minute
0
idx: 58) =====
: 3%
10:56:55
: 0x0(CPU Tick High) 0x95030517(CPU Tick Low)
1
idx: 57) =====
: 3%
10:55:55
: 0x0(CPU Tick High) 0x950906af(CPU Tick Low)
Description
CPU usage statistics for the device (whose member ID is 1).
After a boot, the system calculates and records the average CPU usage rate
every five seconds.
This field displays the average CPU usage rate in the last five seconds.
After a boot, the system calculates and records the average CPU usage rate
every one minute.
This field displays the average CPU usage rate in the last minute.
135