beautypg.com

Dtcl return values – HP Storage Mirroring Software User Manual

Page 302

background image

A

-

39

!

WHILE Loop

—The WHILE loop evaluates a relational expression and, if it is true, then the statement block is executed.

When the statement block has completed execution, the expression will be reevaluated again and, if it is true, the
statement block is executed again. This continues until the expression is false. Use the conditions specified in the IF
conditional to create the relational expression and the following syntax for the WHILE loop:

WHILE DO END

!

WRITE Command

—The WRITE command writes values to the screen. These values can be variables or constants of

type integer$, string$, date$, or time$. The write command is used in conjunction with either the IF conditional, WHILE
loop, or FOR loop.

DTCL Return Values

Understanding the values returned by the DTCL commands will make variables and script flow control more useful. Any
positive number returned from a DTCL command indicates the command was successful. A negative value indicates an error.

The following table includes all of the possible negative DTCL return values and a short description of the cause of the error.

NOTE:

The exception to that rule is the

connect

and

login

command. If the

connect

command returns a positive

number, that number is the connection ID assigned to that connection. The

login

command may return one

of three positive values:

0

(no access granted),

1

(monitor access granted), or

2

(full access granted).

Error
Code

Description

-1

An unknown error code (generated when a command failed but the failure is not linked to a pre-defined error
code)

-101

An invalid parameter was supplied in the DTCL command.

-102

The command entered is not a valid DTCL command or the syntax is incorrect.

-103

The machine being identified as the source does not have the Storage Mirroring source module loaded.

-104

No machine has been identified as a Storage Mirroring source.

-105

The machine being identified as the target does not have the Storage Mirroring target module loaded.

-106

The connection you are attempting to create has already been established.

-107

The connection you are attempting to manipulate does not exist.

-108

The mirror you are attempting to stop is not currently active.

-109

The machine identified does not exist or could not be located.

-110

The machine you are attempting to access is not responding.

-111

Storage Mirroring is running on the machine specified.

-112

An unknown connection error has occurred.

-113

The mirror you are attempting to start or resume is already active.

-114

The date specified is invalid. The valid format is mm/dd/yy.

-115

The time specified is invalid. The valid format is hh:mm.

-116

An invalid option was supplied in the DTCL command.

-117

The mirror you are attempting to resume is not paused.

-118

The connection you are attempting to resume is not paused.

-119

The connection you are attempting to manipulate does not exist.

-120

The connection you are attempting to establish is already connected.

-121

The mirror you are attempting to stop or pause is not currently running.