このコンテンツは選択した言語では利用できません。

4.3. Silently Installing an Agent


All of the agent configuration is written to and loaded from the agent-configuration.xml file. During installation, there are some parameters that are predefined and others that are environment-specific and must be provided. The agent setup prompts request this environment or instance-specific information.
However, it is possible to supply that required information before running the agent for the first time. Since all of the required information is supplied, the agent does not prompt for it; it simply starts.
  1. Copy the agent-configuration.xml file to a working directory. For example:
    [root@server ~]# cp agentRoot/rhq-agent/conf/agent-configuration.xml /tmp/files/
    Copy to Clipboard Toggle word wrap
  2. Uncomment (if necessary) and edit the desired agent parameters.
    Any agent parameters (such as SSL connections and other advanced configuration) can be defined in agent-configuration.xml. At a minimum, the entry keys listed in Table 4.3, “Configuration File Keys for Agent Setup” for the agent and server have to be set in the file.
    [root@server ~]# vim /tmp/files/agent-configuration.xml
    	
    ...
    <!-- agent properties -->
    <entry key="rhq.agent.name" value="agent.example.com"/>
    <entry key="rhq.communications.connector.bind-address"     value="255.255.255.1" />	
    <entry key="rhq.communications.connector.bind-port"        value="16163" />	
    
    <!-- server properties -->
    <entry key="rhq.agent.server.bind-address"     value="255.255.255.0" />
    <entry key="rhq.agent.server.bind-port"        value="7080" />
    <entry key="rhq.agent.disable-native-system" value="false"/>
    ...
    Copy to Clipboard Toggle word wrap
  3. Set the rhq.agent.configuration-setup-flag key to true so that the agent loads it as initial configuration.
    <entry key="rhq.agent.configuration-setup-flag" value="true" />
    Copy to Clipboard Toggle word wrap
  4. Start the agent, specifying the edited configuration file with the --config option>.
    [jbossadmin@server !]$ agentRoot/rhq-agent/bin/rhq-agent.sh --config /tmp/files/agent-configuration.xml
    Copy to Clipboard Toggle word wrap
Expand
Table 4.3. Configuration File Keys for Agent Setup
Installer Prompt Text Key Name Description
rhq.agent.configuration-setup-flag Tells the installer that the agent configuration is already in the configuration file. This must be set to true for the installer to load the configuration file.
[Agent Name] rhq.agent.name Gives a unique name to identify the agent to the server.
[Agent Hostname or IP Address] rhq.communications.connector.bind-address Gives the hostname or IP address that the server will use to connect to the agent. This <entry> line may need to be uncommented before it is set.
[Agent Port] rhq.communications.connector.bind-port Gives the port for the server to use to communicate with the agent. The default (16163) can be used in most cases.
[RHQ Server Hostname or IP Address] rhq.agent.server.bind-address Gives the hostname or IP address that the agent will use to connect to the server to register itself. If this is a hostname, it must be resolvable by the agent.
[RHQ Server Port] rhq.agent.server.bind-port Gives the port for the agent to use to communicate with the server. The default (7080) can be used, assuming the server was configured with the default values.
native rhq.agent.disable-native-system Enables the JNI libraries used by the agent. This enables the agent to discover and manage some types of resources using the system native libraries.
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat