cancel
Showing results for 
Search instead for 
Did you mean: 

print queue migration

 
SOLVED
Go to solution
Highlighted
yc_2
Regular Advisor

print queue migration

Hi,

How do I migrate print queue from N-class (HP-UX 11.00) to rp4440 (HP-UX 11.11)?

I tried the following steps but no success:
(1) From source:
/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/

(2) rcp -r -p /var/sam/lp/* :/var/sam/lp/

(3) From dest server:
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
A problem occurred doing "lpadmin -p09_05_021_hp -i/var/sam/lp//interface/09_05_
021_hp -v/dev/null ". Stderr from this command is "/usr/sbin/lpadmin: can't acce
ss file "/var/sam/lp//interface/09_05_021_hp"".



Thanks in advance,
YC
4 REPLIES 4
Highlighted
Geoff Wild
Honored Contributor

Re: print queue migration

What is in /var/sam/lp on the rp4440? is it same as the N?

I usually do this:

/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/

Then tar cvf lp.tar /var/sam/lp

rcp/ftp tar ball to remote server...

tar xvf lp.tar

Then restore:


/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.
Highlighted
yc_2
Regular Advisor

Re: print queue migration

Hi Geoff Wild,

#ll /var/sam/lp

drwx------ 2 root sys 96 Oct 13 09:47 cinterface
drwx------ 2 root sys 96 Oct 13 09:47 class
-rw------- 1 root sys 0 Oct 13 09:47 default
drwx------ 2 root sys 96 Oct 13 09:47 dev
drwx------ 3 root sys 1024 Oct 13 09:47 interface
-rw------- 1 root sys 303 Oct 13 09:47 lpinfo
drwx------ 2 root sys 1024 Oct 13 09:47 member
drwx------ 2 root sys 96 Oct 13 09:47 sinterface
-rw------- 1 root sys 18 Oct 13 09:47 timestamp

Encounter the following with your instruction:

cp: cannot access /var/sam/lp/lp.new/*: No such file or directory





Rgds,
YC
Highlighted
Solution

Re: print queue migration

Hi YC,

This is the method I've done when we migrate our Print Queue to new server.

Copying printers between servers
To keep consistancy between servers/workstations here is a method to have all servers with the same printer config:
On the source server/workstation where you have printer configured make sure that the print queue is empty.
Shutdown the spooler
tar/cpio "/etc/lp" and "/var/spool/lp" on the source server and startup the spooler.
Restore the tar/cpio of /etc/lp and /var/spool/lp from source on to the destination workstations after shutting down the spooler.
startup the spooler

Hope this will help you.

Regards,
Romen Q. Cordial
Highlighted
Michael Tully
Honored Contributor

Re: print queue migration

Have you had a look at 'transferqueue'
There should a man page on your system for it.
Anyone for a Mutiny ?