beautypg.com

Modifying a batch file – HP StorageWorks XP Remote Web Console Software User Manual

Page 122

background image

katfile

SVP-ip-address

user-id

password > myAuthentication.txt

Specify the following items:

SVP-ip-address

: Specify the IP address of the SVP. To use an IPv6 address, enclose

the IPv6 address in square brackets [ ].

user-id

: Specify the user ID of the storage administrator.

password

: Specify the password of the storage administrator.

When you execute the command, a user authentication file named myAuthentication.txt
is created in the current directory.

You can rename this user authentication file. Only single-byte characters can be specified for
the file name. The extension must be .txt. If you rename the file, you need to change the
name of the user authentication file written in the batch file.

6.

Set the appropriate access privilege for the user authentication file that you created.

Make sure that only the user who created the file can access the file.

Examples:

In this example for Windows, myAuthentication.txt is created from information such
as the IP address (158.214.135.127), user ID (administrator), and password (administrator).

\mkatfile 158.214.135.127 administrator administrator >myAuthentication.txt

In this example for Windows, myAuthentication.txt is created from information such
as the IP address (fe80::20a:e4ff:fe8f:20b5), user ID (administrator), and password
(administrator).

\mkatfile [fe80::20a:e4ff:fe8f:20b5] administrator administrator >myAuthentication.txt

Modifying a Batch File

The batch files provided by Remote Web Console to be used for executing the CFL Extension
commands can be manually modified, if necessary. The batch files are as follows:

Table 31 Batch Files for Executing the CFL Extension Commands

Description

File Name

Directory

A batch file for the CFLCHK command

cflchk

\Tools\CFL_CLI\sample

A batch file for the CFLGET command

cflget

A batch file for the CFLSET command

cflset

Before executing the CFL Extension commands, copy the batch files provided by Remote Web
Console to the \Tools\CFL_CLI directory (the same directory as JSanCFL.jar), and then
modify the file if necessary. The file with the .bat extension is for Windows, and the file with the
.sh

extension is for UNIX.

The following examples show a batch file for the CFLSET command. The

symbol indicates the

end of a command line.

For Windows:

java -jar -Djava.security.policy=java.policy JSanCFL.jar myAuthentication.txt CFLSET %1 %2

For UNIX:

#! /bin/csh

java -jar -Djava.security.policy=java.policy JSanCFL.jar myAuthentication.txt CFLSET $1 $2

122

Using the CFL Extension