Re: moving printers to different machine (61 Views)
Reply
Regular Advisor
Jeff Hagstrom
Posts: 321
Registered: ‎10-18-2000
Message 1 of 6 (61 Views)
Accepted Solution

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?
Esteemed Contributor
Vincent Stedema
Posts: 273
Registered: ‎02-04-2001
Message 2 of 6 (61 Views)

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
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 3 of 6 (61 Views)

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.
Honored Contributor
Rainer von Bongartz
Posts: 1,015
Registered: ‎02-01-1999
Message 4 of 6 (61 Views)

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 ...
Respected Contributor
Herve BRANGIER
Posts: 215
Registered: ‎07-06-2000
Message 5 of 6 (61 Views)

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
Acclaimed Contributor
A. Clay Stephenson
Posts: 17,825
Registered: ‎07-16-1998
Message 6 of 6 (61 Views)

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.