MicroStrategy ONE

Executing a Script with Command Manager Runtime

Command Manager Runtime is distributed as a single executable file, cmdmgrlt.exe. By default, this file is installed in this directory:

Program Files (x86)\Common Files\MicroStrategy\

This file is automatically installed with any MicroStrategy installation, so you can use it to silently execute Command Manager scripts for your OEM application.

To execute a script with Command Manager Runtime, call the Command Manager Runtime executable, cmdmgrlt.exe, with the following parameters:

If the project source name, the input file, or an output file contain a space in the name or path, you must enclose the name in double quotes.

Effect Parameters

Connection (required)

 

Connect to a project source

If -p is omitted, Command Manager Runtime assumes a null password.

-n ProjectSourceName

-u UserName

-p Password

Script input (required)

 

Specify the script file to be executed

-f InputFile

Script output (optional; choose only one)

Log script results, error messages, and status messages to a single file

-o OutputFile

Log script results, error messages, and status messages to separate files, with these default file names:

CmdMgrResults.log

CmdMgrFail.log

CmdMgrSuccess.log

-break

Log script results, error messages, and status messages to separate files, with specified names

You can omit one or more of these parameters. For example, if you want to log only error messages, use only the -of parameter.

-or ResultsFile

-of FailFile

-os SuccessFile

Script output options (optional)

 

Begin each log file with a header containing information such as the version of Command Manager used

-h

Print instructions in each log file and on the console

-i

In case of an Intelligence Server error, print the Intelligence Server error code and the Command Manager exit code in each log file and on the console

-e

Display script output on the console

-showoutput

Execution options (optional)

 

Halt script execution on critical errors

-stoponerror

You can get the full list of parameters from a command prompt by typing cmdmgrlt.exe /? and pressing Enter.