Task usage reporting
The task usage reporting feature provides the ability to collect and display CPU usage data (with a refresh rate of 5 seconds) of running tasks on the switch. It includes the following commands:
process-tracking
: This command is used to enable/disable the task-usage collecting capability for a specific module on the switch.show cpu process
: This command is used to display task-usage statistics for a specific module.
Syntax:
[no] process-tracking [slot[SLOT-LIST] [<time>]] [<time>]
Enables/disables module process-tracking functionality.
process-tracking <tab>
slot |
Enables/disables process-tracking for a module. |
INTEGER |
Specifies time to track value between 1 second to 30 seconds. |
<cr> |
process-tracking slot <tab>
SLOT-ID-RANGE |
Enter an alphabetic device slot identifier or slot range. |
process-tracking slot A
INTEGER |
Specifies time to track value between 1 second to 30 seconds. |
<cr> |
process-tracking slot A 10 <tab>
<cr> |
process-tracking 10 <tab>
<cr> |
Syntax:
show cpu [<CHASSIS_MIN_CPU_UTIL_INDEX-CHASSIS_MAX_CPU_UTIL_INDEX>]
[slot <SLOT-LIST>
[<CHASSIS_MIN_CPU_UTIL_INDEX-CHASSIS_MODULE_MAX_CPU_UTIL_INDEX>]]
[process [[slot <SLOT-LIST>] [refresh <iterations>]]
[refresh <iterations>]
Shows average CPU utilization over the last 1, 5, and 60 seconds, or the number of seconds specified.
Use the
slot
option to display CPU utilization for the specified modules, rather than the chassis CPU.
Use the
process
option to display module process usages.
Syntax:
show cpu process [slot [SLOT-LIST][refresh <iterations>]]
[refresh <iterations>]
Displays module process usage.
show cpu <tab>
process |
Displays process usage. |
slot |
Displays module CPU statistics. |
<1-300> |
Time (in seconds) over which to average CPU utilization. |
<cr> |
show cpu process <tab>
refresh |
Number of times to refresh process usage display. |
slot |
Displays module process usage. |
<cr> |
show cpu process refresh <tab>
INTEGER |
Enter an integer number. |
show cpu process refresh 10 <tab>
<cr> |
show cpu process slot <tab>
SLOT-ID-RANGE |
Enter an alphabetic device slot identifier or slot range. |
show cpu process slot A <tab>
refresh |
Number of times to refresh process usage display. |
<cr> |
show cpu process slot A refresh <tab>
INTEGER |
Enter an integer number. |
show cpu process slot A refresh 10 <tab>
<cr> |
Output for the show cpu process command
switch# show cpu process | Recent | % | Time Since | Times | Max Process Name | Priority | Time | CPU | Last Ran | Ran | Time ----------------- + --------- + ------ + ---- + ---------- + ------ + ------- Idle-1 | 226 | 10 s | 41 | 57 us | 380986 | 69 us Idle-3 | 1 | 5 s | 20 | 52 us | 761665 | 55 us Idle-0 | 226 | 8 s | 33 | 19 us | 380867 | 66 us Sessions & I/O-24 | 171 | 926 ms | 3 | 1 ms | 150 | 335 ms
Output for the show cpu process slot <slot-list> command
switch# show cpu process slot A slot a: | Recent | % | Time Since | Times | Max Process Name | Priority | Time | CPU | Last Ran | Ran | Time ----------------- + --------- + ------ + ---- + ---------- + ------ + ------- System Services-2 | 156 | 253 ms | 2 | 767 ms | 12 | 35 ms Idle-3 | 1 | 3 s | 28 | 13 ms | 101309 | 150 us Hardware Mgmt-2 | 192 | 282 ms | 2 | 303 us | 44 | 12 ms Idle-1 | 226 | 6 s | 55 | 13 ms | 50793 | 233 us Idle-0 | 226 | 1 s | 9 | 14 ms | 50633 | 106 us