1833627 Members
3439 Online
110062 Solutions
New Discussion

moving printers

 
Shane Russell
Regular Advisor

moving printers

Hi,

I am migrating my HP-UX 11.00 system to a new HP-UX11i system. I have 30 or 40 remote and network printers that I need to move.

Is there any file I can copy over or so I need to recreate them all in SAM,

regards,
Shane
6 REPLIES 6
Ralph Grothe
Honored Contributor

Re: moving printers

If I remeber correctly you can copy the whole subdir of /var/sam/lp and import all printers on the new box

e.g.

# cd /var/sam && tar cf - lp|remsh newbox 'cd /var/sam tar xf -'

there start sam and go to the printers section.

But be careful if you already have defined printers on newbox, they will be lost!
Madness, thy name is system administration
Shane Russell
Regular Advisor

Re: moving printers

Thanks Ralph,

However, there is no /var/sam/lp directory on my old box.

Any other ideas anyone?
Ralph Grothe
Honored Contributor

Re: moving printers

Oops, typo in the remsh part insert two ampersands.
Also on oldbox you first need to save your current print queues with sam if you haven't administered them with that tool.
Madness, thy name is system administration
Shane Russell
Regular Advisor

Re: moving printers

All,

I have used SAM to save the printer configuration on the old box and un-tarred it to the new server.

Then in SAM I select can see my 132 printers and try to restore them. However, even thought it says that they were successfully restored I do not see them in the Printers/Plotters.

lpstat does not show any printers
root@nquinch:/root # lpstat
no entries

regards,
Shane
Shane Russell
Regular Advisor

Re: moving printers

I resolved my issue as follows:

Save Spooler Configuration
On the source system using SAM --> Printers & Plotters --> LP Spooler --> Save/Restore Spooler Configuration.

Select Actions --> Save Spooler Configuration to save the configuration to /var/sam/lp

On the source system excute "tar cvf /var/tmp/printers.tar /var/sam/lp and transfer to target system.

Restore Spooler Configuration
On the target system excute "tar xvf printers.tar"

On the target system excute "chmod 755 /var/sam/lp"

Ensure the following is installed:-
root@nquinch:/var/sam/lp # swlist | grep -i direct
J4189-11001C E.10.34 Hewlett-Packard JetDirect Printer Installer for Unix

On the target system using SAM --> Printers & Plotters --> LP Spooler --> Save/Restore Spooler Configuration.

Select Actions --> Restore Spooler Configuration to restore the configuration to /var/sam/lp

Run the following command after restoring the printer/spooler configuration through SAM:
# /opt/hpnpl/bin/transferqueue local
Enter the queue name or all to modify all the queues : all

Thanks to all for your help

Shane
Shane Russell
Regular Advisor

Re: moving printers

thanks