Configuring the data collector in silent mode

If you want to configure many application server instances, it might be more convenient to configure the data collector in silent mode.

About this task

When you configure the data collector in silent mode, you first specify configuration options in a properties file. A sample properties file, sample_silent_config.txt, is packaged with the configuration utility. The file is available in the following directories, where dc_home is the directory where the data collector is installed. For the full path of the dc_home directory, see the introduction in Configuring the data collector for WebSphere® Applications agent.
  • Windowsdc_home\bin
  • Linux or AIXdc_home/bin

For detailed information about each available configuration property in this file, see Properties file for silent configuration of data collector.

Procedure

Complete the following steps to perform a silent configuration:

  1. Specify configuration options in the properties file. You can copy the sample properties file and change the required options.
  2. Set the location of the Java™ home directory before you run the utility.
    For example:
    • Windows
      set JAVA_HOME=C:\Program Files\IBM\WebSphere\AppServer80\java 
    • Linux or AIX
      export JAVA_HOME=/opt/IBM/AppServer80/java
    Important: If you are configuring monitoring for WebSphere Application Server Liberty, you must use same JVM version as the one used for the application server. Otherwise, the monitoring might fail.
  3. Go to the following directory:
    • Windowsdc_home\bin
    • Linux or AIXdc_home/bin
  4. Run the command to configure the data collector in silent mode.
    • WindowsRun the following command as the administrator who installed the WebSphere Application Server.
      config.bat -silent [dir_path]\silent file
    • Linux or AIXRun the following command with root user privileges.
      config.sh -silent [dir_path]/silent file
    Tip: If the wsadmin user was used to install the application server, run the config utility either as the wsadmin user or with root user privileges.
  5. After configuring the data collector to monitor application server instances, if you have enabled the data collector within the application server, you must restart the instances. The data collector configuration takes effect when the application server instances are restarted.
  6. If you have enabled PMI resource monitoring without enabling the data collector within the application server, you might need to restart the WebSphere Applications agent to start the monitoring. If monitoring data is not available immediately, restart the monitoring agent by running the following commands:
    • Windows
      cd install_dir\bin
      was-agent.bat stop
      was-agent.bat start
    • Linux or AIX
      cd install_dir/bin
      ./was-agent.sh stop
      ./was-agent.sh start

What to do next

After silent configuration, to reconfigure the data collector, you have two options: