1834450 Members
2219 Online
110067 Solutions
New Discussion

lpstat -o memory fault

 
SOLVED
Go to solution
Thomas Stuetzer
Advisor

lpstat -o memory fault

Hello,
after I enter the command lpstat -o or lpstat -t I get the message memory fault, even
when I have deleted all printers with lpadmin -x PRINTER. The spool subsystem semms ok. I can start and stop the spooler (lpsched lpshut )and the lp is running. So we can print out the system HP-UX (11.11) but I can see how many spool request on the system with lpstat -o.

Any idea are welcome!
best regards
Tom



5 REPLIES 5
HGN
Honored Contributor

Re: lpstat -o memory fault

Hi

If you are getting with lpstat with any flag then looks like the executable is having some corruption,maybe you want to rename this and ftp the samefile from a different system and try (same version of OS) this may help.

Rgds

HGN
A. Clay Stephenson
Acclaimed Contributor

Re: lpstat -o memory fault

The first thing that I would do is apply the latest lp patch, PHCO_33401. Next, see if there are any directories left under /var/spool/lp/request after you have deleted all the printers then you have a corrupted lpsubsystem. I would do an lpshut, remove any request directories, and then lpsched.
If it ain't broke, I can fix that.
Sameer_Nirmal
Honored Contributor
Solution

Re: lpstat -o memory fault

Hi,

You can try removing the output queue file assuming currently outstanding requests are not more important and could be removed.

Do the following

Stop the scheduler by invoking lpshut
# /usr/lib/lpshut

Remove the line-printer spooler output queue file
# rm -f /usr/spool/lp/outputq

Restart the line-printer spooler by
# /usr/lib/lpsched

Try running
# lpstat -t
# lpstat -o
Thomas Stuetzer
Advisor

Re: lpstat -o memory fault

Hi,

first I have installed the patch PHCO_33401
but I got always the error message. After I have deleted the file /usr/spool/lp/outputq
I can see again the spool request with lpstat -o . The problem is has fixed now.
best regards
Tom
Thomas Stuetzer
Advisor

Re: lpstat -o memory fault

Stop the scheduler by invoking lpshut
# /usr/lib/lpshut

Remove the line-printer spooler output queue file
# rm -f /usr/spool/lp/outputq

Restart the line-printer spooler by
# /usr/lib/lpsched