TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-400
#SYSTEMNUMBER Built-In Function
#SYSTEMNUMBER Built-In Function
Use #SYSTEMNUMBER to obtain the network node number of a system, given its
name.
\node-name
is the name of the system whose number is to be found.
Result
#SYSTEMNUMBER returns the number of the system if the system can be reached, -2
if all paths to the system are down, or -1 if the system is not defined.
Consideration
To obtain the name of a system, use the #SYSTEMNAME built-in function.
Example
These code tests for system availability and displays the system number if the system
is available:
?SECTION getnum MACRO
#PUSH num
#SET num [#SYSTEMNUMBER %1%]
[#CASE [num]
| -2 | #OUTPUT %1% is not available
| -1 | #OUTPUT %1% is not defined
|OTHERWISE| #OUTPUT %1% (system number [num]) is &
available
]
#SYSTEMNUMBER \node-name