[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    psrinfo(1M) manual page Table of Contents

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 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"fiFiles

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

See Also

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

Diagnostics

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


Table of Contents