Operating System - HP-UX
1854675 Members
19214 Online
104102 Solutions
New Discussion

Adding printers without lpshut/lpsched

 
Bart_6
Advisor

Adding printers without lpshut/lpsched

Is there a way to add a remote printer to the system without stopping the printer scheduler/daemon?
oh no.... not THAT again
6 REPLIES 6
BFA6
Respected Contributor

Re: Adding printers without lpshut/lpsched

I'm not aware of a way to add a remote printer without stopping the print scheduler.
If there is a way I would be very interested to know how to do it.

Regards,

Hilary
Pete Randall
Outstanding Contributor

Re: Adding printers without lpshut/lpsched

Hi,

Hillary's right - from man lpadmin:

=====quote=====
lpadmin configures LP spooling systems to describe printers, classes
and devices. It is used to add and remove destinations, change
membership in classes, change devices for printers, change printer
interface programs, and to change the system default destination.
lpadmin cannot be used when the LP scheduler, lpsched(1M), is running,
except where noted below.
=====unquote=====


The exception being the -d option to set a default and the -v option to associate a new device file with a given printer.

The answer is no, you can't add a remote printer without stopping the scheduler.

Pete

Pete
Victor_5
Trusted Contributor

Re: Adding printers without lpshut/lpsched

I don't think you can do it, why you don't want lpshut/lpsched?
Bart_6
Advisor

Re: Adding printers without lpshut/lpsched

Because in this particular large system there are many busy printers on may different locations printing mostly large jobs.
When adding a printer and shutting down the scheduler for a moment, all running jobs are stopped. Although after a restart jobs will be printed again it's quite a nuisance.
oh no.... not THAT again
Pete Randall
Outstanding Contributor

Re: Adding printers without lpshut/lpsched

I hear you, it can be difficult to find a "quiet" time when you can work on the printer configuration. You almost have to schedule a maintenance window.

Pete

Pete
Victor_5
Trusted Contributor

Re: Adding printers without lpshut/lpsched

I got you, I met the similar situation before, it depends on what kind of print job you are printing, in my case, they were printing long label for shippment which means we could not afford even 1 second stop, as far as I know, you must restart lp daemon when you add a new printer, in that case, you have to arrange a change window, for me, I always wait after 7:00pm.

However, in my current environment, if something wrong, the operator can reprint it, so I have more flexibility to do lpshut/lpsched, actually, the whole adding process only cost you a couple of minutes.