Operating System - HP-UX
1847479 Members
3114 Online
110265 Solutions
New Discussion

Re: How reinit a printer without SAM

 
Tex
Occasional Contributor

How reinit a printer without SAM

Our application runs on HP-UX 10.20.
A graphical printer LEXMARK 45 is connected through Ethernet and is used to print screen pictures of the application.
If many prints are required, the printer becomes saturated. So, the operator can reset the printer buffer on the printer.
But, in this case, the HP printer service stays blocked and the only solution to continue with the printer is to reinitialize the printer with the SAM utilities.
Is it normal ?
Is there an other solution to restart the printer service ?
Is it possible to call applies in the application to reinit printer ? (the final operator is not abilities to use SAM.
Thanks ...
7 REPLIES 7
Simon Hargrave
Honored Contributor

Re: How reinit a printer without SAM

/sbin/init.d/lp stop
/sbin/init.d/lp start
Franky_1
Respected Contributor

Re: How reinit a printer without SAM

Hi Tex,

you can use /sbin/init.d/lp stop
and then /sbin/init.d/lp start

otherwise

stop the scheduler by "lpshut" and then restart it with "lpsched"

Regards

Franky
Don't worry be happy
Sยภเl Kย๓คг
Respected Contributor

Re: How reinit a printer without SAM

#lpshut
#lpsched
#lp stop
#lp start

These commands to be used for reinitialise printer and the scheduler
regards
SK
Your imagination is the preview of your life's coming attractions
Elmar P. Kolkman
Honored Contributor

Re: How reinit a printer without SAM

Probably the printerqueue is disabled. You can reset it from SAM or by restarting the scheduler, but a nicer method, especially if you have more then one printer defined, is by re-enabling the queue. The command for this is (quite apropriate) enable:

enable

lpstat is the command to check the status of printer queues.
Every problem has at least one solution. Only some solutions are harder to find.
Steve Steel
Honored Contributor

Re: How reinit a printer without SAM

Hi


Before you touch the printer do a disable

disable printer

Then reset the buffer

Then

enable printer

This should help


How is the printer installed. You may do well
to change the printer script in /etc/lp/interface to put a small sleep in after each file is transmitted to allow the printer time to finish


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Manuel Plaza
Regular Advisor

Re: How reinit a printer without SAM

Hi,

You can use:
- disable
- enable
but you must use "/usr/bin/enable" because if you type only enable it is possible that it try to use the internal shell command "enable".

Regards,

Manuel
Carlo Corthouts
Frequent Advisor

Re: How reinit a printer without SAM

Hi,

Does the service stay blocked only for the printer is the whole printersystem not usable?

Did you check the printerstatus with
lpstat -o?
It might already give you a clue on what happened to the printer/printqueue.

Does it work again after you disabled/enabled the printer?
Might also check if the printer is still accepting requests. with the command accept you can get going again.

If this all does not help, try lpshut to bring down the printerservice and start it again with lpsched -v.

Regards,

Carlo