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.

Help text

process-tracking help

Usage: [no] process-tracking [slot[SLOT-LIST] [<time>]] [<time>]

Description: Enable/disable module process-tracking functionality.

show cpu help

Usage: 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>]

Description: Show average CPU utilization over the last 1, 5, and 60 seconds, or the number of seconds specified.

Use the 'slot' argument to display CPU utilization for the specified modules, rather than the chassis CPU.

Use the 'process' argument to display module process usages.

show cpu process help

Usage: show cpu process [slot [SLOT-LIST][refresh <iterations>]]

[refresh <iterations>]

Description: Display module process usage.

Command tab

process-tracking

process-tracking <tab>

slot

Enable/disable process-tracking for a module

INTEGER

Specify 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

Specify time to track value between 1 second to 30 seconds

<cr>

process-tracking slot A 10 <tab>

<cr>

process-tracking 10 <tab>

<cr>

show cpu process

show cpu <tab>

process

Display process usage

slot

Display 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

Display 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>

Command ouput

show cpu process

HP-5406zl# 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

show cpu process slot <SLOT-LIST>

HP-5406zl# 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