|PSRINFO(8)||Maintenance Commands and Procedures||PSRINFO(8)|
psrinfo - displays information about processors
psrinfo [-p] [-v] [processor_id]...
psrinfo -t [-S state | -c | -p]
psrinfo -r [<propname> | all]
psrinfo displays information about processors. Each physical socket may contain multiple cores, which in turn can contain multiple virtual processors (also referred to as CPUs). Each virtual processor is an entity with its own ID, capable of executing independent threads.
Without the processor_id operand, psrinfo displays one line for each configured processor, displaying whether it is on-line, non-interruptible (designated by no-intr), spare, off-line, faulted, disabled, or powered off, and when that status last changed. Use the processor_id operand to display information about a specific processor. See OPERANDS.
The following options are supported:
When combined with the -v option, reports additional information about each physical socket.
Use silent mode when using psrinfo in shell scripts.
When combined with the -p option, reports additional information about each physical processor.
The following operands are supported:
Specify processor_id as an individual processor number (for example, 3), multiple processor numbers separated by spaces (for example, 1 2 3), or a range of processor numbers (for example, 1-4). It is also possible to combine ranges and (individual or multiple) processor_ids (for example, 1-3 5 7-8 9).
This cannot be specified along with the -r or -t options.
Example 1 Displaying Information About All Configured Processors in Verbose Mode
The following example displays information about all configured processors in verbose mode.
Example 2 Determining If a Processor is On-line
The following example uses psrinfo in a shell script to determine if a processor is on-line.
if [ "`psrinfo -s 3 2> /dev/null`" −eq 1 ] then echo "processor 3 is up" fi
Example 3 Displaying Information About the Physical Sockets in the System
Use the -tp options to report the number of sockets.
> psrinfo -tp
Without the -t option, -p also takes processor IDs:
> psrinfo -p 0 28 # IDs 0 and 28 exist on the 1 # same socket > psrinfo -p 0 1 # IDs 0 and 1 exist on different 2 # sockets
In this example, virtual processors 0 and 28 exist on the same socket. Virtual processors 0 and 1 do not. This is specific to this example and is and not a general rule.
The following exit values are returned:
psrinfo: processor 9: Invalid argument
|April 25, 2019||OmniOS|