Submit jobs to manage files
In a flexible management environment, we can submit jobs to collect files from managed targets and copy them to the job manager, to distribute files to managed targets, and to remove files from managed targets.
Before submitting a job, start the job manager and the targets. If a target is a stand-alone application server, also start the administrative agent.
Your ID at the job manager must be authorized for the administrator role or the operator role to submit jobs. When submitting a job, we can specify a user name and password for authentication and authorization at the target or targets. When submitting a job to multiple targets, the user name and password or the credentials for the submitter must be applicable to all of the job targets.
We must distribute files to managed targets before we can submit jobs that use the files. For example, we must distribute an enterprise application before we can install or update the application on managed application server targets. Similarly, we must distribute a properties file to managed application server targets before we can apply the file to configure the application servers. We also must distribute a wsadmin script file before submitting a job that run the script.
The topics in this section describe how to administer files by running jobs in the job manager console or the deployment manager console. Instead of using a console, we can run wsadmin commands in the AdministrativeJobs command group. See the Administrative job types topic.
Tasks
- Run the Collect file job to copy either a single file or a directory of files from managed targets to the job manager.
- Run the Distribute file job to copy a single file to managed targets.
- Run the Remove file job to delete a file or directory of files from managed targets.
The collect file job copies a file or directory into the job_manager_profile/config/temp/JobManager/jobToken/targetName directory.
The distribute file job copies a file into the downloadedContent directory of the administrative agent or deployment manager profile.
The Remove file job deletes a file from the downloadedContent directory.
What to do next
On the Job status page, click the ID of the job and view the job status. If the job is not successful, view any error messages that result from running the job, correct the error condition, and submit the job again.
Subtopics
- Collecting files for the job manager
We can submit the Collect file job to copy a single file or a directory of files from managed targets, which can be hosts or nodes, to the job manager. We might collect files before submitting jobs that use the files. For example, we might collect and then distribute an enterprise application before we install or update the application on managed application server targets. Similarly, we might collect and then distribute a properties file to managed application server targets before applying the file to configure the application servers.- Distributing files from the job manager to targets
We can submit the Distribute file job to copy files to managed targets of the job manager. We must distribute files before we can submit jobs that use the files. For example, we must distribute an enterprise application before we can install or update the application on managed application server targets. Similarly, we must distribute a properties file to managed application server targets before we can apply the file to configure the application servers.- Removing files from targets using the job manager
We can submit the Remove file job to delete a file from managed targets. The job can remove a file that previously was distributed to managed targets of the job manager.
Administrative job types