TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-311
#PROCESSORSTATUS Built-In Function
#PROCESSORSTATUS Built-In Function
Use #PROCESSORSTATUS to determine the status of all CPUs on a given system.
\node-name
is the name of the system for which you want the processor status. If you omit it,
the local system is assumed.
Result
#PROCESSORSTATUS returns a space-separated list of 17 numbers. The first
number indicates the highest processor number present in the system, plus one.
The remaining 16 numbers are the status of each of the 16 possible CPUs, starting
with CPU 0. For each running CPU, the status is -1. For each halted or absent CPU,
the status is 0.
If the specified system is unknown or unavailable, TACL returns this message:
Expecting an available system Or End
Example
This example illustrates the result of a #PROCESSORSTATUS call:
15> #OUTPUT [#PROCESSORSTATUS]
16 -1 -1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0 0
The local system has 16 configured processors and six active processors, running as
CPUs 0 through 5.
#PROCESSORSTATUS [ \node-name ]