Operating System - HP-UX
1837195 Members
2560 Online
110115 Solutions
New Discussion

Re: No prints after each reboot

 
Avi Coren
Advisor

No prints after each reboot

Any time I reboot my server (HP-UX 11.0)
users cannot print anything.
only after doing lpshut and lpsched they
are able to print.
Any ideas?
Thanks in advance.
24 REPLIES 24
Paula J Frazer-Campbell
Honored Contributor

Re: No prints after each reboot

HI

Quick fix - put an lphut and lpsched at the end of boot sequence.

Then you can look at where it is in the start up sequence, if it is too early then other dependancies will not be there.

Paula
If you can spell SysAdmin then you is one - anon
john korterman
Honored Contributor

Re: No prints after each reboot

Hi,
is lp set to start up at boot? check /etc/rc.config.d/lp and see if LP=1. If not the lp spooler does not start at reboot.

regards,
John K.
it would be nice if you always got a second chance
Avi Coren
Advisor

Re: No prints after each reboot

Thanks.
Checked it. LP=1
Anything else to look for?
Avi Coren
Advisor

Re: No prints after each reboot

John, can rc.log tell me something about whats going on?
Paula, thanks but this problem is a new one, so I guess something happaned somewhere in the boot process, that I want to find out.
Robert-Jan Goossens
Honored Contributor

Re: No prints after each reboot

Hi,

Check

# ll /sbin/rc2.d | grep lp
lrwxr-xr-x 1 root sys 15 May 18 2000 S720lp -> /sbin/init.d/lp

HTH,
Robert-Jan
Avi Coren
Advisor

Re: No prints after each reboot

exactly the same
except the date.... mine is Feb 7 2002
Robert-Jan Goossens
Honored Contributor

Re: No prints after each reboot

Hi Avi,

/etc/rc.log should give you something like

Start print spooler
Output from "/sbin/rc2.d/S720lp start":
----------------------------
scheduler is running
line printer scheduler started

Regards,
Robert-Jan
Alexander M. Ermes
Honored Contributor

Re: No prints after each reboot

Hi there.
CHeck the spool system :


>lpstat -r
scheduler is running
hpnss-01,root,none,/var/tmp,!
>lpshut
scheduler stopped
hpnss-01,root,none,/var/tmp,!
>lpstat -r
scheduler is not running

if at this point the result is
scheduler is running
you have to delete the lock files in /var/spool/lp :

prw------- 1 lp lp 0 Dec 1 14:01 CLD_FIFO
prw------- 1 lp lp 0 Dec 1 14:03 FIFO
-rw-r----- 1 lp lp 0 Dec 1 14:01 SCHEDLOCK




hpnss-01,root,none,/var/tmp,!
>lpsched
scheduler is running
hpnss-01,root,none,/var/tmp,!
>


Hope, this helps.
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"
Avi Coren
Advisor

Re: No prints after each reboot

Hi Robert,
Yes, this is exactly what my rc.log says
Robert-Jan Goossens
Honored Contributor

Re: No prints after each reboot

Hi,

Could you check the permission of
#ls -lad /etc/lp/interface/model.orig

drwxr-xr-x 2 lp bin 1024 Jun 13 2002 /etc/lp/interface/model.orig

Regards,
Robert-Jan
Avi Coren
Advisor

Re: No prints after each reboot

Robert --> drwxr-xr-x
Alexander --> hpnss-01....... not found. tried to search *hpnss* from / down, and didn't find anything.
Robert-Jan Goossens
Honored Contributor

Re: No prints after each reboot

Avi,

Who is the owner and group ? should be lp:bin ?

Regards,
Robert-Jan
Avi Coren
Advisor

Re: No prints after each reboot

Sorry Robert.
sure sure lp and bin

gonna take a 24hr off now.
hope you'll be here when I get back.
Thanks a mil guys!
hope we'll get over this mess
Robert-Jan Goossens
Honored Contributor

Re: No prints after each reboot

Hi Avi,

Check these tomorow (:-)

db001:/etc# ll hosts nsswitch* resolv*
resolv* not found
-r--r--r-- 1 bin bin 1240 Oct 17 17:53 hosts
-r--r--r-- 1 bin bin 528 Nov 6 1997 nsswitch.compat
-r--r--r-- 1 root sys 353 Jun 21 2000 nsswitch.conf
-r--r--r-- 1 bin bin 380 Jan 18 2000 nsswitch.eic
-r--r--r-- 1 bin bin 353 Nov 6 1997 nsswitch.files
-r--r--r-- 1 bin bin 555 Nov 6 1997 nsswitch.hp_defaults
-r--r--r-- 1 bin bin 513 Nov 6 1997 nsswitch.nis
-r--r--r-- 1 bin bin 566 Nov 6 1997 nsswitch.nisplus

above files should have permission 444 owner bin, group bin.

Kind regards,
Robert-Jan
Mark Grant
Honored Contributor

Re: No prints after each reboot

as you have to do an lpshut before your lpsched, it sounds to me like your configuration is probably OK. It seems that something is not right for lpsched during boot but is OK after boot. So, things I'd be interested in is file systems not being mounted when lpsched starts or the "lp" user in NIS but NIS not started yet. Things like that.
Never preceed any demonstration with anything more predictive than "watch this"
Avi Coren
Advisor

Re: No prints after each reboot

Hi guys. Thanks for sticking with me ;)

Robert, that's mine:
-rw-r--r-- 1 root root 2028 Jun 4 2003 hosts
-r--r--r-- 1 bin bin 528 Nov 6 1997 nsswitch.compat
-rw-rw-rw- 1 root sys 28 Apr 18 2002 nsswitch.conf
-r--r--r-- 1 bin bin 353 Nov 6 1997 nsswitch.files
-r--r--r-- 1 bin bin 555 Nov 6 1997 nsswitch.hp_defaults
-r--r--r-- 1 bin bin 513 Nov 6 1997 nsswitch.nis
-r--r--r-- 1 bin bin 566 Nov 6 1997 nsswitch.nisplus
Avi Coren
Advisor

Re: No prints after each reboot

Mark,
I realy didn't try lpsched without lpshut first (guess it's a reflex...)
But what do you think is happaning assuming no lpshut is needed?
Robert-Jan Goossens
Honored Contributor

Re: No prints after each reboot

Hi Avi,

Sam can resolve at lot of errors. run SAM
->Printers and Plotters
->LP Spooler
->Save/Restore Spooler Configuration

---> Action --> save spooler configuration

---> Action --> Restore spooler configuration.

If SAM finds errors in the spooler configuration, sam will try to repare these.

Realy hope this helps,
Robert-Jan
Avi Coren
Advisor

Re: No prints after each reboot

Hi Robert,
Did the SAM Procedure.
No errors reported, just the "Successfully restored spooler configuration" message.
I'm going to wait for the night to do a reboot and check if it did the job.
Avi Coren
Advisor

Re: No prints after each reboot

We may be close to figure it out!
After doing the restore spooler configuration
What happaned was that the scheduler stoped!!!
did lpstat -r ---> got "scheduler is not running"

did lpsched ---> got "scheduler is not running"

went to SAM again and did the restore again and then did lpstat -r ---> got "scheduler is not running"!!!!!!!

so something is preventing the scheduler from runing.
Avi Coren
Advisor

Re: No prints after each reboot

sorry - had a typo...
when I did lpsched ---> got "scheduler is running"

James Lynch
Valued Contributor

Re: No prints after each reboot

Check the spooler log file for error messages.
The file is in /var/adm/lp/log.

Check the output of the lpstat -t command for any error messages.

Check if all lp processes have terminated using
ps -ef | grep lp

Kill any remaining lp processes like lpsched, interface scripts,rlp, hpnpf, cat or lpstat processes.

Remove the following lock files from /var/spool/lp:
FIFO
SCHEDLOCK
CLD_FIFO
lpd.lock
tmplock
Toutputq

Restart the scheduler with logging enabled, /usr/sbin/lpsched -v

If taht does not work than you might have to remove any outstanding print requests.

See the following link for more details:
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000069320256

JL

Wild turkey surprise? I love wild turkey surprise!
Avi Coren
Advisor

Re: No prints after each reboot

Went to SAM and did restore again.
lpstat -r -----> lpsched not running

THEN went to /var/adm/lp/log and got:

***** LP LOG Dec 2 18:42 *****
Avi Coren
Advisor

Re: No prints after each reboot

Went to SAM and did restore again.
lpstat -r -----> lpsched not running

THEN went to /var/adm/lp/log and got:

***** LP LOG Dec 2 18:42 *****
FIFO: Dec 2 18:44 n
FIFO: Dec 2 18:44 n

after doing lpsched went to the log again
this time it was empty.

anyone???