157
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 the
display clock
command to view the current system time and date.
The current system time and date are decided by the
clock datetime
,
clock summer-time one-off
, or
clock
summer-time repeating
, and
clock timezone
commands. For more information about how the system
time and date are decided, see
Fundamentals Configuration Guide
.
If you power off and restart the device, the system time restores to the factory default. If you use the
reboot
command to restart the device, the system times remains unchanged.
Related commands:
clock datetime
,
clock summer-time one-off
,
clock summer-time repeating
, and
clock timezone
.
Examples
# Display the current time and date.
<Sysname> display clock
09:41:23 UTC Thu 12/15/2010
display cpu-usage
Syntax
In standalone mode:
display cpu-usage
[
slot
slot-number
[
cpu
cpu-number
] ] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
display cpu-usage
entry-number
[
offset
] [
verbose
] [
slot
slot-number
[
cpu
cpu-number
] ] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
In IRF mode:
display cpu-usage
[
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
]
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
display cpu-usage
entry-number
[
offset
] [
verbose
] [
chassis
chassis-number
slot
slot-number
[
cpu
cpu-number
]
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view
Default level
1: Monitor level
Parameters
entry-number
: Number of entries to be displayed, which ranges from 1 to 60.
offset
: Offset between the idx of the first CPU usage record to be displayed and that of the last CPU usage
record. The value range for the argument is 0 to 59.
For example, the idx of the latest statistics record is 12. If the
offset
is set to 3, the system displays the
statistics records from the one with idx 9, where idx represents the index number of the period for the