beautypg.com

Internal macro command definitions, Addlist, Delay – HP XP P9500 Storage User Manual

Page 117: If / endif, Addlist delay end if / endif

background image

Table 55 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

Executes a script conditionally.

If

Terminates a script conditionally.

EndIf

Makes strings; converts numeric value to character string.

MakeString

The Message command is not yet supported.

Message

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 P9500, all the searchable LDEVs in the P9500) and the AddList command
allows you to expand the parameters of a list created with the SetList command.

Internal macro command definitions

AddList

The AddList command allows you to add a specified value to a specific list type. If you add a
value to a list that exceeds the maximum number of items for that output list, the excess values will
be ignored. The format for the AddList command is:AddList $D= the output list to which you
want to add a value ,$S= the expressions or values to be added to the output list with a numeric
range of 0x0000 to 0xffff. For example, to add these values (0, 1, 2, 3, 0x1e, and 0x1f) to the
Dev (Device) B list, the AddList command would be:

AddList $D=_ilDevB

,$S={0,1,2,3,0x1e,0x1f}

Delay

The Delay command allows you to delay a script for a specified length of time. The script delay
time is set in seconds (0 - 3600). The format for the Delay command is: Delay $Time= the
length of time you want to delay the script. For example, to delay a script by 60 seconds, the
Delay

command would be:

Delay $Time=60

End

The End command allows you to declare the end of a script. The End command also terminates
the execution of a script. At least one End statement must be described in the trailing line of the
script statement.
The format for the End statement is: End

If / EndIf

The IF/EndIf statements are used together to allow you to verify the conditions of an expression.
If the IF/EndIf statement is successfully completed, succeeding statements will be processed. If
the IF/EndIf statement is not successfully completed, the script will abort and the succeeding
statements will not be completed. When IF/EndIf statements are used, several conditions must

Internal macro commands

117