TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-399
#SYSTEMNAME Built-In Function
#SYSTEMNAME Built-In Function
Use #SYSTEMNAME to obtain the name of a system, given its network node number.
system-number
is the number of the system whose name is to be found. The system number is an
integer in the range 0 to 254.
Result
#SYSTEMNAME returns the name 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 network node number of a system, use the #SYSTEMNUMBER built-in
function.
Example
These code tests for system availability and displays the node name if the system is
available:
?SECTION getname MACRO
#PUSH name
#SET name [#SYSTEMNAME %1%]
[#CASE [name]
| -2 | #OUTPUT System %1% is not available
| -1 | #OUTPUT System %1% is not defined
|OTHERWISE| #OUTPUT System %1% (node name [name]) is &
available
]
#SYSTEMNAME system-number