KBEC-00386 - Confirming your ElectricFlow server addresses

Summary

This article will describe how to use the check_server.sh script to check that your server names are configured correctly.

Solution

  1. Download the attached file check_server.sh
  2. Open a terminal
  3. Log in to ElectricFlow using ectool
    • ectool login <username> <password>
  4. Run the following command
    • sudo bash <path_to_file>/check_server.sh
  5. Your server settings will output in the following format:
    EF Server
    ==========================================

    Config: $efServer
    Settings: $ipAddress

    Apache
    ==========================================
    Config: $apacheServer

    Repo
    ==========================================
    Config: $repoServer
    URL: $repoUrl

    If any of these values are incorrect, you may change them with the following steps.

EF Server (Config)

  1. Open your commander.properties file in a text editor.
    • <data_dir>/conf/commander.properties
  2. Find the line
    • COMMANDER_SERVER_NAME=<server_name>
  3. Change the <server_name> field to the correct server name.
  4. Save the commander.properties file.

EF Server (Settings – Using ectool)

  1. Run the following command
    • ectool setProperty /server/settings/ipAddress <newIPAddress>

EF Server (Settings – Using Web UI)

  1. Open the commander homepage
  2. Navigate to Administration > Server > Settings
  3. Change the field “Server IP address” to your server address
  4. Click “OK” to save

Apache (Config)

  1. Open your httpd.conf file in a text editor
    • <data_dir>/apache/conf/httpd.conf
  2. Find the line
    • SetEnv COMMANDER_SERVER "<server_name>"
  3. Change the "<server_name>" field to the correct server name.
  4. Save the httpd.conf file.

Repo (Config)

  1. Open your server.properties file in a text editor
    • <data_dir>/conf/repository/server.properties
  2. Find the line
    • COMMANDER_HOST=<server_name>
  3. Change the field <server_name> to the correct server name
  4. Save the server.properties file

Repo (Settings – Using ectool)

  1. Run the following command
    • ectool setProperty /repositories/default/url <newUrl>

Repo (Settings – Using Web UI)

  1. Open the commander homepage
  2. Navigate to Artifacts > Repositories > Repository Name > default
  3. Change the field URL to the updated URL
  4. Click “OK” to save

You can view your updated server name settings by running check_server.sh.

Have more questions? Submit a request

Comments

Powered by Zendesk