Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ psrinfo(1M) — SunOS 5.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

psradm(1M)

processor_info(2)

p_online(2)

psrinfo(1M)

NAME

psrinfo − print processor information

SYNOPSIS

psrinfo [ −v ] [ processor_id ...  ]
psrinfo −s processor_id

AVAILABILITY

SUNWcsu

DESCRIPTION

psrinfo shows information on configured processors.  Without arguments, it prints a line for each processor, telling whether it is online or offline, and when that status last changed. 

OPTIONS

−v Use verbose mode, showing information on processor type and clock speed. 

−s Use silent mode.  Output only a 1 or 0 for the specified processor. 

USAGE

Displays information about the specified processors, or all processors, if none are specified.  Without arguments, information on online/offline status and time of last change is given.  With the −v argument, information on processor type, floating point unit type, and clock speed are printed as well.  If any of this information cannot be determined, it will be printed as “unknown.”

The −s argument is provided for convenient use in shell scripts.  When −s is specified, psrinfo will output 1 if the specified processor is online, and 0 otherwise. 

EXAMPLES

To print the verbose status of all processors:

psrinfo -v

Shell usage to determine if a processor is online:

if [ "‘psrinfo -s 3 2> /dev/null‘" -eq 1 ]
then
echo "processor 3 is up"
fi

FILES

/etc/wtmp records are read to determine last status change time. 

SEE ALSO

psradm(1M), processor_info(2), p_online(2)

DIAGNOSTICS

psrinfo: processor 9: Invalid argument
The specified processsor does not exist.

SunOS 5.4  —  Last change: 23 Sep 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026