Operating System - HP-UX
1752720 Members
5981 Online
108789 Solutions
New Discussion юеВ

moving printer queues from SUN to HP made with Unix Printer Installer

 
Bob_16
Frequent Advisor

moving printer queues from SUN to HP made with Unix Printer Installer

Is there a way to migrate printer queues from Sun solaris to HP-UX?
These were made using Unix printer installer, (HPPI). There is a way
to do this with HP Server to HP Server.Is there a way to do this
with different platforms?
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: moving printer queues from SUN to HP made with Unix Printer Installer

The utility is called transferqueue (see man page) but it cannot perform the task between Solaris and HP-UX, only between the same opsystem type.

However, it is almost trivial to script the process using addqueue. On the Solaris machine, make a list of the printers by queuename and host/IPaddress. Then write a script that runs addqueue for each printer as in:

/opt/hpnpl/bin/addqueue -h hostname_or_IPaddress -q queuename
(repeat as many times as needed)

The printers must be connected and turned on but don't have to be online. It takes about 1-2 secs to add each printer. See also removequeue and for fancy options, man multiaddqueue.


Bill Hassell, sysadmin
Animesh Chakraborty
Honored Contributor

Re: moving printer queues from SUN to HP made with Unix Printer Installer

Hi ,
From HP to HP we do this way.
Save the print queue
/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/tmp/HPtemp/lp

Restore the queue

# /usr/sam/lbin/lpmgr -R -v -xsavedir=/var/tmp/HPtemp/lp
or you can use SAM to restore.

Find out equevelent command for lpmgr in solaris
Did you take a backup?