Siebel Analytics Web Administration Guide > Administering Siebel Analytics Web > Using the Javahost Service in Siebel Analytics Web >

Javahost Service Command Line Options


When using the command line in UNIX and Windows, you can specify some command line options.

In UNIX, the command line for starting the Javahost service is:

run.sh [-h] [-service] [-SawConfigRoot configrootdir] [-DefaultCordaRoot configrootdir] [-Config instanceconfig]

In UNIX, the command line for stopping the Javahost service is:

shutdown.sh [-h] [-Config instanceconfig] [-SawConfigRoot configrootdir] [-Port port] [-Host host]

In Windows, the command line for starting the Javahost service in Console mode is:

sawjavahostsvc.exe [-regserver | -regserverauto | -unregserver | -h | -service -V ] [-SawConfigRoot configrootdir] [-DefaultCordaRoot configrootdir] [-Config instanceconfig]

Table 4 lists and describes the command line options.

Table 4. Javahost Service Command Line Options
Options
Operating Systems
Description

-regserver

Windows

Registers the Siebel Analytics Javahost service in manual startup mode.

-regserverauto

Windows

Registers the Siebel Analytics Javahost service in automatic startup mode.

-unregserver

Windows

Unregisters the Siebel Analytics Javahost service.

-service

UNIX, Windows

Executes Javahost in Service mode. On Windows, this parameter should never be used explicitly. Instead, use the control panel Services applet to start and stop the Siebel Analytics Javahost service.

-V

Windows

Displays the version.

-SawConfigRoot configrootdir

UNIX, Windows

Specifies the location of the config directory. The default location is
{SiebelAnalyticsData}/web/config.

-DefaultCordaRoot configrootdir

UNIX, Windows

Specifies the location of the Corda installation root directory. This parameter is considered by the Javahost service only if the configuration key JavaHost/Charts/CordaRoot is not set in instanceconfig.xml.

-Config instanceconfig

UNIX, Windows

Provides the path to instanceconfig.xml. The default path is
{SiebelAnalyticsData}/web/config/instanceconfig.xml

-Port port

UNIX

Identifies the Javahost listening port.

-Host hostname

UNIX

Identifies the computer running the Javahost service.

In UNIX, the shutdown.sh parameters serves one purpose, which is to pass connection information (host and port) so that a shutdown signal can be sent to the Javahost service. The following rules explain how these parameters interact:

  • If either the -Host or the -Port parameter is specified, then shutdown.sh ignores the -Config and the -SawConfigRoot parameters.
  • If -Host is specified and -Port is not, then shutdown.sh uses 9810 as the port number.
  • If the -Config parameter is set, then shutdown.sh ignores the -SawConfigRoot parameter and instead uses the instanceconfig.xml file to find the Javahost listening port. It expects that the Javahost service is running on the local computer (Host=localhost).
  • In the absence of all other parameters, shutdown.sh uses the -SawConfigRoot parameter to find the location of instanceconfig.xml file.
  • If no parameters are specified, then shutdown.sh uses Host=localhost and port=9810.
Siebel Analytics Web Administration Guide