Controls and lists which processors will be active when the system is next started.
cpu_state -l | { -d | -e } ProcessorNumber
The cpu_state command controls and lists which processors on a multiprocessor system will be active when the system is next started. The -d or -e flags respectively disable or enable the processor identified by the ProcessorNumber parameter. The -l flag displays a report with the following fields:
The physical processor numbers used in ODM names are based on the location of processors within the system (cpu card and card position number). Logical numbers are assigned to processors by numbering all currently enabled processors starting with physical processor 0 (zero). Thus, in a system with 2 enabled processors out of a possible 4, the logical numbers 0 (zero) and 1 (one) are used.
The Status field does not display the current processor state, but rather the state to be used for the next boot. This means that if an enabled processor is disabled using the -d flag, the -l flag will display the processor as disabled, but having a logical number. When the system is rebooted, the processor will not be used and its status field will remain disabled (until it is changed) and it will have no logical number. If the processor status is unknown, the Status field contains no reply. This status means either that the processor has a hardware problem detected by a power-on test, or that no reply was received.
The lsdev command can be used on any multiprocessor system to query information about processors. The conventions stated previously for the logical processor number and location code are not common across all multiprocessor systems. The lsdev command for this is as follows:
lsdev -C -c processor -S Available
-d | Disables the specified processor. |
-e | Enables the specified processor. |
-l | Lists the status of all processors. |
Name Cpu Status Location proc0 0 Enabled 00-0P-00-00 proc1 1 Enabled 00-0P-00-01 proc2 2 Enabled 00-0Q-00-00 proc3 3 Enabled 00-0Q-00-01
Name Cpu Status Location proc0 0 Enabled 00-0P-00-00 proc1 1 Disabled 00-0P-00-01 proc2 2 Enabled 00-0Q-00-00 proc3 3 Enabled 00-0Q-00-01
If the system is rebooted, the disabled state takes effect and processor one will no longer have a logical processor number. The command cpu_state -l would then produce a listing similar to the following:
Name Cpu Status Location proc0 0 Enabled 00-0P-00-00 proc1 - Disabled 00-0P-00-01 proc2 1 Enabled 00-0Q-00-00 proc3 2 Enabled 00-0Q-00-01
Name Cpu Status Location proc0 0 Enabled 00-0P-00-00 proc1 - Enabled 00-0P-00-01 proc2 1 Enabled 00-0Q-00-00 proc3 2 Enabled 00-0Q-00-01
/usr/sbin/cpu_state | Contains the cpu_state command. |
Starting the System in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices, Stopping the System in AIX 5L Version 5.2 System Management Guide: Operating System and Devices.