1836694 Members
2409 Online
110108 Solutions
New Discussion

Re: Printer spooler

 
Mohd Ramadzan Bin Dimya
Occasional Contributor

Printer spooler

Hi all,

I've a problem with my printer spool.
Server running under HPUX 11.0 ,

The scenario are as follow ,

# lpstat -t |pg
scheduler is not running
no system default destination
device for psap14_ei: /dev/null
psap14_ei accepting requests since Sep 28 07:54
printer psap14_ei disabled since Nov 23 18:27 -
reason unknown
fence priority : 0
no entries

root@mke_DEV [/]
# lpsched
scheduler is running

root@mke_DEV [/]
# lpstat -t |pg
scheduler is not running
no system default destination
device for psap14_ei: /dev/null
psap14_ei accepting requests since Sep 28 07:54
printer psap14_ei disabled since Nov 23 18:27 -
reason unknown
fence priority : 0
no entries

root@mke_DEV [/]
#

Do you have any idea ..?
when I do 'lpshut' .. the message appear
"scheduler not running" ...

Thanks
8 REPLIES 8
RAC_1
Honored Contributor

Re: Printer spooler

ps -ef|grep -i lpsched

Is scheduler running??, If not start it and check log file.

lpsched -v
/var/adm/lp/log --> to check it.
There is no substitute to HARDWORK
Warren_9
Honored Contributor

Re: Printer spooler

hi,

remove the file /var/spool/lp/SCHEDLOCK if exist and then restart the lpsched

GOOD LUCK!!
Michael Bush
Occasional Advisor

Re: Printer spooler

In addition to removing the SCHEDLOCK, you may also want to remove the FIFO and CLD_FIFO files in /var/spool/lp as well. If this doesn't correct the issue, you may try opening another terminal window and tail the lp log file to see if a specific printer is causing the lpscheduler to stop automaically.
1) lpshut
2) rm /var/spool/lp/SCHEDLOCK (FIFO and CLD_FIFO if present)
3) open second terminal window and type
tail -f /var/adm/lp/log
4) in first terminal window type
lpsched -v

Mohd Ramadzan Bin Dimya
Occasional Contributor

Re: Printer spooler

Micheal,
no file SCHEDLOCK at this path '/var/spool/lp' ..file FIFO & CLD_FIFO
also not exist

below are the log after do 'lpsched -v'

# tail -f /var/adm/lp/log
***** STOPPED Nov 25 11:47 *****
lpsched: can't open request directory request/psap14_ei/
FIFO: Destinations --
FIFO: SMMPR2134: p not enabled not busy /dev/null
FIFO: psap14_ei: p not enabled not busy /dev/null
FIFO: Printers --
FIFO: SMMPR2134 pid and id unknown
FIFO: psap14_ei pid and id unknown
FIFO: Classes --
***** STOPPED Nov 25 11:58 *****
lpsched: can't open request directory request/psap14_ei/
FIFO: Destinations --
FIFO: SMMPR2134: p not enabled not busy /dev/null
FIFO: psap14_ei: p not enabled not busy /dev/null
FIFO: Printers --
FIFO: SMMPR2134 pid and id unknown
FIFO: psap14_ei pid and id unknown
FIFO: Classes --
***** STOPPED Nov 25 11:59 *****
....
But even I do 'lpsched' actually this scheduler not running ... look at this ..

# lpsched -v
scheduler is running

root@mke_DEV [/]
# lpstat -t |pg
scheduler is not running
no system default destination
device for SMMPR2134: /dev/null
device for psap14_ei: /dev/null
psap14_ei accepting requests since Sep 28 07:54
SMMPR2134 accepting requests since Nov 24 11:24
printer psap14_ei is idle. enabled since Nov 24 11:06
fence priority : 0
printer SMMPR2134 is idle. enabled since Nov 24 11:24
fence priority : 0
no entries

root@mke_DEV [/]
#
... also look at this ...
# ps -ef |grep -i lpsched
root 22287 18892 1 12:25:39 pts/td 0:00 grep -i lpsched

root@mke_DEV [/]

no scheduler running ...

any hint ... does inetd and lpdaemon concerned ..?

thanks ...

rccmum
Super Advisor

Re: Printer spooler

Hi,

Check if the the "request" directory exist in /var/spool/lp and it is owned by "lp"

If not , do the needful and check if lpsched starts and shows correct status

Did you try to some changes in the printer configuration like removing printer etc. recently?



Adisuria Wangsadinata_1
Honored Contributor

Re: Printer spooler

Hi Mohd Ramadzan,

Good day to you !
Check the url below (docID : UPRTKBQA00000227) about 'Troubleshooting printer problems' :

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080075820

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Geoff Wild
Honored Contributor

Re: Printer spooler

The mode on the directory /var/spool/lp/request is incorrect; it should be 655. The system may also have the maximum number of files open that are allowed at any one time. Also should be owned by lp:bin

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mohd Ramadzan Bin Dimya
Occasional Contributor

Re: Printer spooler

Hi ,

Thanks to all. I've solved the problem.
Thanks for your support.

Ramadzan.