1833792 Members
2168 Online
110063 Solutions
New Discussion

Print Queue migration.

 
Joe Short
Super Advisor

Print Queue migration.

I am trying to copy the printers from an L3000 runninh HPUX 11.00 to an rp5470 running 11i. The majority of the printers on the L are setup using JetAdmin. If have installed JetDirect on the rp, and copied the directories /etc/lp and /var/spool/lp from the L3000 to the rp5470. Althought the scheduler has started on the rp5470, and the output of the lpstat -t command appears normal, the printers are not printing. When I send a small file "/etc/hosts" to a printer, the system looks as though it printed, but I am not getting anything at the printer. Did I miss something? Is there some fundamental difference between JetAdmin and JetDirect?
6 REPLIES 6
Denver Osborn
Honored Contributor

Re: Print Queue migration.

Have a look at this support doc. It'll step you through the process of migrating the queues from jetadmin to jetdirect (hppi)

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj06746

-Denver
A. Clay Stephenson
Acclaimed Contributor

Re: Print Queue migration.

The process is rather straightforward but retention of file ownership/group/permissions is critical.

1) Make sure that hostname resolution is taken care of by copying /etc/hosts, setting up DNS, and/or NIS(+).

2) On the old box do an lpstat -t and look for any old stale printjobs. Cancel these as there is no point in transferring these jobs. Finally do an lpshut.

3) On the old box:
cd to /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio

4) On the new box (after JetDirect software is installed):
lpshut
cd to /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio.safe (just to be safe)

5) ftp (binary) /var/tmp/lp.cpio from the old box to the new

6) cd to /
cpio -icvdum < /var/tmp/lp.cpio

7) /opt/hpnpl/bin/transferqueue local
and enter "ALL" when prompted.
This will convert all your old JetAdmin interface files to JetDirect

8) lpsched

Everything, including your original default printer, will be as it was.
If it ain't broke, I can fix that.
Joe Short
Super Advisor

Re: Print Queue migration.

Thanks all, looks like I nailed everything except the transferqueue command.
Joe Short
Super Advisor

Re: Print Queue migration.

Oh, and I will assign points as soon as I apply the solution.

Thanks again.
Geoff Wild
Honored Contributor

Re: Print Queue migration.

This is quite easy....

Backup the spooler configuration:

/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/

cd /var/sam
tar cvf lp.tar lp

ftp lp.tar to new server put in /var/sam

on new server,

cd /var/sam
tar xvf lp.tar
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/


Rgds...Geoff





Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tom Danzig
Honored Contributor

Re: Print Queue migration.

I've used the transferqueue function before. Works great. Do a "man transferqueue"