intdash-agentctl config-file
intdash-agentctl config-file [<config_file_command_options>] <command> <command_option> [<arguments>]
configコマンドに共通の <config_file_command_options>
では、以下を使用することができます。
- --log <level>, -l <level>
ログレベルを設定します。levelには、以下を設定できます:
t[race]|d[ebug]|i[nformation]|w[arning]|e[rror]|q[uiet]
ログレベルは、環境変数AGENT_LOGでも設定できます。 環境変数AGENT_LOGよりもこのコマンドオプションが優先されます。環境変数AGENT_LOGが与えられておらず、このコマンドオプションも与えられていない場合、informationとなります。
- --help, -h
ヘルプを表示します。
showサブコマンド
intdash-agentctl config-file [<config_file_command_options>] show [<command_options>]
intdash Edge Agent 2の現在の設定を標準出力に書き出します。
[<command_options>]
で以下のように指定します。
- --default
現在の設定ではなくデフォルトの設定を表示します。
- --help, -h
ヘルプを表示します。
applyサブコマンド
intdash-agentctl config-file [<config_file_command_options>] apply <command_options>
指定されたファイルから設定を読み込み、適用します。
また、読み込まれた設定は現在使用中の設定ファイル(デフォルトでは /var/lib/intdash/agent.yaml
、ただし環境変数 AGENT_LIB_DIR
が設定されている場合は ${AGENT_LIB_DIR}/agent.yaml
)に書き込まれます。
<command_options>
で以下のように指定します。
- --user-agent-config <value>, -c <value> (必須)
使用する設定ファイルを指定します。
- --help, -h
ヘルプを表示します。