How to synchronize print queues between AIX servers

 

Copy the following files from the server with the configured and working print queues (server A) to the server to be synchronized (server B)

/etc/qconfig

The contents of the directory /var/spool/lpd/pio/@local/custom

The contents of the directory /var/spool/lpd/pio/@local/dev

Also if the printers are network printers do the following

Either copy the file /etc/hosts from server A to server B if the all network addresses are to be the same i.e. in an HACMP cluster; or otherwise just add the printer entries to the /etc/hosts file on server B

Ensure the file permissions on server B are the same as server A

Then run /usr/lib/lpd/pio/etc/piodigest against all the files in /var/spool/lpd/pio/@local/custom

i.e /usr/lib/lpd/pio/etc/piodigest test:hp@lv10

If the file permissions are incorrect on the files in /var/spool/lpd/pio/@local/custom then the following error may be seen

0782-302 Cannot open file for customized attributes.
The file name is /var/spool/lpd/pio/@local/custom/test:hp@lv10
The errno (error number) from the open system call is 109
Check the error number.
0782-591 The value of _d attribute is not in the list generated from
the limits field
0782-112 1 Errors detected while validating printer attributes.
Use local problem reporting procedures.

Otherwise the command will just return to the prompt

Then finally test each printer on server B