Pre-Distribution Actions

You can determine the order of pre-distribution actions for Linux* and Solaris* processes, NLMTM files, Java* classes, and Windows* services before extracting and installing the main Distribution files for the following Distribution types:

File
FTP
HTTP
RPM
MSI Package
Software Package

The pre-distribution actions are similar to those on the Pre-Installation tab in the Component properties of Server Software Packages.

The benefit of having pre actions in these Distribution types is that you are no longer restricted to using only Server Software Packages to perform those actions.

When a pre action is defined for a Software Package Distribution, the following is done:

  1. A list of .cpk files contained in the Distribution is created in the Type tab of the Distribution object.
  2. All pre actions are processed according to the order you defined for them.
  3. The .cpk files are processed serially.
  4. All post actions are processed according to the order you defined for them.

Add
Adds items to the list box. You can add each of the following options multiple times, and you can list the items in the order that you want them to be executed. Use the arrow keys to arrange the order.

Start Process  (all platforms)
If you select an NLM to be loaded by the Distribution, and the NLM is already running on the target server, the package installation fails and is rolled back (if rollback is enabled).

IMPORTANT: You cannot unload NLM files through a policy because many NLM files required user intervention to unload.

You can make sure that an NLM is not already loaded when you are including it in the Distribution by adding a Stop Process option for that NLM before adding the Start Process option, but only if this NLM does not require user input from the keyboard to unload it.

Filename
This must be the exact name. For NetWare®, include the .nlm extension.

For Linux and Solaris, you must include the full path.

Parameters
Include any command line parameters for the process or NLM being run.

Wait for This Process to Complete Before Continuing
Select this option for a process or NLM that terminates itself. It must terminate within 10 minutes, or the whole loading process fails. By default, this option is deselected.

Stop Process  (all platforms)
If the NLM requires intervention to unload, you must remember to unload it manually before trying to install the Distribution.

Filename
This must be the exact name, including the extension if it is an NLM. Because many NLM files require user input to unload, their unloading cannot be automated.

IMPORTANT: For Linux and Solaris, do not enter the path that you used to start the process. Only enter the process name and all processes using that name are stopped.

Wait for This Process to Complete Before Continuing
Select this option for an NLM process that stops itself. By default, this option is deselected.

Start/Stop Windows Service  (Windows only)

Service Name
This must be the exact service name.

Wait For This Service to Finish Running Before Continuing
Select this option for a service that starts or stops itself. By default, this option is deselected.

Script  (all platforms)

Script Type
There are three script types: System, NetBasic*, and PERL*. The text you enter in the Script box must match the type you select.

IMPORTANT: NetBasic is not supported on NetWare 6.5 servers.

Script
Enter the text of the script.

WARNING: If a Distribution executes the script, processing done by the script cannot be undone by rollback.

Load Java Class  (NetWare only)

Class Name
This must be the exact name. The .class extension is not necessary. If Java is not already in your path, you must specify the full path.

Parameters
Include any command line parameters for the Java application being run.

JVM Parameters
Include any parameters for the Java machine.

Wait for This Process to Complete Before Continuing
Select this option for a Java application that terminates itself. There is no time limit. It waits as long as the application is running. By default, this option is deselected.

Remove
Removes selected items from the list box.



ZENworks Online Documentation

A trademark symbol (®, TM, etc.) denotes a Novell trademark. An asterisk denotes a third-party trademark. For more information, see Legal Notices.