MicroStrategy ONE

Command line syntax

The command line options for executing Command Manager scripts using the command line are included in the following table. A full list of parameters can also be accessed from a command prompt by entering cmdmgr.exe -help.

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

Effect

Parameters

Connection (required; choose only one)

 

Connect to a project source

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

-nProjectSourceName

-uUserName

[-pPassword]

Initiate a connection-less project source session

-connlessMSTR

Connect to a Narrowcast Server

If -p or -s are omitted, Command Manager assumes a null password or system prefix.

-wODBC_DSN

-uUserName

[-pPassword]

-dDatabase

[-sSystemPrefix]

Initiate a connection-less Narrowcast Server session

If -s is omitted, Command Manager assumes a null system prefix.

-connlessNCS

[-dDatabase]

[-sSystemPrefix]

Script input (required)

 

Specify the script file to be executed

If this parameter is omitted, the Command Manager GUI is launched.

-fInputFile

Script output (optional; choose only one)

 

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

-oOutputFile

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

  • 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 only want to log error messages, use only the -of parameter.

-orResultsFile

-ofFailFile

-osSuccessFile

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

This option is ignored if the script is encrypted.

-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

Save the results of script instructions in an XML file

-xml XMLFile

Save the results of script instructions in a CSV file

-csv CSVFile

Omit hidden objects in the script results. Hidden objects are MicroStrategy metadata objects whose HIDDEN property is set.

-suppresshidden

Execution options (optional)

 

Halt script execution on critical execution errors

-stoponerror

Related Topics

Executing a script from the command line

Command line exit codes