1847208 Members
2961 Online
110263 Solutions
New Discussion

Printer transfer

 
Wael_4
Advisor

Printer transfer

one of my plans is to install hpux 11.11 on N4000 system actualy we have a productive system that is running on N4000 class with hpux 11.00 and we have a test host with the same configuration and I need after installing the hpux 11.11 to get the whole print system and spool system configuration from the productive system to the test system without affecting that new installation.

we have more than 100 printers on the productive system and I need to bring them all to the test system before delivering the system to the users.
kindly help me in this issue.
regards;
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: Printer transfer

Install JetDirect software on the new box. I'll assume that you have hostname resultion (DNS,NIS(+),LDAP, and/or /etc/hosts) already setup.

On the old box, do an lpstat -t and cancel any hung/old print jobs. There's no point in moving them. Next do an lpshut.
As root (on the old box):
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/lp.cpio

Now ftp/rcp /var/tmp/lp.cpio from the old box to the new box.

On the new box:
lpshut
Now we'll save the current configuration (just in case).
cd /
find ./var/spool/lp ./etc/lp -print | cpio -ocv > /var/tmp/newlp.cpio
cd /var/spool
rm -r lp
cd /etc
rm -r lp
cd /
cpio -icvdum < /var/tmp/lp.cpio

Now, if your old box was running JetAdmin instead of JetDirect, we need to update your interface files. This is done by running /opt/hpnpl/bin/transferqueue local;
respond with all.

Finally, lpsched and everything including the default printer is setup.


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