D.3 Preparing the Bundles for Upgrading

Before you can use the downloaded bundles to upgrade your servers, you must create an empty OES11Upgrade bundle and add two actions.

  1. In ZENworks Control Center, click Bundles.

  2. Click New and select Bundle.

  3. Select Linux Bundle and click Next.

  4. Select Empty Bundle and click Next.

  5. Type the bundle name as OES11Upgrade and click Next.

  6. Click Finish and complete the bundle creation process.

  7. Click the Action tab of the bundle you just created.

  8. Select the Install tab and click Add.

  9. Select Run Script.

  10. Specify the Action Name as Upgrade and select Define Your Own Script as the Script to Run.

  11. Next to the Script content option, click Edit.

  12. In the Edit - Script Content dialog box, paste the following script and click OK.

    /bin/sleep 300
    
    /opt/novell/zenworks/bin/zac dist-upgrade --no-confirm SLES11-SP2-Core-bundle OES11-SP1-Pool-bundle SLES11-SP2-Updates-bundle
    
    if [ "$?" != "0" ] ; then
    
    exit 1
    
    fi 
    
  13. In the Wait before proceeding to next action section, select When Action is Complete.

  14. Click the Advanced tab and in the Executable security level section, select Run as root and then click OK.

  15. Click the Install tab, click Add, then select Reboot/Shutdown from the drop-down list.

  16. Select Display a warning message before doing Reboot/Shutdown and click OK.

  17. Click Apply and publish the bundle.