Operating System - HP-UX
1832951 Members
2861 Online
110048 Solutions
New Discussion

Duplicating printers on two servers

 
SOLVED
Go to solution
Krishnan Seshadri
Occasional Advisor

Duplicating printers on two servers

I am trying to setup a MC/SG cluster between 2 N-4000s and looking for a easy approach to duplicate the printers that are defined in the primary node to the failover node. I could always go through the tidious process of re-creating the spooler entries, but wondering if there is any alternative. Thanks in advance for any suggestions.

Krishnan
5 REPLIES 5
Alan Riggs
Honored Contributor
Solution

Re: Duplicating printers on two servers

Use SAM to save teh printer configuration. rcp teh saved configuration to second server. Use SAM to restore printern configuration:

SAM -> printers and plotters -> lp spooler -> save/restore spooler configuration

MANOJ SRIVASTAVA
Honored Contributor

Re: Duplicating printers on two servers

Hi Krishnan Seshadri

The printers connected are defined under /usr/spool/lp , so just copy the directory acrros and restart teh lpscheduler .


Manoj Srivastava
Krishnan Seshadri
Occasional Advisor

Re: Duplicating printers on two servers

Thanks Alan, I was in the same path and your reply concurred with it. Eventhough I don't use SAM on a serious basis, it is the clean way to do this one.

Mark Landin
Valued Contributor

Re: Duplicating printers on two servers

Even easier than starting up SAM is to use the same utility SAM uses when you select "save spooler config".

The command "/usr/sam/lbin/lpmgr -S" on a system saves the current spooler config into a directory /var/sam/lp. Tar up the entire directory, move the tarball to your failover system, untar it back into /var/sam/lp, and run "/usr/sam/lbin/lpmgr -R" on the failover system.

You could even automate this whole process to happen weekly, so you don't have to remember to do it every time you add a printer.
Krishnan Seshadri
Occasional Advisor

Re: Duplicating printers on two servers

Mark, as a matter of fact that was what I did.

Thanks everyone for your response.