Rate This Document
Findability
Accuracy
Completeness
Readability

cpu

Command Function

Collects CPU information, including the CPU model and list.

Syntax

1
./kspect cpu [-h] (-G | -c CPU)

Parameter Description

Table 1 Parameters of the cpu command

Parameter

Option

Description

-h/--help

-

Obtains help information.

-G/--general

-

Displays all CPU information.

-c/--cpu

  • n
  • n,m
  • n-m
  • all

Displays detailed information about a specified CPU core. The number of CPU cores is dynamically displayed based on the actual environment. The following provides an example of parameters:

  • To collect information about CPU core 1, enter -c 1.
  • To collect information about CPU cores 0 and 2, enter -c 0,2.
  • To collect information about CPU cores 0 to 3, enter -c 0-3.
  • To collect information about all CPU cores, enter -c all.

Example

  • Collect all CPU information.
    1
    ./kspect cpu -G
    
  • Collect information about CPU cores 0 to 3.
    1
    ./kspect cpu -c 0-3