Operating System - HP-UX
1837097 Members
2419 Online
110112 Solutions
New Discussion

Re: having problem with printer when moving to new server

 
TomK_3
New Member

having problem with printer when moving to new server

old server HP-UX occ B.11.00 U 9000/800
move to new server HP-UX triton B.11.23 U 9000/800

problem with printer cannot use sam set up printer, sam complains printer already exists but I cannot see printer, using lpstat -t see all printer but cannot enable printer. My quesion, what am i missing?
I use rdist to transfer
/etc/lp -> triton
install -R -M /etc/lp;
/var/spool/lp -> triton
install -R -M /var/spool/lp;
/var/sam/lp -> triton
install -R -M /var/sam/lp;

What elese should to send to new server?
thanks a lot for your time.
5 REPLIES 5
Yogeeraj_1
Honored Contributor

Re: having problem with printer when moving to new server

hi,

rdist is not the proper command to do for such an operation.

If you have both remote printers and jetdirect printers, this must be done in 2 steps.

For remote printers, use:
/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/

On the destination host where you are doing the restore:

touch /var/sam/lp/sinterface/
touch /var/sam/lp/cinterface/

Then restore using: (after having copied over the /var/sam/lp )
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/

For jetdirect printers:
transferqueue
(see man transferqueue for more details)


if you need further assistance, please let us know.

Hope this helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
F Verschuren
Esteemed Contributor

Re: having problem with printer when moving to new server

I saw this erros when there was somting missing in
/var/spool/lp/request/

/usr/lib/lp
/var/adm/lp

please stop/start schedular and post the output of /var/adm/lp, this normal gives a good intication of what is missing.


Geoff Wild
Honored Contributor

Re: having problem with printer when moving to new server

Sam can't remove it? try lpadmin -XQUEUENAME

You can't use rdist to sync print queues...

You need to backup the spooler on one host, make a tarball, copy to remote host, un tar, then restore spooler...

I do it like so:

/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/

cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/

tar -cvf lp.tar /var/sam/lp

scp that to remote...

tar xvf lp.tar

lpshut
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/
lpsched -v

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: having problem with printer when moving to new server

You could directly copy the spooler files from 11.0 to 11.11 but at 11.23 the format of some of the files changed a bit so that direct copies will not work. (11.23 to 11.23 does work by simply copyiny). You need to use the lpmgr commands as Geoff suggests.

Even when copying you need to take extreme care to preserve owner, group, setuid, and setgid bits are lp is extremely sensitive to these metadata.
If it ain't broke, I can fix that.
TomK_3
New Member

Re: having problem with printer when moving to new server

thanks for your quick reply, it was solved by somebody. I will try Geoff Wild's solution, next time.
thanks