Device Manager CLIのプロパティファイルには,コマンドラインでの入力を省略したい値や,ログファイルの設定などを指定できます。
プロパティファイルで指定できる設定は次のとおりです。
プロパティファイルは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
関連項目