Operating System - HP-UX
1752772 Members
5256 Online
108789 Solutions
New Discussion юеВ

moving printers to different machine

 
SOLVED
Go to solution
Jeff Hagstrom
Regular Advisor

moving printers to different machine

Last week I asked if printers could be moved from one hpk460 10.20 box to another hpk460 11.00 box and I was told yes. Moving over /var/spool/lp and /etc/lp should take care of this. After moving those over, I was unsucessfull on printing to any of those printers. I can enable and disable, the que receives the new print job, but it never prints. Anybody have a clue why? Does the machine have to reboot? Is there some other type of initialization that has to take place?
5 REPLIES 5
Vincent Stedema
Esteemed Contributor

Re: moving printers to different machine

Make sure files under /etc/lp/interface are owned by user lp, group bin and that access mode is 755. The jobs probably don't get printed because the model scripts aren't executable.

Hope this helps.

Regards,

Vincent
A. Clay Stephenson
Acclaimed Contributor

Re: moving printers to different machine

Hi Jeff,

I've done this several times and it does work. I'll bet you have file ownership problems. I would copy again using tar or cpio to preserve owner/group and attributes; copying via rcp or ftp would not do this. Make sure you do an lpshut on both machines then copy then an lpsched.

Good luck, Clay
Regards, Clay
If it ain't broke, I can fix that.
Rainer von Bongartz
Honored Contributor
Solution

Re: moving printers to different machine

Jeff,

You could use sam to transfer your printers from
one system to another.
use:

/usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp > /dev/null

then transfer /var/sam/lp to other machine and run:

/usr/sam/lbin/lpmgr -R savedir=/var/sam/lp"

on this machine.

I use this method in a script to synchronize spooler
on different machines and it works without any problems.

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Herve BRANGIER
Respected Contributor

Re: moving printers to different machine

Hi,

lpmgr works well between 10.20 and 11.X.
I use this command to save 10.20 systems and
restore on 11.00 without any problems.

Herve
A. Clay Stephenson
Acclaimed Contributor

Re: moving printers to different machine

Hi Jeff,

A couple of other thoughts. Examine /var/spool/lp/log - that should reveal any problems. If you installed (or moved) the JetAdmin software to a different location on the old and new boxes then the interface scripts will need to be changed to reflect the new path.

Regards, Clay
If it ain't broke, I can fix that.