Running Commands
The Run Command tab in Notification Manager configures a command that OpCon runs on the OpCon server when a notification trigger fires. This notification type is available on Windows only; it is disabled on Linux installations. Notifications defined before release 20.0.0 will be disabled.
Run Command tab fields
| Field | Required | Description | Limit |
|---|---|---|---|
| Command | Yes | Full path and file name of the program to run on the OpCon server. | 4,000 characters |
| Working Directory | No | Working directory used by the program during running. | 255 characters |
| Batch User | Yes | Windows batch user with permission to run the program. The list is filtered to Windows batch users defined in OpCon. | — |
Configure a Run Command notification
To configure a Run Command notification for a trigger, complete the following steps:
- Go to Notification Manager under the Management topic.
- Select the Machines, Schedules, or Jobs tab in the Notification Triggers frame.
- Select the arrow to expand the group containing the trigger you want.
- Select the trigger.
- Select the Run Command option in the notification type list.
- Select the Run Command tab.
- Enter the full path and file name of the program in the Command field.
- (Optional) Enter the working directory in the Working Directory field.
- Select a Windows batch user from the Batch User field.
- Select Save.
Result: OpCon saves the Run Command notification. When the trigger fires, the SMA Notify Handler runs the specified command under the selected batch user account.