Decide When ClearSCADA is to Execute a System Command
ClearSCADA can trigger a system command under various circumstances. You need to decide when ClearSCADA is to execute each system command, in order to determine the type of configuration that you need to undertake:
- If you want ClearSCADA to trigger a system command automatically in response to a particular alarm situation, configure a System Command Action. A System Command Action is an alarm redirection action. For more information on configuring this type of action, see System Command Action in the ClearSCADA Guide to Alarm Redirection.
- If you want a Logic program to trigger a system command automatically, include the SYSTEM function in the relevant Logic program. For more information, see Misc in the ClearSCADA Guide to Logic.
- If you want ClearSCADA to execute a system command on a ViewX or WebX client, use a System Command pick action on a mimic object. For example, you could use a System Command pick action to display a PDF document. ClearSCADA will execute the command on the client. Therefore, the application file or batch file executed as a result must be on the client and can be interactive.
For more information, see Creating a System Command Pick Action in the ClearSCADA Guide to Mimics.
- If you want to execute a System Command on the ClearSCADA server in response to a user request, add a System Command item to the database. Users can then use the item’s Execute pick action to trigger the command.
You can also trigger the command from a schedule, method call and so on. ClearSCADA will execute the command on the main server. Therefore, the application file or batch file executed as a result must be on the main server and cannot be interactive.
For more information on the System Command database item, see Add a System Command, and see Execute a System Command.
In addition to the above, ClearSCADA is supplied with a built-in command line tool, to enable third-party applications to run ClearSCADA commands from the Windows® command prompt. For more information, see Server Command Line Tool in the ClearSCADA Guide to Server Administration.