8.4 Rebuilding Packages

You must rebuild the default and custom deployment packages in the following scenarios:

  • If the Primary Server port has been changed or is incorrect in the package.

  • To include all the new and updated MSI or RPM files that are provided as patches.

    The new and updated MSI files are located in the %ZENWORKS_HOME%\novell\zenworks\install\downloads\msi directory on Windows and in the /opt/novell/zenworks/install/downloads/msi directory on Linux.

    The new and updated RPM files are located in the %ZENWORKS_HOME%\novell\zenworks\install\downloads\rpm directory on Windows and in the /opt/novell/zenworks/install/downloads/rpm directory on Linux.

  • If the server certificate has been changed.

The following sections provide instructions for rebuilding the default and custom packages:

8.4.1 Rebuilding the Default Packages

The default packages are the system packages that are included on each ZENworks Server to deploy the agent to your device. For more information on the default packages, see Deployment Packages.

To rebuild the default packages:

  1. Do one of the following:

    • On Windows: At the command prompt, enter:

      novell-zenworks-configure -Z -c CreateExtractorPacks

    • On Linux: At the console prompt, change to the /opt/novell/zenworks/bin directory, then enter:

      ./novell-zenworks-configure -Z -c CreateExtractorPacks

  2. When prompted to select the packages to be rebuilt, (by default, only the Agent Network Package - Windows is selected), do one of the following:

    • To rebuild only the default package, press Enter.

    • To rebuild additional packages, type the number corresponding to a package, then press Enter twice.

      For example, if you type 2, then press Enter twice, the Agent Network Package - Windows (default) and Agent Complete Package - Windows are rebuilt.

    • To rebuild all the packages, type 2,3,4,5,6,7 then press Enter twice.

IMPORTANT:Ensure that you do not use the zman surp command to rebuild deployment packages. This command is used to complete a partially completed system update activity and not to rebuild packages. Therefore, when you run the zman surp command, any updates made in the system, such as changes in the server's hostname, is not picked up by the command. It reads the hostnames that are already present in the deployment package and reuses them. For example, if you have a server with hostname A, then the current deployment package will also have the hostname as A. If you change the hostname of the server to B, and run the zman surp command, then the agent package will still have the hostname as A. When you try to install the agents with this deployment package, they will try to register to hostname A, due to which registration might fail. However, if you run the CreateExtractorPacks configure action, then the latest hostname is retrieved and updated in the deployment packages.

8.4.2 Rebuilding the Custom Packages

The custom packages are created by customizing any of the default system packages. For more information on the custom packages, see Default System Packages Versus Custom Packages.

To rebuild the custom packages:

  1. Do one of the following:

    • On Windows: At the command prompt, enter:

      novell-zenworks-configure -Z -c RebuildCustomPacks

    • On Linux: At the console prompt, change to the /opt/novell/zenworks/bin directory, then enter:

      ./novell-zenworks-configure -Z -c RebuildCustomPacks

  2. When prompted to select whether to rebuild the custom packages, press Enter.