64.3 Make Mode (img make)

Use the Make mode to take an image of the workstation and store it in a specified location. Normally, all partitions on hard disks and other storage devices (such as Jaz drives) are included in the image, but there are some exceptions noted in Table 64-1.

You can take an image of a workstation using either the bash prompt or using the ZENworks Imaging Engine menu. For step-by-step instructions, see Section 60.1, Manually Taking an Image of a Workstation. You can also use the Make Locally mode to take an image of the workstation and store it in a partition on a local (writable) device, such as a hard disk or Jaz drive. For step-by-step instructions, see Section 61.0, Setting Up Disconnected Imaging Operations.

The image size is about the size of the data in the Windows partitions plus the entire size of any non-Windows partitions (such as NetWare® partitions). ZENworks partitions and Compaq configuration partitions are always excluded. The data from Windows partitions is stored in an intelligent, file-by-file format so you can customize it later using the Image Explorer (imgexp.exe) utility. Non-Windows partitions are stored in a raw, bit-by-bit format that cannot be customized.

The syntax of this mode depends on whether you store the image locally or on an Imaging (proxy) server.

The following sections contain additional information:

64.3.1 Make Locally (img makel)

Using the bash prompt, the following example explains the syntax and available parameters that you can use with the makel “make locally” parameter:

img makel[pNumber] filepath [comp=comp level] [xpartition]

Commands

Table 64-1 Img Makel Parameters

Parameter

Description

makel[pNumber]

The partition number (as displayed by img dump) of the local partition to store the image in. It must be a primary FAT16 or FAT32 partition. This partition is excluded from the image that’s created.

If you omit the partition number from this parameter, the image is stored in the local ZENworks partition.

filepath

The image filename, including a .zmg extension (case-sensitive) and the complete path from the root of the partition. The directories in the path must exist. If the file already exists, it is overwritten.

[comp=comp level]

comp level is the amount of compression used when creating the image. Specify any number from 0-9. 0 means no compression. 1 is the same as Optimize for Speed. 6 is the same as Balanced and is used by default if you do not specify this parameter. 9 is the same as Optimize for Space.

xpartition

The partition number (as displayed by img dump) of a local partition to exclude from the image. You can repeat this parameter as needed to exclude multiple partitions.

If you omit this parameter, all partitions are included in the image except the one where the image is stored.

Examples

Table 64-2 Img Makel Examples

Example

Explanation

img makel8 /imgs/dellnt.zmg

Takes an image of all partitions except the one in slot 8 and saves the image to imgs/dellnt.zmg in the partition in slot 8. (This example assumes that slot 8 contains a primary FAT16 or FAT32 partition.)

img makel /imgs/dellnt.zmg

Takes an image of all partitions and saves it to imgs/dellnt.zmg in the ZENworks partition. (This example assumes that the ZENworks partition is installed.)

img makel /imgs/dellnt.zmg x2 x3

Takes an image of all partitions except those in slots 2 and 3 and saves the image to imgs/dellnt.zmg in the ZENworks partition. (This example assumes that the ZENworks partition is installed.)

64.3.2 Make on Proxy (img makep)

Using the bash prompt, the following example explains the syntax and available parameters that you can use with the makep “make on proxy” parameter:

img makep address filepath [comp=comp level] [xpartition]

Commands

Table 64-3 Img Makep Parameters

Parameter

Description

address

The IP address or DNS name of the ZENworks Imaging server where the image is stored. This can be any server running the Imaging Proxy service.

filepath

The UNC path to the new image file being created, including the image filename and the .zmg extension (case-sensitive). The format of the UNC path is as follows:

//servername/volume_or_share/path_to_store_images/imagename.zmg

For OES Linux, the path to the image file must be from root (/). For example, the path might look like:

//servername/media/nss/NSS_volume/path_to_image/imagefilename.zmg

Upon execution of img makep at the command line, the servername portion of this path is replaced with the value in the address portion of this syntax.

The image filename, including a .zmg extension (case-sensitive) and the complete path in UNC style. The directories in the path must exist. If the file already exists, the ZENworks Imaging server won’t overwrite it unless you enable it to do so in the ZENworks Imaging server’s policy in eDirectory. (See Section 58.3, Allowing Overwriting Filenames and Restricting the Save Location of Image Files (Imaging Server Settings).) If no directories are specified in the path, the image is created at the root of the volume or drive where the ZENworks Imaging server software is installed.

IMPORTANT:Because Linux doesn’t recognize backslashes, you must use forward slashes in the UNC path or enclose the entire path in quotes.

[comp=comp level]

comp level is the amount of compression used when creating the image. Specify any number from 0-9. 0 means no compression. 1 is the same as Optimize for Speed. 6 is the same as Balanced and is used by default if you do not specify this parameter. 9 is the same as Optimize for Space.

xpartition

The partition number (as displayed by img dump) of a local partition to exclude from the image. You can repeat this parameter as needed to exclude multiple partitions.

If you omit this parameter, all partitions are included in the image.

Examples

Table 64-4 Img Makep Examples

Example

Explanation

img makep 137.65.95.127 //xyz_server/sys/imgs/dellnt.zmg

Takes an image of all partitions and saves it to sys/imgs/dellnt.zmg on xyz_server. (This example assumes that 137.65.95.127 is the IP address of xyz_server.)

img makep img.xyz.com //xyz_server/sys/imgs/dellnt.zmg x2 x3

Takes an image of all partitions except those in slots 2 and 3 and saves the image to sys/imgs/dellnt.zmg on xyz_server. (This example assumes that img.xyz.com is the DNS name of xyz_server.)

img makep img.xyz.com //bogus/sys/imgs/dellnt.zmg

Takes an image of all partitions and saves the image to sys/imgs/dellnt.zmg on img.xyz.com. (This example assumes that img.xyz.com is the DNS name of a server running the Imaging Proxy service).

Because the servername inside the UNC path is replaced by the address value defined earlier in the cmd line, //bogus becomes //img.xyz.com