1758546 Members
1942 Online
108872 Solutions
New Discussion юеВ

Re: Transfering Printers

 
machaya chivaviro_2
Occasional Advisor

Transfering Printers

I have 70 printers created on my old box with HP-UX 11 and I do not want to create these one by one on the new server runing Hp-Ux 11i.
Can I just copy the directory files
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Transfering Printers

I believe you can use SAM > Printers and Plotters > Save LP Spooler Configuration to create the /var/sam/lp/lpinfo file, which can then be copied to the new system. Once you get it to the new system, use SAM > Printers and Plotters > Restore LP Spooler Configuration to rebuild your printers.


Pete

Pete
MRSG
Frequent Advisor

Re: Transfering Printers

I believe SAM uses /usr/sam/lbin/lpmgr for this with the -S switch

USAGE: lpmgr -a | -d | -e | -f | -l | -r | -R | -s | -S | -X file [-v] [-x lpmgr-opts]
a - Add a remote printer.
d - Disable a printer (includes by default doing reject(1M)).
e - Enable a printer (includes by default doing accept(1M)).
f - Modify a printer's fence priority.
l - List info about printers configured on the local system
or about print requests.
r - Remove a printer.
R - Restore previously saved lp configuration.
s - Set a printer to be the system default destination.
S - Save the current lp configuration.
X file - Perform the actions specified in file.


Raj D.
Honored Contributor

Re: Transfering Printers

Hi Machaya,

Here is something that will help you:


----------------------------------------
1. Save the Printer configurations in old servre.:

# /usr/sam/lbin/lpmgr -S -v -xsavedir=/home/printers/

2. archive this directory to a single file, and ftp this to the new server.

3. extract the file on the new server in same location: ie. /home/printers/


4. Restore the configurations of the printers on new server:

using:
# /usr/sam/lbin/lpmgr -R -v -xsavedir=/home/printers/

5. check with
# lpstat -t | grep printer_name
--------------------------------------------

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Geoff Wild
Honored Contributor

Re: Transfering Printers

Here's the procedure I use:

/usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/
cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/

tar up /var/sam/lp

Then on remote system, un tar it then:

/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.