Operating System - HP-UX
1833877 Members
2436 Online
110063 Solutions
New Discussion

How to move remote printer configurations from 10.20 server to 11.0 server

 
Andrew Chen_1
Occasional Advisor

How to move remote printer configurations from 10.20 server to 11.0 server

Hi,

We are migrating applications from a server running HPUX 10.20 to another server that is running HPUX 11.00, is there a way to move printer configurations to this HPUX 11.0 server without losing existing printer configurations?

Thanks in advance,
Andrew
Relax, everything will be OK
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: How to move remote printer configurations from 10.20 server to 11.0 server

Andrew:

Here's a thread that discussed (and addressed) this need:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x76fe6c96588ad4118fef0090279cd0f9!1,00.html

...JRF...
Victor BERRIDGE
Honored Contributor

Re: How to move remote printer configurations from 10.20 server to 11.0 server

I dont quite understand, if your printers are local to your HPUX10.20 box and you are migrating an apps to another HPUX11 box and want to keep the config, then it seems logical to declare on the HPUX11 box your HPUX10.20 printers as remote printers. Using SAM to perform this tasks is dead easy...

Good luck

Victor
Andrew Chen_1
Occasional Advisor

Re: How to move remote printer configurations from 10.20 server to 11.0 server

Apologize for not making myself clear. What I have right now on the server 10.20 are a bunch of remote printer configurations, there are also some printer configurations on server that I am migrating applications.

I know how to move printer configurations from one server to another server, but this would mean that I will lose my existing printer configurations on server that is running HPUX 11.00. My question is that if there is a way to merge printer configurations together from these two servers.
Relax, everything will be OK
NAJMUS
Advisor

Re: How to move remote printer configurations from 10.20 server to 11.0 server

hi
you can do it by backuping the above folder :
/etc/lp,/usr/spool/lp,/var/spoll/lp
from your 10.20 server,then restore them to you new server without losing the existing printer.
Regards
Tommy Palo
Trusted Contributor

Re: How to move remote printer configurations from 10.20 server to 11.0 server

I have a script addRemotePrinter:

#!/usr/bin/ksh

if [ $# != 3 ]; then
echo
echo "Required arguments are: LOCALNAME REMSYS REMNAME"
echo
exit
fi

LOCALNAME=$1
REMSYS=$2
REMNAME=$3

#* Stop the lp scheduler.
/usr/sbin/lpshut

#* Add the printer to the lp spooler.
/usr/sbin/lpadmin -p$LOCALNAME -orm$REMSYS -orp$REMNAME -mrmodel -v/dev/null -orc -ocmrcmodel -osmrsmodel

#* Tell the lp scheduler to accept print requests for it.
/usr/sbin/accept $LOCALNAME

#* Tell the lp scheduler to enable it to print accepted print requests.
/usr/bin/enable $LOCALNAME

#* Start the lp scheduler with logging turned off.
/usr/sbin/lpsched



Run "lpstat -v" on both servers to get a list of all printers, and then run the above script for all the printers on each server.
Keep it simple