6.2 htsmcli.propertiesファイルでのオプションやパラメーターの指定

htsmcli.propertiesファイルのプロパティで,CLIコマンドを実行するときに使用するTiered Storage Managerサーバのロケーション,オプション,およびパラメーターを設定しておけます。次の表にhtsmcli.propertiesファイルのプロパティとCLIコマンドの引数の対応を示します。

表6-2 htsmcli.propertiesファイルのプロパティとCLIコマンドの引数の対応

プロパティCLIコマンドの引数
htsmserver.locationTiered Storage Managerサーバのロケーション
option.username--usernameオプション
option.password--passwordオプション
option.password2対応する引数なし
option.output--outputオプション
option.secure--secureオプション
parameter.パラメーター名「名前」と「値」の組み合わせで指定するパラメーター
重要
htsmcli.propertiesファイルにプロパティの値を記述するとき使用できる文字で,印字できる文字は,ASCII文字およびASCII文字として認識される¥u0020~¥u007Eだけです。

htsmcli.propertiesファイルでTiered Storage Managerサーバのロケーションとオプションに値を設定する例を,次の表に示します。

表6-3 htsmcli.propertiesファイルでのプロパティの値の設定例

プロパティ
htsmserver.locationrmi://myhost.mydomain:24500/HTSMServer
option.usernameuser01
option.password@C:¥¥TieredStorageManager¥¥Tiered Storage Managerのバージョン¥¥CLI¥¥pass.txt
option.securetrue

これらのプロパティと値の記述例を次に示します。

htsmserver.location=rmi://myhost.mydomain:24500/HTSMServer
 
option.username=user01
 
#option.password=user01_pass
#option.password=@/home/user01/htsmclipassword

option.password=@C:¥¥TieredStorageManager¥¥<Tiered Storage Managerのバージョン>¥¥CLI¥¥pass.txt

option.secure=true

この節の構成
6.2.1 htsmserver.locationプロパティ
6.2.2 option.usernameプロパティ
6.2.3 option.passwordプロパティ
6.2.4 option.password2プロパティ
6.2.5 option.outputプロパティ
6.2.6 option.secureプロパティ
6.2.7 parameter.パラメーター名プロパティ