Operating System - HP-UX
1836746 Members
2893 Online
110109 Solutions
New Discussion

lpstat: can't open printer status file

 
SOLVED
Go to solution
Balakumar M
Frequent Advisor

lpstat: can't open printer status file

Hi All,
Printer is not printing, actually was configured as remote printer (print server), Previously its was printing well, Error I am facing now is
lpstat -t
scheduler is not running
no system default destination
lpstat: can't open printer status file

I tried to restart the printer service also still the same error,
Could any one help me to solve this issue.

Life is a continues learning process
5 REPLIES 5
Michael Tully
Honored Contributor

Re: lpstat: can't open printer status file

Hi,

Try the following commands

# /sbin/rc2.d/S720lp stop
# /sbin/rc2.d/S720lp start

This should fix it.

Michael
Anyone for a Mutiny ?
Printaporn_1
Esteemed Contributor

Re: lpstat: can't open printer status file

1. may be lpsched hang

lpshut
ps -ef | grep lpsched
kill all existing lpsched
lpsched -v
lpstat -t

----------
if problem still persist check /etc/lp ,
/var/spool/lp if something wrong , may be need to restore these directory.
enjoy any little thing in my life
Shahul
Esteemed Contributor

Re: lpstat: can't open printer status file


Hi

Do these following

#cd /var/spool/lp
#rm SCHEDLOCK
#lpshut
#ps -ef |grep lp

If it showing that lpsched is running, Kill that manually.
#lpsched
#lpstst -t
I hope now ur problem will get solved. If still problem please go through these directories

/var/spool/lp/*
/var/adm/lp/*
/etc/lp/*
/usr/lib/lp/*

Best of luck


Shahul
SUDHAKARAN.
Occasional Advisor
Solution

Re: lpstat: can't open printer status file

Hi Balakumar,

You may be getting this error because of the file permissions on almost all the files under /var/spool/lp.
Best way to approach this problem is by suing SAM to save and restore the printer configuration.This will set the file permissions under var/spool/lp to lp:bin

Hope this of some help.
Regards,
S.Sudhakaran.
Unix Administrator
Haniza
Advisor

Re: lpstat: can't open printer status file

Hi

It is possible that the lp directory/files permission/ownership is wrong.

Ensure that you have them as the following:
# ll -d /var/spool/lp (755 lp:bin)

Check pstatus & qstatus (644 lp:lp)

# ll /etc/lp/member (755 lp:bin)

# ll -d /usr/bin/lp (4555 root:bin)