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 %ZENSERVER_HOME%\install\downloads\msi directory on Windows and in the /opt/microfocus/zenworks/install/downloads/msi directory on Linux.
The new and updated RPM files are located in the %ZENSERVER_HOME%\install\downloads\rpm directory on Windows and in the /opt/microfocus/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:
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:
Do one of the following:
On Windows: At the command prompt, enter:
microfocus-zenworks-configure -Z -c CreateExtractorPacks
On Linux: At the console prompt, change to the /opt/microfocus/zenworks/bin directory, then enter:
./microfocus-zenworks-configure -Z -c CreateExtractorPacks
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.
To rebuild all the packages, type 2,3,4 then press Enter twice.
NOTE:Choosing the following 6 and 7 options will not rebuild the Mac pre-agent installer packages.
6-[ ] Agent Network Package - Mac
7-[ ] Agent Complete Package - Mac
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.
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.
NOTE:From ZENworks 2020 Update 3, only All Architecture is supported for the network packages. During the system update, ZENworks uses the configuration of all architecture or x86_64 (64-bit) or x86 (32-bit) to rebuild an All Architecture version, and the existing x86 (32-bit) and x86_64 (64-bit) will be removed for custom packages. Precedence for choosing the existing custom package for rebuilding will be in the order of all architecture, x86_64 (64-bit) and then x86 (32-bit).
From ZENworks 2020 Update 3, only the Standalone (.NET included) package is available. During the system update, ZENworks uses the configuration of either Standalone (.NET included) or Standalone (.NET required) to rebuild the Standalone (.NET included) package. Standalone (.NET included) takes higher precedence for rebuilding. The existing Standalone (.NET required) package will be removed.
To rebuild the custom packages:
Do one of the following:
On Windows: At the command prompt, enter:
microfocus-zenworks-configure -Z -c RebuildCustomPacks
On Linux: At the console prompt, change to the /opt/microfocus/zenworks/bin directory, then enter:
./microfocus-zenworks-configure -Z -c RebuildCustomPacks
When prompted to select whether to rebuild the custom packages, press Enter.