Operating System - HP-UX
1833598 Members
3544 Online
110061 Solutions
New Discussion

moving printers from a system to another ( printer mirror)

 
federico_3
Honored Contributor

moving printers from a system to another ( printer mirror)


I need to define many many printers ( actually defined on a 10.20 machine) to a 11.00 machine. Is there the possibility to perform this task rapidly? I did like this ( following some suggestions):
into SAM -> printer and plotters -> lp spooler -> save/restore spooler configuration. Then, Actions -> Save spooler configuration. This will write all your printer defs to /var/sam/lp. Tar/copy this directory to the new server's /var/sam/lp directory. Go into the new server's SAM -> printers and plotters -> lp spooler -save/restore configuration. Select Actions -> restore spooler configuration. Doing like this the directory /etc/lp/interface is empty....

How can i proceed on to have the printers defined an functioning on the new server


Federico

7 REPLIES 7
Rainer von Bongartz
Honored Contributor

Re: moving printers from a system to another ( printer mirror)


do you have the following ??

cd /var/spool/lp

ll | grep interface

lrwxrwxrwt 1 root sys 17 Aug 6 2001 interface -> /etc/lp/interface

if you dont't have this symbolic link but a regular directory interface then /etc/lp/interface will of course be empty

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
steven Burgess_2
Honored Contributor

Re: moving printers from a system to another ( printer mirror)

Federico

Check /var/sam/lp on the 10.20 server. Does this area have interface file ?

If not, make a copy of that and move across also. I suppose it does defeat the object of a 'quick' move though

Will be interested to see how this is resolved if the above does not help

Regards

Steve

take your time and think things through
federico_3
Honored Contributor

Re: moving printers from a system to another ( printer mirror)

I have the symbolic link .. How come the interface directory is empty?
federico_3
Honored Contributor

Re: moving printers from a system to another ( printer mirror)

Steven,

the interface directory under /var/sam/lp on the 10.20 server is empty....Is it normal??
Ravi_8
Honored Contributor

Re: moving printers from a system to another ( printer mirror)

Hi,

when the printer is added, the kernel will be modified and the machine reboots, when you are moving/copying the /var/lp file to another machine only the files will be copied, but the kernel of that machine is unaware of the printers. I think you need to add those printers to machines one by one.
never give up
steven Burgess_2
Honored Contributor

Re: moving printers from a system to another ( printer mirror)

Federico

We don't actually use lp in our environment, so can't give you experienced knowledge. But
according to our man rafeeq ( i'm at home studying)

/etc/lp/interfaces

This direcory contains programs that are used to format printed data of a particular type of printer.

Here is the key :-

The printer Model/Interface is the name of the program that will be used with the printer. The model or interface names are present in the /usr/lib/lp/model directory. If there is no interface programme for your printer you can use a dumb model, but in this case you will not be able to use all of the printers capabilites

When you add a printer, the appropriate program is copied from /usr/lib/lp/model to the dir /etc/lp/interfaces. While copying, the program is renamed to match the printer name.

So

When you add a printer , you can give whatever name you like

lpadmin -pfederico1 -mhplj4 -v/dev/lp

The command adds a printer named laser on the device file /dev/lp. The INTERFACE programme used for this printer is hplj4 (HP LASERJET4)

I/You would presume that all this is done when you initially used sam to copy the spooler details from save spooler configuration option.

I can't remeber where the scripts are held for sam utilites - haven't got a workstation at home just a PC. Find it and have a look to see what it actually does. Yu will then have your answer as per what actions are taken

Hope this helps

Steve

take your time and think things through
Yogeeraj_1
Honored Contributor

Re: moving printers from a system to another ( printer mirror)

hi federico,

try transferqueue script found in: /opt/hpnp/bin/

Read document: TRANSFER.UNX in same directory for more details.

Worked for me when i moved from HP-UX10.20 to HP-UX11.0

hope this helps
Cheers
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)