Work variables, Reserved variables, Reserved result variables – HP XP P9500 Storage User Manual
Page 120: Work variables reserved variables
•
If the S/N of the connected storage system is less than a 5-digit number (for example, 00102),
input the valid digits only.
Start $Script=“HRC”,$Svr=102
•
If you want to execute the script without checking the S/N of connected storage system, do
not input any numbers for $Svr between double-quotation marks ("").
Start $Script=“HRC”,$Svr=""
Work variables
There are two types of work variables: list type, and non-list type. All work variables are initialized
before a script is executed.
•
Numeric work variables may have a value between 0x0000 and 0xffff. Numeric work variables
are initialized with 0.
•
A non-list string work variable may have a string with length up to 150 bytes. A list string
work variable may have strings with length up to 16 bytes each. String work variables are
initialized with a null string whose length is 0.
•
A list work variable may have up to 1024 items. A non-list work variable is a constant. List
work variables are initialized as empty (no items).
The work variable is part of an execution statement in a script.
provides a
description and the storage type of each work variable statement for list and non-list types.
Table 59 Work variables
Description and storage type
Type
Variable
Stores the device number list.
Numeric
_ilDEV
List Type
Expression: _ilDevA, _ilDevB, _ilDevC
Stores the priority number list.
Numeric
_ilPriority
Expression: _ilPriorityA, _ilPriorityB,
_ilPriorityC
Stores any 16-bit numeric values.
Numeric
_ilWork
Expression: _ilWorkA, _ilWorkB, _ilWorkC _ilWorkD,
_ilWorkE, _ilWorkF
Stores any strings.
String
_slWork
Expression: _slWorkA, _slWorkB, _slWorkC, _slWorkD,
_slWorkE, _slWorkF
Stores any 16-bit numeric value.
Numeric
_iNum
Non-ListType
Expression: _iNumA, _iNumB, _iNumC, _iNumD, _iNumE,
_iNumF
Stores any string.
String
_sMsg
Expression: _sMsgA, _sMsgB, _sMsgC, _sMsgD, _sMsgE,
_sMsgF
Reserved variables
Reserved variables include result variables (i.e., result of macro execution) and status variables
(i.e., pair status of specified volume). The reserved variables are for reference use only.
Reserved result variables
When a functional macro is executed (for example, CreateHrcPair), a result value (_Result) is issued.
illustrates the result statement format, and
lists and defines
120 Continuous Access Synchronous Z scripting