| || |
Define IT WorkflowIT Workflows are if-else condition based workflows that manage applications, services, registry etc. It automates your repeated tasks such as upgrading IE7 to IE8, changing values in registry, etc. The IT Workflow supports nested-if option which helps you create a condition with another condition. This helps you create workflows for complicated activities.
Steps to create an IT Workflow
You have successfully added the workflow.
- Go to IT Workflow-> New IT Workflow.
(click on the image to enlarge)
- Click on Untitled Workflow to enter its name. Click on Add Description link to add a brief description for the workflow.
- Select the appropriate condition.
- No condition, just execute - Doesn't verifies anything. Executes the actions you have configured.
- Check Application is running - Checks whether the specified application is running and executes the actions that have been configured for success and/or failure.
- Check Service is running - Checks whether the specified service is running and executes the actions accordingly.
- Check Registry Value - Checks for a registry value and executes the actions accordingly.
- Check Registry Key Exists - Checks the existence of a registry key and executes the actions accordingly.
- Test File - Verifies a file for age, content, size and modified date, and executes the actions accordingly.
- Select the set of actions that you want to make.
- Execute Command - Execute a command, execute or pause a script
- File Management - Copy, delete, get, move, or put a file
- Folder Management - Copy, delete, or move a folder (including its sub-folders and files)
- Notifications - Create alarm, log a ticket, display a pop-up message, or send a mail
- Registry Management - Delete registry Key or delete/get/set a registry value
- Service Management - Start, stop, pause, or resume a service
- System Management - Kill a process, log off, power off, reboot or shutdown a computer
- Click Save.
Once you have added a workflow you can:
Example: IE7 to IE8 upgrade
You have successfully created a workflow for upgrading IE7 to IE8. Now proceed to executing or scheduling this workflow.
- Open a new workflow editor.
- Select the Check Registry Value condition.
- Enter the Header Key, Sub Key, Data Type, Value Name of Internet Explorer from the registry.
- Select the Comparator as '!=' (not equal to) and enter the Value Data / Expression as 8. This is to check whether the version of IE browser on the end computers is 8 or not.
- Click OK.
- Click on File Management and select Put File action.
- Select the condition as SUCCESS. [Earlier we have selected the condition as 'not equal to version 8'. If the condition is success, i.e., if IE version is not 8, executes the PUT FILE action]
- Upload the IE8 exe from your machine by selecting From Local Machine check box. Browse the file and click upload.
- Enter the destination directory and click OK. [This will put the ie8.exe on the end computers]
- To execute this exe on the end computers, include Execute Command action in the workflow. Click Execute Command action.
- Select the Put File check box to execute this action once the put file action is done.
- Enter the command to execute the exe with its full path in the Command field.
- To save the result, select the file check box and enter the File Name along with its extension.
- Configure a Timeout interval for this action and click OK.
- Click Save.
MSP Center provides an XML editor for the workflow. If you are familiar with XML editor you can use it. Following is the screenshot of the above workflow in XML editor
Executing IT Workflow
The workflow will be executed immediately.
- In the Workflow page all the Workflows are listed.
- Click on the execute icon corresponding to the workflow that you want to execute immediately.
- Select the Customer to filter the devices.
- Select the devices and move to the right box.
- Click Finish.
Steps to define IT Workflow (for builds up to 8103)
- Go to PC Management-> IT Workflow-> Add IT Workflow.
- Select the Customer on the top left corner. IT Workflows are customer specific. Select the customer to view his/her IT Workflows.
- Enter a unique Name and a brief Description.
- Select the Condition.
- No condition, just execute: Check nothing, just execute the set of actions defined.
- Check Application is Running: Check whether an application (eg. ntrtscan.exe) is running. If the application is running, then a set of actions are defined. If it is not running, then another set of actions are defined.
- Check Service is Running: Check whether a service (eg. DHCP) is running. If the service is running, then a set of actions are defined. If it is not running, then another set of actions are defined.
- Check Registry Key Exists: Checks whether the specified Registy Key exists. If it is available, then a set of actions are defined. If not, then another set of actions are defined.
- Test File: Checks a particular file for Age, Content, Availability, Size and Modified Date and Time. If the set condition is satisfied, then a set of actions are configured. If the set condition is failed, then another set of actions are configured.
- Define the Actions for both Condition Success and Failure.
- Click on the Click here to Add Actions link.
- Select the required action from the Action drop down menu and configure the other related fields.
- Click on Add icon to add another action.
- Select the Ignore Failure check box, if failure of the first action is independent of the second. If the first one is dependent on the second, then leave the Ignore Failure check box as it is (de-selected).
- Define the Target.
- Click Deploy to immediately execute the condition and actions. Click Save as Draft to save the done configurations and execute later when required.
Example to understand IT Workflow better - Upgrade IE 7 to IE 8
(Click on the image to enlarge)
Refer Public IT Workflow [Systems Management-> IT Workflows-> Public Workflows] page to view the other examples.
| || |