.NET構成の管理
大きくスケーリング拡大された環境では、同じ .NET アプリケーションを実行する複数のマシンに同じ .NET エージェント構成が使用されることが多くなります。複数のマシンに対して手動で構成を更新すると、手間がかかり、エラーが発生しやすい可能性があります。
.NET エージェントの ファイルのアップロードと管理には、コントローラの構成管理ツールを使用します。
ご使用のマシンの .NET エージェント構成に関するすべてのファイルの管理は、[Settings] > [Agent Management] > [Manage Agents] > [Config Management] をクリックして行います。
要件
- 「ユーザー、グループ、役割、認証などの管理」などアカウントレベルの権限を伴う役割におけるメンバーシップ。
- 有効な
config.xml構成ファイル。構成管理ツールはconfig.xmlファイルを検証しない。 - 構成を展開するマシンにインストールされた .NET エージェント 4.1 以降。
Web ロールと Worker ロールのマシン名が必ずしも固有ではないため、Splunk AppDynamics の NuGet パッケージを使用して Azure Cloud Services に展開された .NET エージェントは構成管理に登録されません。マシン名が重複すると、予期しない結果が生じる可能性があります。
Identify the Configuration File
To start managing your configurations in the Controller, identify a configuration file or set of configuration files to upload. If you are not familiar with .NET Agent configuration, Cisco AppDynamicsrecommends you use the Agent Configuration Utility on each machine to configure the agent. See Administer the .NET Agent and Configure the .NET Agent.
For a full list of configuration properties, see .NET Agent Configuration Properties.
- Use
config.xmlfiles configured with the Cisco AppDynamics Agent Configuration Utility to help ensure the XML is valid. - Use the
config.xmlfile from a previously configured machine as a template for similar machines that need the exact same configuration.
設定のインポート
[設定のインポート(Import Config)] ダイアログで、config.xml をアップロードできます。
- 命名規則を使用して、構成するマシンのタイプを識別。
- 構成名には、日付とバージョンのスキームを使用すると有用。
- 構成をクリックして、[設定の編集(Edit Config)] をクリックし、構成名を変更します。
- 構成をダブルクリックしてXMLを表示。XMLはコピー可、変更は不可。
Assign Configuration to Machines
The Config Management tool enables you to assign machines to a configuration, or change the configuration from one to another. After you assign the configuration in the Controller, the .NET Agent automatically downloads the configuration file.
If a machine does not have a managed configuration, the Config Management tool displays it following Machine with no assigned templates
Opt Out of Configuration Management
To configure an agent so that it does not receive configuration files from the Controller, set the enable_config_ deployment false config.xml .NET Agent Configuration Properties.
For example:
<controller host="mycontroller.saas.appdynamics.com" port="443" ssl="true" enable_config_deployment="false">
古い構成の復元
誤って構成を割り当ててしまった場合、次の手順で前バージョンの config.xml を復元できます。
- [設定の管理(Config Management)] ペインで、現在割り当てられている構成から [テンプレートが割り当てられていないマシン(Machine with no assigned templates)] にマシンをドラッグ。
- そのマシン上で、既存の構成ファイルの名前
config.xmlをconfig.old.xmlなどに変更します。 - バックアップのサブディレクトリから
Configディレクトリにバックアップ構成ファイルをコピーします。バックアップファイルの名前は、config-<date>.xmlのフォーマットで指定します。 - バックアップ構成ファイルの名前を
config.xmlに変更します。 - オプションで、
config.xmlを編集して構成管理からオプトアウトできます。 - Cisco AppDynamicsAgent コーディネータサービスを再起動。
- Windowsサービス、インストゥルメント化されたWindowsサービス、インストゥルメント化されたスタンドアロンアプリケーションを再起動。