Operating System - HP-UX
1830895 Members
1508 Online
110017 Solutions
New Discussion

Re: printer queue migration

 
SOLVED
Go to solution
Bolek Mynarski
Frequent Advisor

printer queue migration

We are in the process of migrating from 10.20 to 11.00 of HP-UX. On our "old" system, we had about 200 printer queues. Obviously, I really do not want to re-enter all the printers manuall via jetadmin.

I was reading man pages on lp and so far, I concluded that if I copied the following directories:

/etc/lp
/usr/lib/lp
/var/adm/lp
/var/spool/lp

directories, I should be pretty much OK. However, the only thing that worries me is the version of jetadmin used for prtiner interface on 10.20 versus 11.00.

Could somebody give me some tips before I get myself into 'hot water'?

Thanks.
It'snever too late to learn new things...
4 REPLIES 4
Krishna Prasad
Trusted Contributor

Re: printer queue migration

In SAM under printers there is an option to save your lp or spooler configuration. You save that file. Either to tape or move it to a different box. Install your new OS. Then move this file back and in SAM under printers there is a restore option.

The file should be /var/sam/lp/lpinfo
Positive Results requires Positive Thinking
Steve Steel
Honored Contributor
Solution

Re: printer queue migration

Hi

/opt/hpnp/bin/transferqueue

Has man page


transferqueue(1) transferqueue(1)

NAME
transferqueue allows users to transfer all Unix JetAdmin/JetDirect
Printer Installer Utility created queues from one Unix host to another
in the JetDirect Printer Installer Utility environment.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Helen French
Honored Contributor

Re: printer queue migration

Hi,

The best choice would be storing your Printer configuration throuh SAM.

SAM -> Printers and Plotters -> LP spooler -> Save/Restore spooler configuration.

Directly copying the /etc/lp files to the new system is not a good idea, you can refer those files if needed.

HTH,
Shiju
Life is a promise, fulfill it!
Ross Martin
Trusted Contributor

Re: printer queue migration

There is no supported way to transfer printer definitions from one HP9000 to
another. However, the following procedure can be used as a workaround. If the
procedure does not work, the printers will have to be added using the normal
methods.

1 - On the machine that has the printers you want to duplicate(system A), do
the following:
a) Go into SAM 'Printers and Plotters' area
b) Go to 'Save/Restore Spooler Configuration'
c) Go to 'Actions'
d) Click on 'Save Spooler Configuration'
e) Exit out of SAM
f) cd /var/sam/lp
g) tar cvf sam.tar *
h) transfer the sam.tar file to the system on which you want to
duplicate the printers(system B)

2 - On System B, do the following:
a) If the spooler state has not been saved before, the /var/sam/lp
directory will need to be created:
mkdir /var/sam/lp
b) Move the sam.tar file to /var/sam/lp
mv sam.tar /var/sam/lp/sam.tar
c) cd /var/sam/lp
d) tar xvf sam.tar
e) Go into SAM 'Printers and Plotters' area
f) Go to 'Save/Restore Spooler Configuration'
g) Go to 'Actions'
h) Click on 'Restore Spooler Configuration'

If all goes well, the printer configuration should be the same on System B as
it was on System A. If not, then all the printers will have to be readded
manually.

More information is available in the HP-UX System Administration Tasks manual.
"man manuals" will give you ordering information and part numbers.

Most HP documentation is avaialable online at:
http://www.docs.hp.com

Hope that helps.

Ross Martin
HP Response Center