Hitachi MK-96RD617-08 User Manual page 192

Performance manager
Table of Contents

Advertisement

Table 7-20
Termination
Code
0
1
2
3
4
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.
Java -classpath "./lib/JSanExport.jar;./lib/JSanRmiServerSx.jar" -Xmx536870912 -
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
Figure 7-7
Note: The " " symbol indicates the end of a command line.
7-28
Hitachi Universal Storage Platform V/VM Hitachi Performance Manager User's Guide
Termination Codes Returned by the Export Tool
The Export Tool finished successfully.
An error occurred when the set subcommand (see set subcommand) executed,
because an attempt to switch to Modify mode failed. Some other user might have
been logged on in Modify mode.
An error occurred due to some reason unrelated to system option modes (i.e., View
mode and Modify mode)
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 set subcommand)
executed. Some other user might have been logged on in Modify mode.
The user ID has none of permissions for Performance Monitor, TrueCopy, TrueCopy
for IBM z/OS, Universal Replicator, and Universal Replicator for IBM z/OS.
Example of a Batch File Including References to Termination
Codes
Using the Export Tool
Meaning

Advertisement

Table of Contents
loading

Table of Contents