Operating System - HP-UX
1833861 Members
2397 Online
110063 Solutions
New Discussion

Re: Restoring printers setup

 
SOLVED
Go to solution
Warren griggs
Frequent Advisor

Restoring printers setup

Hi All,

I am running a DR test and I need to restore all the printers that are setup. Can anyone tell me which directories I need to restore in order to do this?

Thanks,
Colin.
7 REPLIES 7
Mark Grant
Honored Contributor

Re: Restoring printers setup

Everything in /var/spool/lp should do assuming you are using the standar lp spooler. Of course you'll also need /usr/sbin/lpadmin /usr/sbin/lpstat etc.

Never preceed any demonstration with anything more predictive than "watch this"
RAC_1
Honored Contributor
Solution

Re: Restoring printers setup

Printers set up with hppi can be restored as follows.

Back up the spooler configuration through SAM. This goes to /var/sam/lp.

From command prompt rcp/scp/ftp everything under this dir to the node where you want to restore the config.

Once completed. Restore the config on other node with options restore spooler configuration.
There is no substitute to HARDWORK
Bhuvaneswari Selvaraj
Valued Contributor

Re: Restoring printers setup

Hi,
If you want to save only the printer configurations, then you need to save the default destination file and the pstatus file.
/var/spool/lp/default, /var/spool/lp/pstatus

You can do this using SAM and choosing "Save printer configuration" Under the "Printers & Plotters" FA and drilling it down further. However, this saves only the printer configurations, not the jobs...

However, if you want to save everything right from the printer queue and so on, then you need to manually save the /var/spool/lp directory.

Hope this helps.
Warren griggs
Frequent Advisor

Re: Restoring printers setup

Hi,

I have tried the SAM method by saving and restoring the configuration however, once I've restored it I run an lpstat -t and it still shows no printers?

Anything else I need to do?

Thanks,
Colin.
Warren griggs
Frequent Advisor

Re: Restoring printers setup

I also tried copying the /var/spool/lp directory over, this did show the printers when I ran lpstat -t but it also gave and error....

"lpstat: execlp failed"

Any ideas?
Zigor Buruaga
Esteemed Contributor

Re: Restoring printers setup

Hi,

Once you have copied the /var/spool/lp directory, have you tried again restoring with SAM method?

Take a look at this link, maybe could help you:
http://aa11.cjb.net/hpux_admin/2000/06/0357.html

Kind regards,
Zigor
Mark Grant
Honored Contributor

Re: Restoring printers setup

Actually, for some reason that makes no sense to me at all, it looks like you also need to copy /etc/lp a lot of the configuration defaults appear to be symbolic links to this directory.

Also, make sire that the CLD_FIFO and FIFO names pipes are created in the /var/spool/lp directory.
Never preceed any demonstration with anything more predictive than "watch this"