HP VPN Firewall Appliances Getting Started Command Reference
60
display cpu-usage
Use display cpu-usage to display CPU usage statistics.
Syntax
display cpu-usage [ entry-number [ offset ] [ verbose ] ] [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: M o n i t o r l e ve l
Parameters
entry-number: Number of entries to be displayed, which is in the range of 1 to 60.
offset: Offset between the serial number of the first CPU usage rate record to be displayed and that of the
last CPU usage rate record to be displayed. It is in the range of 0 to 59.
For example, the idx of the latest statistics record is 12. If the offset is set to 3, the system will display the
statistics records from the one with the idx of 9, where idx represents the serial number of the period for
the statistics, and its value is in the range of 0 to 60 cyclically. The system collects CPU usage rates
periodically, and the system records the average CPU usage rate during this period, and the idx value is
added by 1 automatically.
verbose: Displays the average CPU usage statistics for each task in the specified period. If this keyword
is not provided, this command displays the brief information of the CPU usage statistics.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see the chapter on CLI in 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.
Usage guidelines
The system regularly (typically at 60-second intervals) collects CPU usage statistics and saves the
statistical results in the history record area. The maximum number of records that can be saved depends
on your device model.
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 number latest records,
starting from the last (offset+1)th 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