1846449 Members
2792 Online
110256 Solutions
New Discussion

migrate print queue

 
SOLVED
Go to solution
jok llamera
Advisor

migrate print queue

hi fellas,

I want to know how to migrate print queue from one machine(hpux) to another(hpux).

Thanks,
joks
Excelence is not an act but a hobby
5 REPLIES 5
Steve Steel
Honored Contributor
Solution

Re: migrate print queue

Hi


This should work
1)On the original system
SAM
Printers and Plotters
Lp Spooler
Save/Restore Spooler Configuration
Select
Actions Menu
Save Spooler Configuration

This will save all the information into the
directory /var/sam/lp.

Tar directory /var/sam/lp

# tar cvf /tmp/lp.tar /var/sam/lp

Copy /tmp/lp.tar, to second system.

Unpack the file on the box.

# tar xvf lp.tar


Execute
SAM
Printers and Plotters
Lp Spooler
Save/Restore Spooler Configuration
Then
Actions Menu
- Restore Spooler Configuration

This will rebuid using the information from the files, creating a copyof the other system.

An error may occur when restoring tif the root umask is not set to 022.



steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ian Dennison_1
Honored Contributor

Re: migrate print queue

If the definitions are the same,...

Create the new printer on the remote system.
Set up the new printer on the source system as a remote printer.
Change all references from applications etc to the new printer.
Disable the old printer
Perform an lpalt command for all printouts queued to the old printer to the new printer (from the source system).

Share and Enjoy! Ian
Building a dumber user
Carlos Fernandez Riera
Honored Contributor

Re: migrate print queue

Steven Sim Kok Leong
Honored Contributor

Re: migrate print queue

Hi,

Just copying /var/spool/lp and /etc/lp directories over works for me.

Hope this helps. Regards.

Steven Sim Kok Leong
Darrell Allen
Honored Contributor

Re: migrate print queue

I presume the OS level is the same on both servers. I'm not sure if the spooler is compatible on different OS levels.

If you have network and remote printers entered in /etc/hosts, you'll want to bring that over also. Also network routes could possibly be needed.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)