Operating System - HP-UX
1836270 Members
2120 Online
110097 Solutions
New Discussion

restoring printer configuration

 
vijila
Advisor

restoring printer configuration

Hi,

I have followed the following steps to resore the printer configuration. But it is not restoring the printers. Please go through this and let me know the error in the method what i have followed.


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:-
# swlist | grep -i direct
J4189-11001C E.10.34 Hewlett-Packard JetDirect Printer Installer for Unix

On the target system
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


Thank you in advance
Vijila
3 REPLIES 3
Geoff Wild
Honored Contributor

Re: restoring printer configuration

THis is how I've done it:

echo "Backing up the spooler configuration to /var/sam/lp/lp.new....please wait..." ; /usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/


tar cvf lp.tar /var/sam/lp/

scp that tarbal to new server.

tar xvf lp.tar

echo "Restoring the spooler configuration....please wait..."; /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp/

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Tim Nelson
Honored Contributor

Re: restoring printer configuration

I have always done this with success with the same method you have mentioned.

execute "backup spooler config" in sam
tar up /var/sam/lp

untar on destination server
execute "recover spooler config"

Have not needed the transferqueue command

What is actually happening ? Errors ? Missing ?

Tor-Arne Nostdal
Trusted Contributor

Re: restoring printer configuration

Do you have same version of HP-UX ?

I've done this many times with success, but mainly used same method as Geoff describe (as this is what sam actually does, but it's just faster than entering sam :-)

The only times I've experienced it failed was when copying printers from PA-Risc to Itanium.

This is due to a difference in the file structure for the software, but can be overcome by creating some links.

Remember that the scheduler should not run while you're restoring printers... and remember to start it again when you're finished ;-)

/Tor-Arne
I'm trying to become President of the state I'm in...