Operating System - HP-UX
1829148 Members
2276 Online
109986 Solutions
New Discussion

export Printer configuration

 
Nabil_11
Frequent Advisor

export Printer configuration

Hi all,

I have around 80 remote printer configured on HP-UX V2 server.

is it possible to export the configuration and import it at new server

Regards

Nabil
4 REPLIES 4
Robert-Jan Goossens_1
Honored Contributor

Re: export Printer configuration

Hi Nabil,

Have a look at this thread.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=960651

Regards,
Robert-Jan
A. Clay Stephenson
Acclaimed Contributor

Re: export Printer configuration

Here's a rather complete procedure that will transfer all local, Network, and Remote printers:

NOTE: Do all of these operations as root.

1) Get your hostname resolution working on the new box (/etc/hosts, NIS, NIS+, DNS, LDAP) as it does on the old so that printer hostnames can be resolved.

2) Install the JetDirect software on the new box.

3) On the old box:
lpshut
/usr/sam/lpbin/lpmgr -S -xsavedir=/var/sam/lp
cd /var/sam
chown -R lp:lp lp # this prevents problems later when we restore
find lp -print | cpio -ocv > /var/tmp/samlp.cpio
lpsched

4) Copy /var/tmp/samlp.cpio from the old box to the new using rcp, sftp, ftp, ...

5) On the new box:
cd /
lpshut
find ./etc/lp ./var/spool/lp -print | cpio -ocv > /var/tmp/lp.cpio # just in case

6) cd /var/sam
cpio -icvdum < /var/tmp/samlp.cpio
/usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp

7) lpsched
If it ain't broke, I can fix that.
Tim Nelson
Honored Contributor

Re: export Printer configuration

SAme answer as Clay's. But use SAM

SAM LP spooler, save config

tar up the /var/sam/lp

copy tar file to new system

untar

SAM LP Spooler, restore config on new server.

Nabil_11
Frequent Advisor

Re: export Printer configuration

Thanks all,