velocity-config Command

Enables you to configure Watson Explorer Engine's embedded web server, including enabling whether the web server is started automatically as part of the velocity-startup command.

Velocity Config Command

velocity-config Enables you to configure the Watson Explorer Engine embedded web server, including enabling whether the web server is started automatically as part of the velocity-startup command.

Synopsis

velocity-config
    [-h|-help]
    [-installation-dir /path/to/engine/installation]
    [-quiet]
    [name=value]

Description

The velocity-config command is located in the bin subdirectory of a Watson Explorer Engine installation. This command enables you to display and set configuration information for Watson Explorer Engine's embedded web server by specifying name=value pairs on the command-line. This configuration information is stored in the file data/velocity-config.xml. This file will only exist if you have modified the configuration of the embedded web server. If the file does not exist, the default configuration values (listed later in this section) are used.

Executing the velocity-config command with no options displays the configuration options that are available for the embedded web server and their current values. The command and its output will look something like the following (which shows the default values for all of these options):

$ velocity-config
  global/admin-email                admin@localhost
  global/admin-url                  http://HOSTNAME-OR-IP/vivisimo/cgi-bin/admin
  global/api-url                    <unset>
  global/group                      <unset>
  global/password                   <unset>
  global/user                       <unset>
  HTTPauth                          password:
  HTTPauth                          user:
  webserver/base-url                /vivisimo/
  webserver/debug                   false
  webserver/host                    HOSTNAME-OR-IP
  webserver/is-enabled              false
  webserver/is-ssl-enabled          false
  webserver/port                    9080
  webserver/service-name            EngineWebServer
  webserver/ssl-certificate         <unset>
  webserver/ssl-certificate-key     <unset>
Note: On Microsoft Windows systems, the velocity-config command does not display the global/group option. On Linux systems, this command does not display the global/password and webserver/service-name options. See the description of these options later in this section for more information about their use and possible values.

As you can see from this example, the velocity-config command enables you to set two classes of configuration options: global values, which will affect the web server but which are intended to be used by other Watson Explorer Engine components, and webserver values, which only affect the configuration of the embedded web server. To set any of these values, specify the name of the option that you want to set and the value that you want to set it to, separated by an equals sign ('='). For example, to set the port that the webserver uses to port 10025, you would execute the command velocity-config webserver/port=10025. This command and its output would look like the following:

$ velocity-config webserver/port=10025
webserver/port  10025
Configuration saved...

The velocity-config command does not validate the values of any parameters that you set. For example, port numbers must be less than 65536, but are not checked when you set them.

Note: The global values that you can configure using the velocity-config command are currently only used by the Watson Explorer Engine embedded web server.

On Microsoft Windows systems, the velocity-config command has the .exe file extension.

Options

Configuration Items

The following list shows the configuration items for which values can be specified using the velocity-config command:

Important: If you are using Watson Explorer Engine's embedded web server, you must restart it after changing any of the configuration items supported by the velocity-config command.

Messages

See the Watson Explorer Engine Message Reference Manual for detailed information about any other messages that you may receive from the velocity-config command.

Exit Status

Exits with status 0 when the command is successful.

Note: On Linux systems, exit codes above 127 are returned by the shell. Please consult the documentation for the shell that you are using for more information.