Skip to content

Latest commit

 

History

History
38 lines (36 loc) · 2.61 KB

proc_executing-a-restorecon-template-on-multiple-hosts.adoc

File metadata and controls

38 lines (36 loc) · 2.61 KB

Executing a restorecon Template on Multiple Hosts

This example shows how to run a job based on the template created in {ManagingHostsDocURL}Example_restorecon_Template_managing-hosts[Example restorecon Template] on multiple hosts. The job restores the SELinux context in all files under the /home/ directory.

Procedure
  1. In the {ProjectWebUI}, navigate to Monitor > Jobs and click Run job.

  2. Select Commands as Job category and Run Command {endash} restorecon as Job template and click Next.

  3. Select the hosts on which you want to run the job. If you do not select any hosts, the job will run on all hosts you can see in the current context.

  4. In the directory field, provide a directory, for example /home, and click Next.

  5. Optional: To configure advanced settings for the job, fill in the Advanced fields. To learn more about advanced settings, see [advanced-settings-in-the-job-wizard_{context}]. When you are done entering the advanced settings or if it is not required, click Next.

  6. Schedule time for the job.

    • To execute the job immediately, keep the pre-selected Immediate execution.

    • To execute the job in future time, select Future execution.

    • To execute the job on regular basis, select Recurring execution.

  7. Optional: If you selected future or recurring execution, select the Query type, otherwise click Next.

    • Static query means that the job executes on the exact list of hosts that you provided.

    • Dynamic query means that the list of hosts is evaluated just before the job is executed. If you entered the list of hosts based on some filter, the results can be different from when you first used that filter.

      Click Next after you have selected the query type.

  8. Optional: If you selected future or recurring execution, provide additional details:

    • For Future execution, enter the Starts at date and time. You also have the option to select the Starts before date and time. If the job cannot start before that time, it will be canceled.

    • For Recurring execution, select the start date and time, frequency, and condition for ending the recurring job. You can choose the recurrence to never end, end at a certain time, or end after a given number of repetitions. You can also add Purpose - a special label for tracking the job. There can only be one active job with a given purpose at a time.

      Click Next after you have entered the required information.

  9. Review job details. You have the option to return to any part of the job wizard and edit the information.

  10. Click Submit to schedule the job for execution.