Operating System - HP-UX
1855696 Members
5478 Online
104103 Solutions
New Discussion

Re: lpsched will not start

 
Jane F Lewicke
Advisor

lpsched will not start

I came in this morning and started SAM and went to the Printers and Plotters for the print requests and found Print Spooler: STOPPED

No response when started. Emptied the queues - reloaded the printer definitions from a backup and the print spooler is still STOPPED.

Found a job that did not recover in the log and had the printer shut down -- still cannot start.

Please Help! Thank you!
9 REPLIES 9
Ross Zubritski
Trusted Contributor

Re: lpsched will not start

Hi,

Try removing FIFO and SCHEDLOCK in /var/spool/lp. Then restart the spooler.

Regards,

RZ
Jeff Schussele
Honored Contributor

Re: lpsched will not start

Hi Jane,

Check /var/spool/lp directory & if there's a file named SCHEDLOCK - remove it.
Then try the lpsched command again.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jane F Lewicke
Advisor

Re: lpsched will not start

Hi Jeff and RZ,

Thank you for responding. No file on the system with that name.

Jeff Schussele
Honored Contributor

Re: lpsched will not start

Any clues in /var/adm/syslog/syslog.log?

How about /var/adm/lp/log or oldlog?

Also run
ps -ef | grep lp

And make sure that there is NO lpsched running before you try to restart. If so kill it.

What does lpstat -t return?
Does IT show scheduler is running?
Sometimes SAM goes brain-dead.
This can usually be fixed with SAM cumulative patch.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Paul Sperry
Honored Contributor

Re: lpsched will not start

 
Jane F Lewicke
Advisor

Re: lpsched will not start

lpstat -t scheduler is not running

ps -ef | grep lp

root 2806 20052 0 14:45:39 pts/tn 0:00 lpstat -t
banjob 4054 4051 0 15:06:49 ? 0:00 sh -c lp -c -dFIN01_pc /home/lmorey/jobsub/rcpmtch_132454.li
banjob 4065 1527 0 15:07:11 ? 0:00 sh -c lp -dREG03_s30 /u01/sct/banjob/SFRSCHD247618003.lis
banner 1474 1207 0 14:30:57 pts/tg 0:00 sqlplus
banjob 4051 4043 0 15:06:49 ? 0:00 /ban5/sct/banner/P5/general/exe/evilp -eviuser lmorey -evipa
banjob 4055 4054 0 15:06:49 ? 0:00 lp -c -dFIN01_pc /home/lmorey/jobsub/rcpmtch_132454.lis
banner 1731 1713 0 14:33:43 pts/tk 0:00 sqlplus
banjob 3955 3954 0 15:03:14 ? 0:00 lp -dREG02_tr /u01/sct/banjob/SHRTRTC247626002.lis
root 4075 27100 1 15:07:35 pts/tr 0:00 grep lp
banjob 3954 1651 0 15:03:14 ? 0:00 sh -c lp -dREG02_tr /u01/sct/banjob/SHRTRTC247626002.lis
banjob 4066 4065 0 15:07:11 ? 0:00 lp -dREG03_s30 /u01/sct/banjob/SFRSCHD247618003.lis


When:
DBhost # lpsched
scheduler is running
DBhost # lpstat -r
scheduler is not running
DBhost #

I did find that something happened that stopped the spooler around 9:15 this morning and it was supposed to clear all locks.

Thank you,
Jane
Jeff Schussele
Honored Contributor

Re: lpsched will not start

Hi (again) Jane,

Well, it's interesting that an lpstat -t shows up in that ps output. It appears to be hung. lpstat is usually a quick command & would be hard to catch in a ps command.
So I'd recommend you kill that lpstat command (PID 2806).
Then all those banjob jobs are calling the lp command as well.
Check to see if they can be terminated w/o problems & if so kill them as well. All those lp commands are probably what are causing the problem.
Once those are all cleaned up, you may be able to successfully restart the spooler again.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jane F Lewicke
Advisor

Re: lpsched will not start

Hi Jeff,

The solution was in the log in /var/adm/lp 18 REGnn Printer files were missing. It showed in the log when lpsched was executed.

Thank you for your help. Got to the right street but didn't quite find the right house. (too many white houses)

Jane
Jeff Schussele
Honored Contributor

Re: lpsched will not start

Hi Jane,

Cool - glad you solved it.

You know my Dad once told me
"Son, it doesn't matter what route you take as long as you arrive safely."
So I often find myself enjoying the journey more than the destination.

Cheers,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!