Imaging Script bundle can contain any ZENworks script (containing the general shell and ZENworks Imaging Engine commands) that you can run from the imaging maintenance mode prompt.
Using Configuration Management, you can install software by using a bundle. Software included in a bundle that is assigned directly is considered mandatory; the software is installed on all assigned devices (the bundle is directly assigned to the devices, their groups, or their folders).
To configure Imaging Script bundle and assign devices to the bundle:
In ZENworks Control Center, click Bundles in the left pane to display the Bundles panel.
Click New > Bundle to start the Create New Bundle Wizard.
Select Preboot Bundle, then click Next.
On the Select Bundle Category page, select Imaging Script, then click Next to display the Define Details page.
Fill in the fields:
Bundle Name: (Required) Although bundles can be identified in ZENworks Control Center by their type of icon, as well as the folder they are listed under, you should develop a naming scheme that differentiates the Imaging Script bundles that are listed together in a folder.
For more information, see Naming Conventions in ZENworks Control Center
in the ZENworks Control Center Reference.
Folder: Browse for the location where you want the Imaging Script bundle displayed in ZENworks Control Center. The folder must exist. You cannot specify a non-existent folder, because ZENworks does not create them from this wizard.
Icon: Browse for and select an icon if you plan to use one on your desktop for this bundle.
Description: Provide a description to help you later recognize the exact purpose of this Imaging Script bundle.
Click Next to display the Imaging script page.
Fill in the fields:
Script Text: Specify the text of the script. The script is restricted to doing preboot work prior to the device booting.
For information on using this bundle to perform scripted imaging, see Using a Script to Image a Device.
Click Next to display the Summary page.
Do the following:
If you want to perform other configuration tasks after the bundle has been created, select the Define Additional Properties check box.
For example, you can make assignments to the bundle in the Relationships tab, add actions in the Actions tab, and so on.
If you want to deploy the bundle as a sandbox version, ensure that Create As Sandbox check box is selected. A sandbox version of a bundle enables you to test it on your device before actually deploying it.
Review the configuration, then click one of the following:
Back: Allows you to make changes after reviewing the summary.
Finish: Creates the Imaging Script bundle as configured per the settings listed on this Summary page.
This bundle is not assigned to any device or group after it is created until you make that assignment on a Relationships tab.
IMPORTANT:If this Preboot bundle has been created on a management device inside the firewall and you are assigning it to a device outside the firewall, port 8089 must be open both ways (PUBLIC -> PRIVATE, and PUBLIC <- PRIVATE).
When a device assigned to the Imaging Script bundle boots, the bundle’s work is performed on the device before its operating system starts. In the imaging maintenance mode, the script is downloaded as the zenAdvancedScript file in the /bin directory. Subsequently, you must execute the script in order to apply the bundle. You can execute the script by using the sh /bin/zenAdvancedScript command
If you manually query for a task in the Maintenance mode, for a scripted bundle, after issuing a query by using the img -a command, then you need to convert the task script to UNIX format by running the #dos2unix /bin/zenAdvancedScript command. After the script is converted, you can complete the task.
This bundle is not assigned to any device or group after it is created until you make that assignment on a Relationships tab.
IMPORTANT:If this Preboot bundle has been created on a management device inside the firewall and you are assigning it to a device outside the firewall, port 8089 must be open both ways (PUBLIC -> PRIVATE, and PUBLIC <- PRIVATE).
When a device assigned to the Imaging Script bundle boots, the bundle’s work is performed on the device before its operating system starts. In the imaging maintenance mode, the script is downloaded as the zenAdvancedScript file in the /bin directory. Subsequently, you must execute the script in order to apply the bundle. You can execute the script by using the sh /bin/zenAdvancedScript command.
If you manually query for a task in the Maintenance mode, for a scripted bundle, after issuing a query by using the img -a command, then you need to convert the task script to UNIX format by running the #dos2unix /bin/zenAdvancedScript command. After the script is converted, you can complete the task.