Command Line Utility

Updated: November 19, 2010

Applies To: Opalis 6.3

Opalis Integration Server enables you to run policies from a command line. You can install the Command Line Utility on any computer in your network that can access the Management Server computer.

Policies that you run from the Command Line Utility must begin with a Custom Start object. If you need to submit parameters from the Command Line Utility to the policy, you must configure those parameters in the policy before you run it from the Command Line Utility.

To run a policy from the Command Line Utility

  1. Type the path where the executable is stored:

    System Drive :\Program Files\ Opalis Software \Opalis Integration Server\Management Service

    where System Drive is the drive letter where Opalis Integration Server was installed.

  2. Type the following at the command prompt according to the following syntax example:

    The name of the Command Line Utility executable, OIS5StartPolicy

    The name of the folder that contains the policy, if required

    The name of the policy (if you are not using the /id flag)

    The name of the Management Server, if the computer that hosts the Management Server is different from where you have installed the Command Line Utility

    The parameters that you are submitting to the policy

    Any flags that you want to run as part of the command

Syntax example:

OIS5StartPolicy PolicyFolder\PolicyName /ms:ManagementServerNameorIPaddress "parameter1=value1" "parameter2=value2" /wait

Backslashes in File Names

If your folder or policy name includes a backslash, use a double backslash in the Command Line Utility. For example, if the folder and policy name in the example above used backslashes, it would look like the following:

OIS5StartPolicy Policy\\Folder\Policy\\Name /ms:ManagementServerNameorIPaddress " parameter1=value1" "parameter2=value2" /wait 


Use any of the following flags in your command:




Additional Information

/id - specify the policy that you want to run using its GUID.

OIS5StartPolicy {guidtext} /id

Do not use the policy folder or policy name in the command when using this flag.

/search - list GUIDs for all policies, or all policies in a folder that you specify.

OIS5StartPolicy “the search string” /search - use quotes for strings that contain spaces

OIS5StartPolicy searchstring /search - quotes are not required if the string does not contain spaces

OIS5StartPolicy “policyfolder\policyname” /search - search for a policy within the named folder

This flag returns the name of policies, their GUIDs, and folder names that match the search string that you provide. It is not case-sensitive. You can provide partial strings to search for policies that contain the string that you provide. If there is a space in your string, enclose the string in quotes to treat the entire string as a single argument.

/q - make GUIDs available to other objects as Published Data items or as content in a text file. Use after the /search flag to search for and execute all policies in a folder.

OIS5StartPolicy PolicyFolder /search /q - call the results of this command from the Pure Output Published Data item generated by the Run Program object.

OIS5StartPolicy “folder\policy” /search /q > C:\filename.txt - put the results of this command into a text file called C:\filename.txt, and then use the Read Line object to parse the text in that file

/wait - the Command Line Utility remains active until the policy has finished executing.

OIS5StartPolicy PolicyFolder\PolicyName /wait

If you are using other software to launch the Command Line Utility, you can configure the other software to wait until the Command Line Utility is no longer active before proceeding with the next job.

/? - view a syntax example in the command prompt.

OIS5StartPolicy /?

Submitting parameter values to the Custom Start object

To submit values into the Custom Start object of the policy that you are launching, type the name of the parameter as configured in the Custom Start object, the equals sign, and the value that you are assigning to that parameter.


Start Policy1 in the MyPolicies folder on the local Management Server:

OIS5StartPolicy MyPolicies\Policy1

Submit a parameter to the policy in example 1 above:

OIS5StartPolicy MyPolicies\Policy1 "parameter1=Hello"

Run Policy1 on another Management Server and submit a parameter:

OIS5StartPolicy MyPolicies\Policy1 /ms:server1 "parameter=Hello"

Run Policy1 on another Management Server, submit a parameter, and instruct the Command Line Utility to remain active until the policy has finished running:

OIS5StartPolicy MyPolicies\Policy1 /ms:server1 "parameter=Hello" /wait