This topic provides information about creating a process task.
You can use a process task to run a command-line program on a managed system.
A process task can be run immediately, scheduled to run at a specific time,
or scheduled to run at regular intervals.
Note: Remember that anything a system-account user can do from a
command line can be done to the system, regardless of the user who is logged
in to the managed system.
Complete the following steps:
- In the IBM Director Console Tasks
pane, expand the Process Management task.
- Double-click the Process Tasks subtask.
- In the Process Task window, specify information about the command-line
operation:
- In the Command field, type the fully qualified file name
and command syntax. Consider the following information:
- For managed systems running i5/OS™, the command is run in the QShell
environment.
- For managed systems running Windows®, preface the command with the
following string to ensure that it runs in a Windows command-shell window:
cmd /c
- Select the Log check box if the command produces text-based
output, for example, a directory listing; then type a timeout value, in seconds.
Make sure that the timeout value is long enough.
- (Optional) If you want to run the process using an alternate
user account and override the default user ID, you can specify a user ID and
password in the Login group box.
Note: (Managed systems running i5/OS only) Commands cannot be performed
using the default user ID that is shipped with IBM Director.
For a process task to run successfully to i5/OS systems, the process task must specify
a valid user ID and password, or the managed system to which it is being run
must be configured to specify a user that has the authority to run the process
task. You can register that user in the IBM Director Agent default
user function ID on the managed system using Application Administration
in iSeries™ Navigator.
Note: You
either must specify an alternate user ID, or remove the default user ID from
the registered function and add a new default user ID that has the required
authority to perform the command.
- Click to save the process task.
- In the Save As window, type a name.
Note: The name for
a process task should include the following information:
- Type of process task that is to be run
- Name of the process task that is to be run
- Types of managed systems with which the process task will work correctly
- Click OK. The new process task is displayed under Process
Tasks in IBM Director Console.