1832984 Members
3006 Online
110048 Solutions
New Discussion

moving printers

 
Jeff Hagstrom
Regular Advisor

moving printers

We have a k460 running 11.0 and a new RP7410 running 11.i. I want to bring the printers from the K460 to the rp7410. I used lpmgr -S -x savedir=/tmp/lp then a lpmgr -R -x. All the printers are there, but they don't work. I've stopped the scheduler and started it. Disabled the printers and enabled them. The print job will get qued, but it won't print?
Help, I don't want to re-created a few hundred printers.
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: moving printers

This is my tried and true method:

1) On old box, do an lpstat -t and look for any hung/old printjobs and issue a cancel for each one. No point in bring those over.

2) lpshut

3) cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/oldprinters.cpio

4) On the new box, install the latest JetDirect software; even if you were running JetAdmin on the old box install JetDirect anyway.

5) On the new box, make sure that hostnames for all the printers is set up (/etc/hosts,DNS,NIS, and/or NIS+ as appropriate for your environment).

5) lpshut
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/printersjustincase.cpio

6) Ftp, tar, cpio ... /var/tmp/oldprinters.cpio from old box to new box.

7) cd /
cpio -icvdum < /var/tmp/oldprinters.cpio

8) If you are converting from JetAdmin to JetDirect, /opt/hpnpl/bin transferqueue local; respond "all"; this will convert all of your old interface files to use JetDirect

9) lpsched

Now everything including your default printer should be setup. The most common mistake in moving print queues is using commands like cp or rcp which do not preserve all the permissions and ownerships.
If it ain't broke, I can fix that.
Geoff Wild
Honored Contributor

Re: moving printers

This is how I've done it:

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

cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/

tar cvf /tmp/lp.tar /var/sam/lp/

ftp /tmp/lp.tar to remote server

Untar it, then:

lpshut

/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/

lpsched -v

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.