Operating System - HP-UX
1854680 Members
11642 Online
104102 Solutions
New Discussion

Moving printers from 10.20 to 11.11

 
SOLVED
Go to solution
Guy Humphreys
Valued Contributor

Moving printers from 10.20 to 11.11

Hi Everyone,

Is it possible to move print queues and drivers from a 10.20 box to a 11.11 one using the sam save/restore spooler config option?

and if so are there any special steps needed to cope with the OS version change?

thanks a lot for any help with this,
cheers
Guy
'If it ain't broke, don't fix it!'
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Moving printers from 10.20 to 11.11

Shalom Guy,

I think your methodology will work with the standard lp print spool.

Any printers supported under 10.20 should work with the later release.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Moving printers from 10.20 to 11.11

Yes, although I wouldn't bother with that sam stuff.

First, if you are running 10.20, you are almost certainly running JetAdmin. You need to install (using swinstall) the latest JetDirect software on your 11.11 box.

http://h20180.www2.hp.com/apps/Lookup?h_lang=en&h_cc=us&cc=us&h_page=hpcom〈=en&h_client=S-A-R163-1&h_pagetype=s-002&h_query=JetDirect

Next, you need to make sure that hostname resolution works on the new box so update /etc/hosts, if necessary so that the new box is able to resolve all the printer hostnames. You may need to do nothing if your are using DNS or NIS for hostnames other than configure /etc/resolv.conf and/or /etc/nsswitch.conf.

On the old box,
do an lpstat -t and identify any old, hung printjobs and cancel them. Next do an lpshut.

cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/lp.cpio.1020

Copy /var/tmp/lp.cpio.1020 to the new box using ftp, rcp, ... .

On the new box,
lpshut # make sure lpsched is not running

cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/lp.cpio.save # so that we won't need it, a safe copy

cpio -icvdum < /var/tmp/lp.cpio.1020

Next we need to convert all the JetAdmin interface files to use the JetDirect equivalent commands.


/opt/hpnpl/bin/transferqueue local
and when prompted respond "all".

lpsched

Now everything, including the default printer, should be good to go.

If it ain't broke, I can fix that.
Guy Humphreys
Valued Contributor

Re: Moving printers from 10.20 to 11.11

Thanks Guys,

I have now done the migration - it took hardly any time and all printers are working fine now on the new box.

I thought it was going to be a much bigger headache than it was.

Cheers
Guy
'If it ain't broke, don't fix it!'