UNIX Jobs
UNIX Jobs define UNIX operating system processing steps to be carried out in a target system.
To Define UNIX Job Properties
In the Start Parameters section, define how the Automic Automation for AIOps Job should start the job on the UNIX target system.
-
Job Type
Select how the UNIX commands are executed:
- Shell Script - Select this option to:
- Generate a job.
- Transfer it to the target system.
Execute it in the shell script.
The UNIX JCL script from the Process page is also executed.
Note: If you select this option, the JCL contained in the Process page is transferred to the UNIX agent and executed.
- Command - If you select his option the Command field is also displayed, where you can enter a command or command sequence that is passed to the UNIX command line.
The selected shell is called and executes the commands.
You can combine several commands separated by semicolons.
Note: If you select this option, no job is generated/transferred to the target system. The JCL contained in the Process page is ignored; the statements made in the agents are processed instead.
- Shell Script - Select this option to:
-
Shell
Select the UNIX shell, under which the job runs.
If you do not select a shell, the default shell from the password file is applied.
Shells are listed with and without leading - characters. The shells with - characters are login shells. A login shell is one whose first character of argument zero is a -, or one started with the --login option.
See for instance: http://linux.die.net/man/1/bash.
Your administrator maintains the available shells in the UC_SHELL_UNIX variable, see UC_SHELL_UNIX - Defining UNIX Shells.
-
Shell Options
You can specify further shell options. The syntax depends on the selected shell.
In the Job Report section, specify when to generate the reports and where to store them.
-
Define where to store the report. You have two options. You can select one or both simultaneously:
-
Store to: Database means that when the Job has been executed, the process log available on the target system (on the Agent) is stored in the database.
When a Job has been executed on an Agent, the corresponding report is stored on the Agent computer. After the Automation Engine has written this data to the database, the report is automatically deleted from the Agent computer. If it cannot be deleted due to an error, the deletion process is not repeated and an error message is displayed.
- Store to: File means that the process log is stored as a file on the target system (Agent).
-
-
Define when to generate the report
You have two options:
-
Generate: Always means that the process log of the operating system is always written.
-
Generate: On error only means that the process log is written only when an error occurs. Example, when the job is canceled or aborted.
-
-
Save your changes
See also: