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 a task 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 offline. An offline event source does not receive any event. You can use the setonline command to set an offline event source back online.
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.
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