Operating System - HP-UX
1825354 Members
4190 Online
109679 Solutions
New Discussion юеВ

Moving Printers from machine to machine

 
BEN WRIGHT
Advisor

Moving Printers from machine to machine

Hello there
I am setting up a new machine here and thought it would be really easy to move printers between machines using SAM's save and restore.
This creates a directory /var/sam/lp and all the configuration files etc.
I tar up this directory and copy it to the new machine, un-tar, and then SAM restore, but it does not seem to work. There were no printers listed and the /etc/lp directories where empty.
I then tried copying all the files cinterface etc to the relevent directories and then I could see all the printer names but was missing the key information - weather it was a network or remote printer and what it was connected to!
Is there a bug with SAM, how can I fix this...
Thanks very much
Best regards
Ben
6 REPLIES 6
John Poff
Honored Contributor

Re: Moving Printers from machine to machine

Hello Ben,

Did you put your tar file into the /var/sam directory on your destination box?

Here are a couple of threads dealing with moving printers between machines:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3ac76af52b04d5118fef0090279cd0f9,00.html

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb2c891ccb36bd611abdb0090277a778c,00.html


JP
BEN WRIGHT
Advisor

Re: Moving Printers from machine to machine

Hello there,

No I un-tarred the file into the default directory of /var/sam/lp

Thanks for answering

Will look at the threads now.

Best regards

Ben
BEN WRIGHT
Advisor

Re: Moving Printers from machine to machine

Hello there
Just for info sake, I followed all the instructions etc, but I also changed the file permissions within the /var/sam/lp directory to lp:bin.
This then installed all the printers phew!.
Now however I cannot get them to work, typical, also I needed to install the Jet Direct software which solved that problem.
Thanks for your help.
Best regards
Ben
Animesh Chakraborty
Honored Contributor

Re: Moving Printers from machine to machine

Hi,
Have u copied /var/sam/lp/lpinfo file ?
That is the file which stores all the info of the printers like network or remort etc.
Did you take a backup?
BEN WRIGHT
Advisor

Re: Moving Printers from machine to machine

Yes the file was there, the problem is all solved now.
Best regards
Ben
MANOJ SRIVASTAVA
Honored Contributor

Re: Moving Printers from machine to machine

Hi Ben


You can also look at this document :


http://www2.itrc.hp.com/service/cki/docDisplay.do?docId=200000058668757



Manoj Srivastava