setonline and setoffline
You can use one of these commands to make a workstation available or unavailable for tasks to run, or to set an event source online or offline.
Overview
You can use the setoffline command when you plan not to run tasks on
specific workstations. You can use the setonline command to bring
back the same workstation online.
You can also use the setoffline command to set an event source or an
endpoint offline. An offline event source does not receive any events, and an
offline endpoint prevents the submission of tasks
referencing it. You can use the setonline command to restore an
event source or endpoint back to service.
The required security access depends on the action you are performing and the item you are modifying:
- To set a workstation, event source, or endpoint online, you must have LINK access to that specific item.
- To set a workstation, event source, or endpoint offline, you must have UNLINK access to that specific item.
Syntax and command line options
- Workstation
-
You can enter the command as follows. To make a workstation available to run the tasks, use the following command:
ocli plan setonline| seton workstationRun the following command to set a workstation unavailable:ocli plan setoffline| setoff workstationYou must also specify the workstation name. After the command runs, the tasks on the offline workstation are displayed as
READYand run after the workstation is available.
- Event source
-
You can enter the command as follows. To make an event source able to receive events, use the following command:
ocli plan setonline| seton eso eventsourceRun the following command to set a workstation unavailable:ocli plan setoffline| setoff eso eventsourceYou must also specify the event source name. After the commands run, the event source status and actual status are displayed.
- Endpoint
-
You can use the
setofflinecommand to manually take an endpoint out of service:
When an endpoint is set to Offline, the Orchestrator prevents the submission of any tasks that reference that endpoint. Tasks remain in theocli plan setoffline endpoint ENDPOINT_NAMEREADY: waiting for endpointstate.You can use thesetonlinecommand to restore the endpoint to service:
If monitoring is enabled, the system resumes connectivity checks.ocli plan setonline endpoint ENDPOINT_NAME
Examples
- Workstation
-
- Run the following command to make the
WS_AGT_0workstation available:ocli plan setonline /WS_AGT_0 - Run the following command to make the
WS_AGT_0workstation unavailable:ocli plan setoffline /WS_AGT_0
- Run the following command to make the
- Event source
-
- Run the following command to make the
MY_SOURCEevent source able to receive events:ocli plan setonline eso /MY_SOURCE - Run the following command to make the
MY_SOURCEworkstation unable to receive events:ocli plan setoffline eso /MY_SOURCE
- Run the following command to make the