Operating System - HP-UX
1838244 Members
4146 Online
110125 Solutions
New Discussion

ServiceGuard and printers

 
SOLVED
Go to solution
BFA6
Respected Contributor

ServiceGuard and printers

Hi,

I've got a 2 node ServiceGuard cluster. I use rdist to copy across /etc/passwd /etc/group, but how can I copy across printers.
I've tried copying across the interface files, but this does not work.
Thanks in advance.

Hilary
2 REPLIES 2
Frederic Sevestre
Honored Contributor
Solution

Re: ServiceGuard and printers

Hi Hilary,


If you want to copy all the printers from one server to an other :
On server A :
Save the spooler on the server :
# /usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp

Then copy the directory /var/sam/lp on the new server
# tar cf - /var/sam/lp | rexec "tar xvf -"

On server B :
Restore the spooler :
# /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp

It should be ok like this

Regards,
Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Rainer von Bongartz
Honored Contributor

Re: ServiceGuard and printers

I fully aggree with Frederic.
I'm doing it the same way for a long time now without problems.

You should only be aware that the spooler is stopped during the 'lpmgr' activities ans restarted afterwards.

instead of running lpmgr -R on the remote server you could run it with a remsh command from the primary server.
This will enable you to put the whole sync in one script and start it through cron for example every night.



Regards
rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...