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 ClearSCADA is 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 a Logic program is 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 ClearSCADA is to trigger a system command in response to a user request, either:
- Associate the relevant object on a Mimic with a System Command pick action.
Configure a System Command pick action, rather than a System Command database item (see below), if you want to be able to:
- Associate the pick action with any object on a Mimic, rather than specifically with a System Command object.
- Specify the permission that users have to be allocated, in order for them to be able to trigger such a command. (With a system command that triggers a high-level operation, for instance, you might allocate the Mimic on which the pick action is located with the ‘System Admin’ permission. This would result in the System Command pick action only being made available to users that have been allocated the ‘System Admin’ permission for that Mimic.)
For information, see Creating a System Command Pick Action in the ClearSCADA Guide to Mimics.
- Add a System Command item to the database, and then use that item’s Execute pick action to trigger the command.
Configure a System Command database item, rather than a System Command pick action, if users need to be able to execute the command from the Database Bar, or from a Queries List, in addition to any Mimic(s) on which the System Command database item is included. (Unlike the System Command pick action, the System Command database item’s Execute pick action is not restricted by permission.)
For more information on the System Command database item, see Add a System Command, and see Execute a System Command.
- Associate the relevant object on a Mimic with a System Command pick action.
NOTE: 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.