External Scheduling Tool
Refresh Cycle tasks and Automation Tasks can be scheduled using external scheduling tools. You can do so by creating the task and selecting type External. After saving the task, the action menu will allow you to copy a command line to your clipboard. This command line includes a security token, which optionally can be modified so that it can be used in the scheduling tool.
To retrieve the command line for Refresh Cycles
Click Action.
Click Edit.
Select External to generate a new security token, or unselect External for the security token to become invalid.
Click Save.
Click Action >Copy to copy the command line with the new security token to your clipboard.
To retrieve the command line for Automation Tasks
Click .
Click Edit.
Select External to generate a new security token, or select Schedule or Event for the security token to become invalid.
Click Save.
Click .
Click Copy command to copy the command line with the new security token to your clipboard.
Example using PowerShell
Once you have retrieved the command line with the security token from the IT Management Console, you can configure any external scheduling to trigger it.
To set up the trigger
Open Microsoft PowerShell.
-
Create a basic invoke command:
Copy"Invoke-WebRequest -usebasicparsing -Uri https://{Server}:{Port}/tasks/9/triggers/10?token={Token} -Method POST"
where
Copy"https://{Server}:{Port}/tasks/9/triggers/10?token={Token}"
is the command line that you retrieved from the IT Management Console.
Save this PowerShell script and use a scheduling tool to have it run automatically at your desired times and frequencies.
A task that has been triggered will become visible in the IT Management Console under Models > [Model name] > Refresh Cycle. You can click the info button in the Refresh cycle history to access additional information, just like for a non-external task.
Renewing the Security Token
In case you need to reset the security token of a task, proceed as follows:
To reset the security token of a task
Change the type from External to another type.
Click Save.
Now change the type back to External.
A new security token is created.