R3721-F3210-F3171-HP High-End Firewalls Getting Started Command Reference-6PW101

45
display cpu-usage
Syntax
display cpu-usage [ entry-number [ offset ] [ verbose ] [ from-device ] ] [ | { begin | exclude | include }
regular-expression ]
View
Any view
Default level
1: M o n i t o r l e ve l
Parameters
entry-number: Specifies the number of entries to be displayed, which ranges from 1 to 60.
offset: Specifies an offset in the range of 0 to 59. The offset specifies the record to be displayed first in the
output. For example, if you specify an offset of 3, and the total number of records is 12, the command
does not display the latest three records. It displays the records starting from the fourth latest record.
verbose: Displays the average CPU usage statistics for each task in the specified period. If this keyword
is not provided, this command displays brief CPU usage statistics.
from-device: Displays the external storage medium, such as a Flash or hard disk. The firewall does not
support the from-device keyword.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Getting Started Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
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 a number (defined by the entry-number
argument) of latest records, starting from the latest record. The display cpu-usage entry-number offset
command displays a number of latest records, starting from the (offset+1)th latest record.
Examples
# Display the current CPU usage statistics.
<Sysname> display cpu-usage
Unit CPU usage:
1% in last 5 seconds
1% in last 1 minute
1% in last 5 minutes
# Display the last fifth and sixth record entries in CPU usage statistics.
<Sysname> display cpu-usage 2 4
===== CPU usage info (no: 0 idx: 58) =====