D Changing the Patch Install Directory Location for Oracle Solaris OS

You can change the temporary location of the patch install directory for Agent Controllers on Oracle Solaris OS.

Note:

This procedure is not applicable for versions greater than Oracle Solaris 10.

Use one of the following methods to change the temporary location of the patch install directory:

  • Configure the patch installation directory by modifying the following file in the /usr/lib/scn/update-agent/bin/.uce.rc directory on each agent manually:
    ( all ) ( invisible.directories.__pkg.extraction_tmp_dir, "/var/tmp/" );
    

    After the configuration changes, restart the Agent Controller.

  • Perform the following steps to create an operational profile and plan and launch the deployment job:

    1. Expand Plan Management in the Navigation pane, then click Operational Profiles.

    2. Click Create Profile.

    3. Name the new profile and add a description.

    4. Select a subtype from the list to identify the type of target for this profile. Click Next.

    5. Specify the type of script as Remote Shell.

    6. Add the below script in the Script field.

      #!/bin/bash
      
      UCE_BIN=/usr/lib/scn/update-agent/bin
      if [ -f $UCE_BIN/.uce.rc ]; then
          grep -v 'extraction_tmp_dir' $UCE_BIN/.uce.rc > $UCE_BIN/.uce.rc.tmp
          mv $UCE_BIN/.uce.rc $UCE_BIN/.uce.rc.bk
          mv $UCE_BIN/.uce.rc.tmp $UCE_BIN/.uce.rc
          echo '( all ) ( invisible.directories.__pkg.extraction_tmp_dir, "'${UCE_TMP_DIR}'" );' >> $UCE_BIN/.uce.rc
          /usr/lib/cacao/bin/cacaoadm restart -i scn-agent
      fi
      
    7. Specify the number of minutes or seconds that the script can run. The default is 60 minutes. Click Next.

    8. In the Reboot Policy field, select Success on Reboot policy from the drop-down list to direct the action of the script when the system reboots.

    9. (Optional) To add environment variables to either type of script, click the Add icon, then specify the variable’s name, value, whether input is required at execution and a hint for that input. Add the following variables:

      • Variable Name: UCE_TMP_DIR

      • Input at Execution: Required

      • Value: /var/tmp/ (or other)

      • Hints: extraction tmp dir

    10. Click the View Script button to review. Click Next.

    11. Review the entire profile, then click Finish.

    12. To launch the deployment job, Select Plan Management from the Navigation pane.

    13. Click Operational Plans and select the new plan created for the new profile.

    14. Click Apply Operational Plan.