Internal macro commands – HP StorageWorks XP Remote Web Console Software User Manual

Page 235

Advertising
background image

Example 19 SelectHrcDevice Command

Start $Script="HRC",$Svr="64002"

// $Dev
SetList $D =_ilDevB, $S = {0x000F00,0x000F01,0x000F02,0x000F03,0x000F04,0x000F05,
0x000F06,0x000F07}
AddList $D =_ilDevB, $S = {0x000F10,0x000F11,0x000F12,0x000F13,0x000F14,0x000F15,
0x000F16,0x000F17}
AddList $D =_ilDevB, $S = {0x000F20,0x000F21,0x000F22,0x000F23,0x000F24,0x000F25,
0x000F26,0x000F27}
AddList $D =_ilDevB, $S = {0x000F30,0x000F31,0x000F32,0x000F33,0x000F34,0x000F35,
0x000F36,0x000F37}
AddList $D =_ilDevB, $S = {0x000F40,0x000F41,0x000F42,0x000F43,0x000F44,0x000F45,
0x000F46,0x000F47}
AddList $D =_ilDevB, $S = {0x000F50,0x000F51,0x000F52,0x000F53,0x000F54,0x000F55,
0x000F56,0x000F57}

SelectHrcDevice $DevList = _ilDevA, $Dev = _ilDevB, $Sync = "Synchronous2",
$PairStatus = "Suspend"

DeleteHrcPair $Dev = _ilDevA

End

Internal Macro Commands

The internal macro commands are the connection agents that allow you to connect the functional
macros together and produce a complete and functioning script. The internal macros are divided
into two groups as shown in

“ASCII Character Codes” (page 236)

: list types and non-list types.

Table 79 Internal Macro Commands

Description

Macro

Type

Set (define) a list of items.

SetList

For lists

Add items to a list.

AddList

Declares the beginning of a script.

Start

For non-lists

Declares the end of a script.

End

Suspends script execution for the
specified length of time.

Delay

If

Executes a script conditionally.

Endif

Terminates a script conditionally.

MakeString

Makes strings; converts numeric value
to character string.

Message

The Message command is not yet
supported.

The Start and End commands are used together to begin and end the functions of a script. Every
script must have a Start and End command. The If/EndIf commands are also used concurrently to
string two or more functional commands together. The If/EndIf commands must be used together.
For every If command in a script there must be an EndIf command. The Delay command allows
you to delay a script for up to an hour. The MakeString command allows you to assign several
values to a string statement, or the MakeString command can convert numeric values to sting values.
The SetList command allows you to create a list (for example, all the searchable ports in the XP
disk array, all the searchable LDEVs in the XP) and the AddList command allows you to expand
the parameters of a list created with the SetList command.

Internal Macro Commands 235

Advertising