HP XP20000/XP24000 HP StorageWorks XP24000/XP20000 Remote Web Console User Gui - Page 123

Modifying a Batch File, Table 31 Batch Files for Executing the CFL Extension Commands

Page 123 highlights

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 Directory \Tools\CFL_CLI\sample File Name cflchk cflget cflset Description A batch file for the CFLCHK command A batch file for the CFLGET command A batch file for the CFLSET command 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 Preparing for Using CFL Extension 123

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151

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
Preparing for Using CFL Extension
123