'\" te .\" Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved. .TH psrinfo 1M "25 March 2004" "SunOS 5.11" "System Administration Commands" .SH NAME psrinfo \- displays information about processors .SH SYNOPSIS .LP .nf \fBpsrinfo\fR [\fB-p\fR] [\fB-v\fR] [\fIprocessor_id\fR]... .fi .LP .nf \fBpsrinfo\fR [\fB-p\fR] \fB-s\fR \fIprocessor_id\fR .fi .LP .nf \fBpsrinfo\fR -t [-L] .fi .SH DESCRIPTION .sp .LP \fBpsrinfo\fR displays information about processors. Each physical processor may support multiple virtual processors. Each virtual processor is an entity with its own interrupt \fBID\fR, capable of executing independent threads. .sp .LP Without the \fIprocessor_id\fR operand, \fBpsrinfo\fR displays one line for each configured processor, displaying whether it is on-line, non-interruptible (designated by no-intr), spare, off-line, faulted or powered off, and when that status last changed. Use the processor_id operand to display information about a specific processor. See \fBOPERANDS\fR. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-s\fR\fI processor_id\fR\fR .ad .RS 19n .rt Silent mode. Displays \fB1\fR if the specified processor is fully on-line. Displays \fB0\fR if the specified processor is non-interruptible, spare, off-line, faulted or powered off. .sp Use silent mode when using \fBpsrinfo\fR in shell scripts. .RE .sp .ne 2 .mk .na \fB\fB-p\fR\fR .ad .RS 19n .rt Display the number of physical processors in a system. .sp When combined with the \fB-v\fR option, reports additional information about each physical processor. .RE .sp .ne 2 .mk .na \fB\fB-v\fR\fR .ad .RS 19n .rt Verbose mode. Displays additional information about the specified processors, including: processor type, floating point unit type and clock speed. If any of this information cannot be determined, \fBpsrinfo\fR displays \fBunknown\fR. .sp When combined with the \fB-p\fR option, reports additional information about each physical processor. .RE .sp .ne 2 .mk .na \fB\fB-t\fR\fR .ad .RS 19n .rt Tree mode. Displays a tree of the system's processors and their associated socket, core, and cpu ids. .RE .sp .ne 2 .mk .na \fB\fB-L\fR\fR .ad .RS 19n .rt Locality group mode. Annotates output with lgroup membership information. Must be used with \fB-t\fR option. .RE .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fIprocessor_id\fR\fR .ad .RS 16n .rt The processor \fBID\fR of the processor about which information is to be displayed. .sp Specify \fIprocessor_id\fR as an individual processor number (for example, \fB3\fR), multiple processor numbers separated by spaces (for example, \fB1 2 3\fR), or a range of processor numbers (for example, \fB1-4\fR). It is also possible to combine ranges and (individual or multiple) \fIprocessor_id\fRs (for example, \fB1-3 5 7-8 9\fR). .RE .SH EXAMPLES .LP \fBExample 1 \fRDisplaying Information About All Configured Processors in Verbose Mode .sp .LP The following example displays information about all configured processors in verbose mode. .sp .in +2 .nf \fBpsrinfo \fR\fB-v\fR .fi .in -2 .sp .LP \fBExample 2 \fRDetermining If a Processor is On-line .sp .LP The following example uses \fBpsrinfo\fR in a shell script to determine if a processor is on-line. .sp .in +2 .nf if [ "`psrinfo \fB-s\fR 3 2> /dev/null`" \(mieq 1 ] then echo "processor 3 is up" fi .fi .in -2 .sp .LP \fBExample 3 \fRDisplaying Information About the Physical Processors in the System .sp .LP With no additional arguments, the \fB-p\fR option displays a single integer: the number of physical processors in the system: .sp .in +2 .nf > psrinfo -p 8 .fi .in -2 .sp .sp .LP \fBpsrinfo\fR also accepts command line arguments (processor \fBID\fRs): .sp .in +2 .nf > psrinfo -p 0 512 # IDs 0 and 512 exist on the 1 # same physical processor > psrinfo -p 0 1 # IDs 0 and 1 exist on different 2 # physical processors .fi .in -2 .sp .sp .LP In this example, virtual processors \fB0\fR and \fB512\fR exist on the same physical processor. Virtual processors \fB0\fR and \fB1\fR do not. This is specific to this example and is and not a general rule. .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 6n .rt Successful completion. .RE .sp .ne 2 .mk .na \fB\fB>0\fR\fR .ad .RS 6n .rt An error occurred. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitysystem/core-os .TE .SH SEE ALSO .sp .LP \fBlgrpinfo\fR(1), \fBpsradm\fR(1M), \fBp_online\fR(2), \fBprocessor_info\fR(2), \fBattributes\fR(5) .SH DIAGNOSTICS .sp .ne 2 .mk .na \fB\fBpsrinfo:\fR \fBprocessor\fR \fB9:\fR \fBInvalid\fR \fBargument\fR\fR .ad .sp .6 .RS 4n The specified processor does not exist. .RE