Operating System - HP-UX
1748157 Members
3976 Online
108758 Solutions
New Discussion юеВ

Re: copying printer config files

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

copying printer config files

Hello guru's

Can someone help - we have setup printers at an offsite vendor during a firewall change. The issue I have is we have another server with exactly the same configuration as standby and need to copy the printer config files over to match that on the production box.

1> is this possible?
2>what are the files to copy

we have 4 printers that need adding to the config on our spare server.

Thansk in advance guys.
hello
4 REPLIES 4
Ermin Borovac
Honored Contributor
Solution

Re: copying printer config files

To transfer printer configuration from one system to another you can use

/* on the production server */
# /usr/sam/lbin/lpmgr -S -xsavedir=/tmp/lpsave

Copy /tmp/lpsave from production to spare server.

/* on the spare server */
# /usr/sam/lbin/lpmgr -R -xsavedir=/tmp/lpsave

You may want to stop lpsched before running lpmgr.
Julio Yamawaki
Esteemed Contributor

Re: copying printer config files

Hi,

By using SAM, you can save your spooler configuration:
1. Call sam
2. Go to Printers and Plotters
2.1 Go to LP Spooler
2.1.1 Go to Save/Restore Spooler Configuration
2.1.1.2 Save Spooler Configuration

Copy contents of directory: /var/sam/lp to the other unix box.

Make all steps above, changing step 2.1.1.2 to Restore Spooler Configuration.

Notice that all configuration MUST be the same in both unix boxes.

Regards,

lawrenzo_1
Super Advisor

Re: copying printer config files

brilliant I'll test these and then run in production.

Thanks
hello
lawrenzo_1
Super Advisor

Re: copying printer config files

TY
hello