Hitachi Command Suite Software CLI リファレンスガイド
Device Manager CLIのプロパティファイルには,コマンドラインでの入力を省略したい値や,ログファイルの設定などを指定できます。
プロパティファイルで指定できる設定は次のとおりです。
- ログファイルの出力先
- ログファイルに出力するログのレベル
- メッセージトレースファイルの出力先
- Device ManagerサーバのURL
- コマンドのオプション
- コマンドのパラメーター
- XML形式で出力したコマンド実行結果で使用するDTD
プロパティファイルはHiCommandCLI.propertiesというファイル名で,Device Manager CLIのインストール先に格納されます。
プロパティファイルの例(Windowsの場合)を次に示します。シャープ記号(#)で始まる行は,コメント行です。
################################# # # Device Manager Command Line Interface (CLI) Properties File # # Can be used to provide options and default parameters # for the Device Manager CLI program. # # The Device Manager CLI program does not require # any of the properties to be set. # Location for the diagnostics file # (default, when not specified, is HiCommandCLI.log # in the executing directory). HiCommandCLI.logfile=C:/Temp/diag.log # Diagnostic level of the diagnostic file # (currently, default is INFO). # Allowable values are DEBUG, INFO, and WARN, # each of which will output that level and higher. HiCommandCLI.diaglevel=INFO # Location for the message trace file # (default, when not specified, is MessageTrace.log # in the executing directory). HiCommandCLI.tracefile=C:/DeviceManager/traffic.log # Set the server url. HiCommandCLI.serverurl=http://localhost:2001/service ##### OPTIONS #### user=khalsa # Password can be provided directly, or from a password file. password=khalsa #password=@D:\\DeviceManager\\.passwd # Provide a copy of the raw xml request & response # in MessageTrace.log file. messagetrace=true # Disable output of the results of successfully executed commands. # Output of commands whose names start with "Get" is not disabled. #quiet=true ##### COMMAND PARAMETERS #### # Set the Array model, for commands that use this parameter. model=USP_V
- 2.6 Device Manager CLIのプロパティファイルを設定する
- 8.2 ログファイルの出力先を指定するプロパティ(HiCommandCLI.logfile)
- 8.3 ログレベルを指定するプロパティ(HiCommandCLI.diaglevel)
- 8.4 メッセージトレースファイルの出力先を指定するプロパティ(HiCommandCLI.tracefile)
- 8.5 Device ManagerサーバのURLを指定するプロパティ(HiCommandCLI.serverurl)
- 8.6 コマンドのオプションを指定するプロパティ
- 8.7 プロパティによるパラメーターの指定
- 8.8 DTDファイルを指定するプロパティ(dtd)
All Rights Reserved. Copyright© 2010, 2014, Hitachi, Ltd.