Operating System - HP-UX
1833767 Members
2413 Online
110063 Solutions
New Discussion

Re: Migratye Printer Configure from one system to another

 

Migratye Printer Configure from one system to another

Hi,

I am trying to migrate the print configuration from one HPUX system onto another. I know you can use the the save tool within SAM. But I am not sure if this does all of the LP configuration required
Which does not kill you only makes you stronger
3 REPLIES 3
Rainer von Bongartz
Honored Contributor

Re: Migratye Printer Configure from one system to another

It does....

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Bhuvaneswari Selvaraj
Valued Contributor

Re: Migratye Printer Configure from one system to another

Save it using SAM on one system. Just copy the contents of /var/sam/lp on to the system which you want to copy and retrieve on the other system using SAM.
Stuart Abramson_2
Honored Contributor

Re: Migratye Printer Configure from one system to another

3. Copy print queues from one server to another:

rlogin gbo390-d -l root
# save print que
/usr/sam/lbin/lpmgr -S -xsavedir=/var/sam/lp 2>&1
# transmit to other machine
rdist -Rc /var/sam/lp 2>&1
# configure print queue
remsh /usr/sam/lbin/lpmgr -R -xsavedir=/var/sam/lp 2>&1
# start print scheduler
remsh /usr/sbin/lpsched

4. Merge print queues..

On source:
/usr/sam/lbin/lpmgr -S
cd /var/sam/lp
mv lpinfo lpinfo.source
tar cvf tar.source .
On target:
/usr/sam/lbin/lpmgr -S
cd /var/sam/lp
mv lpinfo lpinfo.target
rcp -rp source:/var/sam/lp/tar.source .
tar xvf tar.source
cat lpinfo.source lpinfo.target | sort | uniq > lpinfo.new
compare lpinfo-s
mv lpinfo.new lpinfo
rm tar.source
/usr/sam/lbin/lpmgr -R

Note: Don't leave ANY files in the print structure. He might think
they are print queues !!