1832658 Members
3719 Online
110043 Solutions
New Discussion

LP Duplication

 
John Hegedus
Occasional Advisor

LP Duplication

I have 2 boxes One is running hpux 11.11 and the other is running hpux 11.23. I need to recreate all printer/interface files from the 11.11 box onto the 11.23 box. Do I have to do this manually or is there a simpler way. Ther are app 196 printers.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: LP Duplication

Use SAM to "save printer configuration" (Printers and Plotters > LP Spooler > Save/Restore Spooler Configuration ). This will create the file /var/sam/lp/lpinfo. Copy this file to your 11.23 machine, run SAM and restore the spooler configuration.


Pete

Pete
John Hegedus
Occasional Advisor

Re: LP Duplication

I did the restore... initially it looked like all printers were put into the file as SAM showed them all restored, however when I went out of SAM and back in the printers were no longer there?? I looked at the /etc/lp/interface file and it contains nothing???
Pete Randall
Outstanding Contributor

Re: LP Duplication

On second thought, don't do that - I just tried it and ended up with no printers.

Instead, copy the contents of /etc/lp and /var/spool/lp from the 11.11 machine to the 11.23 machine. That seems to work.


Pete

Pete
John Hegedus
Occasional Advisor

Re: LP Duplication

NO Good... After I cleaned all print requests on the 11.11 machine I then cpio'd both /etc/lp* and /var/spool/lp* to the 11.23 box.. No errors occured but when I go into SAM I get the message "An error has occurred retrieving information about printers configured on this system. Unable to display data about printers." The /etc/lp/interface file is populated but it cant be referrenced?????
John Hegedus
Occasional Advisor

Re: LP Duplication

Finally got it to work... Had to do the save and restore after the copies.. At first doing the save, the screen in SAM showed real funky stuff, but after the restore everything was OK. I went in and out sevreal times just to check and all was OK..
John Hegedus
Occasional Advisor

Re: LP Duplication

Saved and Restored the config through SAM