Operating System - HP-UX
1752778 Members
6195 Online
108789 Solutions
New Discussion юеВ

Re: move printer configuration (one more time!)

 
SOLVED
Go to solution
donna hofmeister
Trusted Contributor

move printer configuration (one more time!)

hi all!

i've been asked to move the printer configuration from one system to another.

i've duly consulted the itrc and have found threads like this:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1264087200322+28353475&threadId=1248284

i think i've been thru every iteration of how to do this. regardless of the method, i am consistently getting error messages like this on the destination machine (for each printer):

chmod: can't access /etc/lp/interface/model.orig/*
cp: cannot create /var/spool/Xerox/xpxx/printer.foo.com/.49xxprinter: No such file or directory
/var/spool/Xerox/xpxx/printer.foo.com/.49xxprinter: No such file or directory

(just be clear i *am* root!)

to add a bit more to the story....the source system is 11.11, the destination box is 11.23. is that the real problem? if so, is there a way to do this?

thanks!
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: move printer configuration (one more time!)

>regardless of the method

It would help if you showed which method you used. Using SAM directly and tar? Or lpmgr?

>the source system is 11.11, the destination box is 11.23.

I thought the problem was going to 11.31?
donna hofmeister
Trusted Contributor

Re: move printer configuration (one more time!)

i did the lpmgr...tar...ftp...lpmgr dance.
i did a variation on the above four-step that involved using cpio.
finally i did the sam....ftp...sam waltz.

doesn't matter -- in every case i got the same errors.
Dennis Handly
Acclaimed Contributor

Re: move printer configuration (one more time!)

>in every case I got the same errors.

I had no problems going from 11.11 to 11.23.
But I only have remote printers, no network ones, like it seems you have.

What type of printers and how many do you have?
donna hofmeister
Trusted Contributor

Re: move printer configuration (one more time!)

xerox -- but they're configured via hppi (JetDirect).
Robert Salter
Respected Contributor

Re: move printer configuration (one more time!)

New dance; transferqueue

To copy the Jet Direct printer queues from one server to another.

Remove any ├в old├в unused queues from /etc/lp/interface.

Change directory to /etc/lp/interface and tar up the queues, the tarfile name must be ├в queues.tar├в
cd /etc/lp/interface
tar /tmp/queues.tar *

Copy the tar file to the other server.
scp /tmp/queues.tar srvrX:/tmp/

On srvrX run ├в transferqueue├в . This server must have Jet Direct installed on it.
/opt/hpnpl/bin/transferqueue


Try it... you like it!

Beers,

robert
Time to smoke and joke
Robert Salter
Respected Contributor
Solution

Re: move printer configuration (one more time!)

That was ugly wasn't it?

Cleaned it up

To copy the Jet Direct printer queues from one server to another.

Remove any "old" unused queues from /etc/lp/interface.

Change directory to /etc/lp/interface and tar up the queues, the tarfile name must be "queues.tar"
cd /etc/lp/interface
tar /tmp/queues.tar *

Copy the tar file to the other server.
scp /tmp/queues.tar srvrX:/tmp/

On srvrX run "transferqueue". This server must have Jet Direct installed on it.
/opt/hpnpl/bin/transferqueue
Time to smoke and joke
donna hofmeister
Trusted Contributor

Re: move printer configuration (one more time!)

thank you - d
donna hofmeister
Trusted Contributor

Re: move printer configuration (one more time!)

...and thanks to dennis too!