Overview of the IAS Server Command-line Utility

The IAS Server Command-line Utility creates, runs, and manages crawls.

The IAS Server Command-line Utility is a script named ias-cmd.sh (for Linux/UNIX systems) and ias-cmd.bat (for Windows) that you run from a command prompt. The scripts are in the bin directory.

Help options

The IAS Server Command-line Utility has two help options that display the usage syntax. The --help option displays a summary of the tasks. The --help-detail option displays detailed usage information for all the tasks. For example:
C:Oracle\Endeca\IAS\3.0.0\bin>ias-cmd.bat --help
usage: ias-cmd <task-name> [options]
[Inspecting Installed Modules]
  getAllModuleSpecs
  getModuleSpec
  listModules
[Managing Crawls]
  createCrawls
  deleteCrawl
  getAllCrawls
  getCrawl
  getCrawlIncrementalSupport
  listCrawls
  startCrawl
  stopCrawl
  updateCrawls
[Viewing Crawl Status and Results]
  getAllCrawlMetrics
  getCrawlMetrics
  getCrawlStatus
  
For detailed usage information including task options, use --help-detail
For detailed usage information for individual task options, use <task-name>
--help

Command-line options

The command syntax for executing the tasks is:
ias-cmd task-name [options]

The task-name argument is the task to be performed by the utility, such as the createCrawls task. The task options vary, depending on the task. However, these options can be used with any task:

Host and port settings

You first specify the host and port settings for the Endeca IAS Service as part of the installation wizard. That host runs the IAS Server, the Component Instance Manager, and all Record Store instances. The installation wizard then writes the host (com.endeca.eidi.ias.server.host) and port (com.endeca.eidi.ias.server.port) settings as properties in commandline.properties. All of the IAS command-line utilities use these settings as default values if you omit the -h and -p flags when executing any tasks.

Setting the bin directory in the PATH environment variable

Although not required, it is recommended that you set the path of the bin directory in your system's PATH environment variable. This allows you to run the IAS Server Command-line Utility script from any location.

About error handling

  • If desired, you can re-configure the default logging settings in <install path>\IAS\workspace\conf\ias-cmd.log4j.properties.
  • Errors print to standard error, unless you redirect stderr to a file instead.
  • Errors of mis-configured command-line tasks or incorrect input parameters are written to standard out.