HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 141

display cpu-usage

Page 141 highlights

Description Use display clock to display the system time and date. The 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. Related commands: clock datetime, clock summer-time one-off, clock summer-time repeating, and clock timezone. Examples # Display the current time and date. display clock 09:41:23 UTC Thu 12/15/2010 display cpu-usage Syntax display cpu-usage [ slot slot-number [ cpu cpu-number ] ] [ | { begin | exclude | include } regular-expression ] View display cpu-usage entry-number [ offset ] [ verbose ] [ slot slot-number [ cpu cpu-number ] ] [ | { begin | exclude | include } regular-expression ] 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 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 ranges from 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 ranges from 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, the system displays brief CPU usage statistics. slot slot-number: Displays the CPU usage statistics for an IRF member switches. The slot-number argument represents the IRF member ID of the switch. If no member switch is specified, the system displays the CPU usage statistics for all IRF member switches. cpu cpu-number: Displays the CPU usage statistics for the specified CPU. If the cpu-number argument is not provided, the system displays the CPU usage statistics for all CPUs of the specified IRF member switch. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. 134

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

134
Description
Use
display clock
to display the system time and date.
The 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
.
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
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
]
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 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 ranges from 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 ranges from 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, the system displays brief CPU usage statistics.
slot
slot-number
: Displays the CPU usage statistics for an IRF member switches. The
slot-number
argument
represents the IRF member ID of the switch. If no member switch is specified, the system displays the CPU
usage statistics for all IRF member switches.
cpu
cpu-number
: Displays the CPU usage statistics for the specified CPU. If the
cpu-number
argument is
not provided, the system displays the CPU usage statistics for all CPUs of the specified IRF member switch.
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.