The Job is a defined executable action, which can be either OS command or SQL script. It can perform any useful task, such as a database server backup, UPDATE STATISTICS operation or collection of OS environment information when database server performance degrades below a specified threshold level. You can easily define most of your standard existing server administration scripts as Server Studio JE jobs in order to get the following advantages:
And best of all, in order to get all these advantages, a minimum effort is required to define a job. This includes entering logical job name, specifying an existing script host and location and defining failure or success text pattern string.
The Sentinel server executes a job when:
The job can be defined to be executed against any host workstation that Sentinel server can communicate with via Telnet, SSH or JDBC protocol, but in majority of cases you will define jobs to be executed against the same host where your database server resides so that you could automate database maintenance tasks for that database server.
The Sentinel server executes job in the background, thus there is no need to keep SSJE UI opened when a long job is started. For example, you can start 3 hours backup job from the SSJE UI, make sure that the execution is started, and then close the SSJE application and logout from your workstation. Next morning you can start the SSJE UI and check on the status of the job as well as to see the text output produced by the job during an execution. If the job execution fails or is cancelled by user, the alert event is generated. You can view job failure alert events using the Alert Viewer. The entire jobs execution history can be reviewed in the Job History tab of the Job Properties panel.
While a job is being executed, you can see the text output produced by the job in real-time, using the Last Execution tab in the Job Properties panel. This is useful when executing long running OS commands that might produce some progress messages, such as Informix ONTAPE utility, and you want to monitor the job progress. You can also close the SSJE UI, reopen it at any time and continue monitoring the job execution progress. For an SQL job, the output is produced only ones, after the entire SQL script execution is completed.
See Also: