Operating System - HP-UX
1835243 Members
2307 Online
110078 Solutions
New Discussion

Re: Copying all queues from UG005 host to UG002 host

 
Valdemir
Occasional Contributor

Copying all queues from UG005 host to UG002 host

Hi:
I need transfer all 170 printer queues from UG005 host to UG002 host.
If I use transferqueue tool will I able to use all queues created in host UG005 like if
was created in host UG002 ?

Thank you.
7 REPLIES 7
Ivan Krastev
Honored Contributor

Re: Copying all queues from UG005 host to UG002 host

I think it is possible. Only limitation will be if you have queues with same names.
See KB doc LPKBRC00009243 - http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01019982-1

"Make sure that the queue names on the source workstation do not conflict with the queue names on the destination workstation. If the same queue name exists on both workstations, then the queue on the destination workstation will be overwritten by the source workstation's queue.
"



regards,
ivan
Geoff Wild
Honored Contributor

Re: Copying all queues from UG005 host to UG002 host

Here's how I do this...

on local host:

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

tar up /var/sam/lp and copy to remote host

On remote host, stop the spooler (lpshut)

un tar the tarball from above

/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.
Valdemir
Occasional Contributor

Re: Copying all queues from UG005 host to UG002 host

I forgot to tell that my hosts are solaris, and I didn´t find a lpmgr command...
Geoff Wild
Honored Contributor

Re: Copying all queues from UG005 host to UG002 host

LOL - so why didn't you post on the Solaris boards?

Sorry - I have Solaris - but don't run printing on them...

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.
Tim Nelson
Honored Contributor

Re: Copying all queues from UG005 host to UG002 host

Too funny :)
skt_skt
Honored Contributor

Re: Copying all queues from UG005 host to UG002 host

why the below step?

cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/
Geoff Wild
Honored Contributor

Re: Copying all queues from UG005 host to UG002 host

why the below step?

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

because when you back the spooler up - it saves it to lp.new...

And you need it in /var/sam/lp in order to do a restore...

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.