1834601 Members
3585 Online
110069 Solutions
New Discussion

Printer migration

 
SOLVED
Go to solution
Russell James Walicki
Occasional Contributor

Printer migration

I am currently upgrading a number of HPUX 10.20 systems to HPUX 11.00 on new hardware. I've been able figure out what I need to tarball on each system to retain their 'settings' for everything EXCEPT the PRINTERS. Making an ignite image for each system is impractical. I've created a standard HPUX 11 ignite image which is installed first, then the 'system personality' tarball is installed next. This tarball includes system specific configuration info (host, dns, netconf, senmail, etc . . . ) along with application specific directory trees.

Is there a list of files and/or directories that I can tar up and copy over that will migrate the printers without having to re-configure them on the new machine?
3 REPLIES 3
doug mielke
Respected Contributor

Re: Printer migration

I've used SAM to move printer configs to other servers, all in vers. 11.0. It works great,
save spooler config==> makes a file in the one of the SAM subdirs. Move that file over to new system, run sam resore spooler config, and you're there.
or I imagine you could copy all of the files under /var/spool/lp to the new system...
Jeff Schussele
Honored Contributor

Re: Printer migration

Hi Russell,

If you have JetDirect Printer Installer or the newer named products, they have a command named
transferqueue
that is specifically for this task.
command would be something like:
/opt/hpnpl/bin/transferqueue backup
that will create a tarball named
/tmp/queues.tar
that can be used to "import" the queues onto the newly loaded system.
See
/opt/hpnpl/TRANSFER.UNX
for details.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Printer migration

It's rather easy.

1) Go ahead and install the newer JetDirect (as opposed to JetAdmin) software on your 11.0 box. Make sure all your printer hostnames are defined in /etc/hosts, DNS, and/or NIS(+).

2) On your 11.0 box, do an lpshut.

3) Now, we will save the 11.0 stuff -- just in case.
cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /mydir/lp1100.cpio

4) Now on your 10.20 box:
lpstat -t and look for any hund/old print jobs. Cancel them -- no point in moving them.
lpshut

5) cd /
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /mydir/lp1020.cpio
rcp/ftp /mydir/lp1020.cpio to your 11.0 box

6) Now back on the 11.0 box,
cd /
cpio -icvdum < /mydir/lp1020.cpio

7) If your old Network printers used JetAdmin, we need to convert them to the newer JetDirect software:
cd /opt/hpnpl/bin
./transferqueue local
when prompted, respond 'all'.

8) lpsched

At this point, everything, including default printer, should be "good to go".

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