Operating System - HP-UX
1833780 Members
2257 Online
110063 Solutions
New Discussion

Moving printers to other nodes

 
Mike_21
Frequent Advisor

Moving printers to other nodes

I have to move about 50+ printer q's to another node, I think they were added using Jetadmin or something, is there a simple way to move them without manually re-creating??????

Thanks
5 REPLIES 5
Craig Rants
Honored Contributor

Re: Moving printers to other nodes

/etc/lp/member contains info on all the configured queues on the box. I have never tried to use that info to move all my printers, but that would be a good place to start.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Steve Steel
Honored Contributor

Re: Moving printers to other nodes

Hi


Install the jetadmin on the other node then
use sam to export on 1 machine and import on the other.The save is in /var/sam/lp


It is in printer plotters

LP spooler

save restore spooler config

Overview of Spooler Configuration Window ^
| The Save/Restore Spooler Configuration window is one of several that
| are related to managing Printing and Plotting devices. This window is |
| used specifically to save the current spooler configuration and restore |
| it. To change to other printers/plotters subareas, use the [List] menu. |
| . |
| |
| The Save/Restore Spooler Configuration window displays a list of all |
| printers and plotters and classes that existed when the last save was |
| done. See Interpreting the Spooler Configuration List for more |
| information about this list. |
| Use This Window To:

* Save the current spooler configuration and related information ^
| about printers, plotters, and device classes. (SAM automatically |
| saves the current configuration each time it is changed when you |
| use SAM to make the changes.) No information about print requests
| is preserved. |
| |
| * Restore the previously saved spooler configuration. This is usually |
| in response to the spooler becoming corrupt, and is an easy way to |
| recreate the most recently saved configuration. Any pending jobs |
| are lost because the current queues are destroyed during |
| restoration. |
|


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Tommy Brown
Respected Contributor

Re: Moving printers to other nodes

The "Old" Jetadmin had a transferqueue utility that allowed this to be a fairly simple task. I am not sure, because I havenot tried it, but maybe you could use the SAM save and restore printer configuration feature to move your printer definitions..
TOmmy
I may be slow, but I get there !
Deshpande Prashant
Honored Contributor

Re: Moving printers to other nodes

HI
Writing a simple script might ease out your work.

#lpstat -p |grep printer |awk '{print $2}' >PRINTER_LIST
Will list all your printers on existing system.
As long as you have these printers with their ip defined in /etc/hosts or in NIS, you can use addqueue command to create printers of remote system.
#addqueue -h -q

To create printers listed in "PRINTER_LIST" file created on old host,
for i in `cat PRINTER_LIST`
{
addqueue -h -q $i
}


HTH
Thanks.
Prashant.
Take it as it comes.