1833875 Members
1752 Online
110063 Solutions
New Discussion

Printer

 
j773303
Super Advisor

Printer

Anytime a printer is added to the lp spooler, SAM stops and restarts the scheduler. This causes all currently printing jobs scheduled by your host to restart at page 1.

My question is what's the page 1?
If scheduler was stoped, what happend the currently printing jobs? the jobs would cancel or pending after scheduler start?
Hero
4 REPLIES 4
Alexander M. Ermes
Honored Contributor

Re: Printer

Hi there.
Standard setup is to restart the prints from beginning.
For network printers somewhere you may find parameters like EOJ ( end of job ) or something like this. Changing these parameters
can change the behaviour of your printer restarting jobs stopped by a stopped spool.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Keith Bevan_1
Trusted Contributor

Re: Printer

Using SAM to add/remove printers/queues requires the lp scheduler to be stopped and restarted. You normally get a warning indicating that jobs are currently printing and it would sensible to wait until the scheduler is quiet.

message is something like :-
__________
Adding a printer requires the print spooler to be temporarily stopped, but there is a request that is currently either being printed on a local printer or being sent to a remote printer.
Stopping the spooler will cause the request to be reprinted or resent once the spooler is restarted.
__________

Therefore any lp jobs in the spooler that have not been released to the printer/print server would be reprinted or resent in their entirity (first page to last page). No jobs would be cancelled !

If you do not want to see this message and want to close the scheduler to do the work you could always issues the commands from the command line (ie lpshut, lpsched).

Keith

You are either part of the solution or part of the problem
Steve Steel
Honored Contributor

Re: Printer

Hi

You need to disable yoour printers before adding one.

Then jobs can be put in the queue but will not print and when the currently printing jobs have stopped you can add the printer.

After the sam enable again.Printing starts again.

Easy way

#!/bin/ksh
#
#Printer parameter
#
# parameter is enable disable accept or reject to do all printers
#
option=$1
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
case $option in
accept) accept $printer ;;
reject) reject $printer ;;
enable) enable $printer ;;
disable) disable $printer ;;
*)echo invalid parameter ;;
esac
done


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Tim Adamson_1
Honored Contributor

Re: Printer

Hi,

Maybe you might want to consider altering some of the parameters such as Job Recovery and/or TEOJ (True End Of Job). I can't access any system to verify if I have the right parameters.

Imagine a large print job starting from page 1 again.


Tim.
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.