In order to provide a more consistent experience with the System Center product family, we've moved the Orchestrator blog to another blog at http://blogs.technet.com/b/orchestrator. Be sure to go there for all the latest info!
Note: The workflow sample mentioned in this article can be downloaded from the Opalis project on CodePlex: http://opalis.codeplex.com
The Opalis Quick Integration Kit Command Line Interface Wizard (QIK CLI Wizard) enables you to encapsulate commands, arguments, and parameters based on various configurations. Essentially, you describe how to run Windows programs, Windows commands, SSH commands or PowerShell. Then you describe the outputs that this command would produce. Once all the desired commands have been described, the QIK CLI Wizard produces a Microsoft .Net 2.0 Framework assembly that can be packaged into an Opalis Integration Pack.
The QIK CLI Wizard provides a very rapid way for you to build your own Integration Packs based on CLI tools from a variety of sources including custom scripts, scripts from vendor tools and scripts that interact with custom applications.
After QIK has been installed, the CLI Wizard can be found on the Start as shown below:
First, you must provide details about the .Net assembly that is about to be created:
1. Open the Opalis Quick Integration Kit Command Line Interface Wizard (QIK CLI).
2. On the Welcome Screen, click Next. The Assembly Details Screen will appear.
3. In the Name field, Type the Name of the Assembly being Created.
4. In the Assembly file field, Type the Path where the Assembly being created will be Saved, or click the ellipsis button (...) and Browse for the location.
5. In the License Key field, Type or Paste the License Key that the Custom Integration Pack being created from the .NET Assembly will require to Run (this step is optional).
6. To provide Details about the Assembly being created, click Assembly information…. The Assembly Information Screen will appear. The information provided here will appear in the file properties of the DLL assembly that will be created (this step is optional).
7. Click OK.
8. Assembly Details Complete, proceed to Adding Commands.
QIK CLI Wizard: Step 1: Welcome
QIK CLI Wizard: Step 2a: Assembly Details
QIK CLI Wizard: Step 2b: Extended Assembly Information
Adding Commands
1. If still on the Assembly Detail Screen, Click Next.
2. The Commands Screen will appear.
3. Click Add.
4. The Add/Edit Command Screen will appear.
5. In the Name field, Type a Name for the Command being Added.
6. From the Mode drop-down list, Select the mode that the Command will Execute. The Mode determines the style of command line script that will be used. Available Modes include:
7. The Program field becomes active only if Mode = Run Program. Click the ellipsis button (...) and Browse for the Program that will executed.
8. In the Description field, Type a Description for the command.
9. Adding Commands Complete, proceed to Adding Arguments and Parameters.
QIK CLI Wizard: Step 3a: Add Commands
QIK CLI Wizard: Step 3b: Configure Command Information
1. Click on the Arguments Tab.
2. In the Command Line field, type the Arguments required for the Command, or click Insert and select them (if already configured).
3. To provide Parameters for an Argument, click Add.
4. The Add/Edit Parameter Screen will appear.
5. In the Name field, Type a Name for the Parameter being added.
6. From the Usage Mode drop-down list, Select the Mode for the Parameter. Available Modes are:
7. From the Display Style drop-down list, Select the Style the Parameter will be Displayed. The Display Style determines how the user will interact with the input when it is presented. Available Styles are:
8. If the Parameter requires a Default value, Type it in the Default Value field.
9. To add Options to the Parameter, click the ellipsis button (…) beside the Options field and configure them.
10. Click OK.
11. The Add/Edit Command Screen Arguments Tab will appear.
12. Repeat steps 4 - 10 for each new Parameter.
13. Adding Arguments and Parameters Complete, proceed to Creating Published Data.
QIK CLI Wizard: Step 4a: Add Argument and Parameter Information
QIK CLI Wizard: Step 4b: Configure Parameter Information
Creating Published Data
1. Click the Published Data Tab.
2. Click Add.
• Mode = Run Command OR Run Program OR Run SSH Command:
• Standard Out Stream
• Standard Error Stream
• Match Pattern - Used to determine if a given RegEx Pattern is found within the Source; this will return True or False.
• Extract Group - Used to retrieve each item of data that matches the RegEx Pattern specified.
• Mode = Run Windows PowerShell:
3. Click OK.
4. The Add/Edit Command Screen Published Data Tab will appear.
5. Repeat steps 2 - 3 for each new Published Data.
6. Click OK.
7. The Commands Screen will appear.
8. Creating Published Data Complete, proceed to Creating the Assembly.
QIK CLI Wizard: Step 5a: Add Published Data Information
QIK CLI Wizard: Step 5b: Configure Published Data Information
1. If still on the Commands Screen, Click Next.
2. The Quick Integration Kit Command Line Interface Wizard creates the Assembly.
3. The Wizard Completed Successfully Screen will appear.
4. To Convert the .NET Assembly into a Custom Integration Pack, click Build Integration Pack and follow the instructions in QIK Wizard Section above.
5. Click Finish.
6. Creating the Assembly Complete, proceed to Testing the Assembly.
QIK CLI Wizard: Step 6a: Create the .NET Assembly
QIK CLI Wizard: Step 6b: .NET Assembly Complete
Testing an Assembly
1. Open the Opalis Integration Server Client.
2. Create a new Policy.
3. Add an Invoke .NET object.
4. Configure the Invoke .NET : Class Information Tab:
5. Configure the Invoke .NET : Properties Tab:
6. Use the Opalis Test Console to Test the Invoke .NET object with the newly created Class Specified and Configured.
7. Verify the Command Executed correctly and all associated Published Data gets generated.
8. Right-click the Policy Tab, select Properties, then the Logging Tab. Enable both checkboxes: Store Object-specific Published Data and Store Common Published Data.
9. Click the Check-in button.
10. Click the Start button to start the Policy.
11. Verify the results of the Policy; In the Opalis Integration Server Client, view the Log and Log History Tabs at the bottom.
12. Repeat steps 1 to 12 for each class in need of testing.
13. Testing the Assembly Complete, proceed to QIK Wizard Section above to Convert the .NET Assembly into a Custom Integration Pack.
2. On the Welcome Screen, click Load from QIK CLI Assembly.
3. The Windows Open Dialog will appear.
4. Browse for the Assembly file to be Edited.
5. Click Open.
6. The Assembly Details Screen will appear; the fields are populated with the information previously configured the Assembly was created.
7. Make the Changes to the Information in the QIK CLI Wizard.
8. Click Next on each Screen to Move to the Next Screen until the QIK CLI Wizard has Reassembled the .NET Assembly for the Command specified.
9. Click Finish.
10. The QIK CLI Wizard created the new Assembly according to the Information provided on the QIK CLI Wizard Screens. If the Name or Path of the Original Assembly was Not Changed, the Original Assembly will be QIK CLI Wizard by the New Assembly file.
11. Editing the Assembly Complete, proceed to Testing the Assembly.
12. To Convert the .NET Assembly into a Custom Integration Pack, follow the instructions in QIK Wizard Section above.
QIK CLI Wizard: Load an existing QIK CLI .NET Assembly
QIK CLI Wizard: Edit an existing QIK CLI .NET Assembly
QIK CLI Wizard: .NET Reassembly Complete
These files are located on the computer where the QIK is installed.
• Java Developer's Guide
– C:\Program Files\Opalis Software\Quick Integration Kit 3\Docs\Java\Index.html
• Microsoft.NET Developer’s Guide
– C:\Program Files\Opalis Software\Quick Integration Kit 3\Docs\C#\Index.html
• QIK Wizard Help
– C:\Program Files\Opalis Software\Quick Integration Kit 3\Docs\Help\OISIP024.chm
• QIK CLI Help
– C:\Program Files\Opalis Software\Quick Integration Kit 3\Docs\Help\OISIP035.chm
• Java Examples
– C:\Program Files\Opalis Software\Quick Integration Kit 3\Examples\Java\
• Microsoft.NET Examples (C#)
– C:\Program Files\Opalis Software\Quick Integration Kit 3\Examples\C#\