25.5 Migrating ZENworks iPrint Policies

The ZENworks 10 Configuration Management and ZENworks 7 iPrint policy contains a list of printers to be distributed via the policy. The printer names are back-linked to the eDirectory object of the corresponding printer. When the iPrint service is migrated from a Netware, OES 1, or OES 2 server to an OES 2 SP3 server, iPrint policies containing migrated printers must also be updated. For example, if the ZENworks7 iPrint policy contains a pr nter from the source server, after migration it must contain a corresponding printer from the target server.

The novell-iprint-migration.rpm also contains the scripts for migrating policies of ZENworks 10 Configuration Management and ZENworks 7. You must run the scripts to migrate the policies.

IMPORTANT:The target server and the source server must be in the same tree and in the same container.

25.5.1 Policy Migration in ZENworks 10 Configuration Management

The zcm-migration-print-policy.pl script is located in /opt/novell/bin. Copy and run the script on the ZENworks 10 Configuration Management server. This script copies the original printer policies and the policies are formed in the target server. If you encounter any error, refer to the log file available at zcm10-migration.log.

Prerequisites

  • The file with the list of printers to be migrated must be copied from a target server to the ZENworks 10 Configuration Management server.

  • Ensure that the latest version of ZENworks 10 Configuration Management is installed. You can get the ippmanagement utilities from there.

  • Install Perl on your server, to run the policy migration script on a ZENworks 10 Configuration Management windows server.

Syntax: zcm-migrate-print-policy.pl -a<Administrator name> -p<Administrator password> -s<Source server> -d<Destination server> .

Options:

-a, --admin

Administrator name.

-p, --passwd 

Administrator password.

-P, --port

(Optional) Port number (The default port is 80).

-l, --linux

(Optional) The source operating system is Linux.

-n, --netware

(Optional) The source operating system is NetWare.

-s, --src

Source server IP or DNS name.

-d, --dest

Target server IP or DNS name.

-r, --rem

(Optional) Deletes the old policies.

-c, --change

(Optional) Changes the default printer.

-f, --file

Filename that has the list of printers to be migrated.

-x, --xml

(Optional) Directory containing the policies in XML form.

25.5.2 Policy Migration in ZENworks 7

Location of the script, zen7-migration-print-policy.pl is /opt/novell/bin/. Run the script on the target server, where the replica of the eDirectory tree is present. This script copies the original printer policies and the policies are formed in the target server. If you encounter any error refer the log file available at /var/opt/novell/log/iprint/zenpolicy_migration.log.

Syntax: <script name> -v -v -v<log file> -s<Host name or IP address> -a<Administrator FDN> -p<Administrator password> -b<Base DN> -d<Keep default> -r<Deletes the old policies> -n<Source Operating System> -f<File name containing list of files containing migrated printer list>.

Options:

-v -v -v

Log file.

-s, --host

Hostname or IP address. Source server IP address.

-a, --admin

Administrator FDN (e.g. cn=admin,o=novell).

-p, --passwd 

Administrator password.

-b, --base-dn

DN of a container to search for the ZENworks 7 iprint policy objects (e.g. o=novell).

-d, --keepdefault

Retains your default printer in the ZENworks 7 policy.

-l, --linux

The source operating system is Linux (for an ID swap always specify -l, even if the source is Netware).

-n, --netware

The source operating system is NetWare.

-f, --file

Filename that has the list of printers to be migrated.

For more information on the ZENworks, refer to ZENworks 10 Configuration Management .