Command reference, Table 22 subcommand list (continued), 21 termination codes that the export tool returns – HP StorageWorks XP Remote Web Console Software User Manual

Page 53: 22 subcommand list

Advertising
background image

Performance Control XP user guide

53

Whenever the Export Tool runs, it creates a new log file on your computer. Therefore, if you run the

Export Tool repeatedly, the size of free space on your computer will be reduced. To secure free space

on your computer, you are strongly recommended to delete log files regularly. For information about the

directory containing log files, see ”

The java command for exporting data In files

” on page 76.

For information about how to solve errors with the Export Tool, see ”

Troubleshooting the Export Tool

on page 78.

The Export Tool returns a termination code when the Export Tool finishes (see

Table 21

).

If you want to use a reference to a termination code in your batch file, do the following:
• To use such a reference in a Windows batch file, write %errorlevel% in the batch file.
• To use such a reference in a UNIX Bourne shell script, write %? in the shell script.
• To use such a reference in a UNIX C shell script, write %status in the shell script.
A reference to a termination code is used in the following example of a Windows batch file. If this

batch file executes and the Export Tool returns the termination code 1 or 3, the command prompt

displays a message that indicates the set subcommand fails.

Figure 24

Sample batch file including a reference to termination code

NOTE:

The ↵ symbol indicates the end of a command line.

Command reference

This section explains details about subcommands that you can write in your command file and the java

command that should be used in your batch file.

Table 22

lists the subcommands explained in this section.

The java command is explained in ”

The java command for exporting data In files

” on page 76.

Table 21

Termination codes that the Export Tool returns

Termination code

Meaning

0

The Export Tool finished successfully.

1

An error occurred when the set subcommand (see ”

The set subcommand” on page 75

)

executed, because an attempt to switch to Modify mode failed. Some other user might have

been logged on in Modify mode.

2

An error occurred due to some reason unrelated to SVP modes (that is, View mode and

Modify mode).

3

An error occurred due to more than one reason. One of the reasons is that an attempt to

switch to Modify mode failed when the set subcommand (see

The set subcommand” on

page 75

) executed. Some other user might have been logged on in Modify mode.

4

The user ID has none of written permissions for Auto LUN XP, Continuous Access XP, and

TrueCopy for z/OS.

java -classpath "./lib/JSanExport.jar;./lib/JSanRmiServer.jar"
-Dmd.command=command.txt -Dmd.logpath=log sanproject.getmondat.RJMdMain

if %errorlevel%==1 echo THE SET SUBCOMMAND FAILED

if %errorlevel%==3 echo THE SET SUBCOMMAND FAILED

pause

Table 22

Subcommand list

Subcommand

Function

See

svpip

Specifies the IP address of the SVP to be logged into.

The svpip subcommand

” on

page 55

retry

Makes settings on retries of export processing.

The retry subcommand

” on

page 56

Advertising