Operating System - HP-UX
1748216 Members
3438 Online
108759 Solutions
New Discussion юеВ

Re: HP - UX 11.0 Print queue message -lpstat: execlp failed

 
SOLVED
Go to solution
Lita Young_1
New Member

HP - UX 11.0 Print queue message -lpstat: execlp failed

I was deleting old printer names off of my system, after doing a system search for all locations that the printer names were present. After doing this, when I type in the command: lpstat -t|grep , I am getting the message - lpstat: execlp failed. Does anyone have an idea what went wrong? Or, if I removed the old names from somewhere I shouldn't have?
5 REPLIES 5
Sajid_1
Honored Contributor

Re: HP - UX 11.0 Print queue message -lpstat: execlp failed

hello,

check whether your daemon is running?
# ps -aef | grep lp

For starting:
# lpsched
for stopping:
# lpshut

Normally this message comes when lpfence is being used:
# man lpfence
learn unix ..
Jeff Schussele
Honored Contributor

Re: HP - UX 11.0 Print queue message -lpstat: execlp failed

Hi Lita,

When you use lpadmin to add/remove printers it stops/start lp in the background.
Sounds to me like you haven't bounced lp.
Try stopping - lpshut
and starting - lpsched
the scheduler & see if the problem goes away.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: HP - UX 11.0 Print queue message -lpstat: execlp failed

You did not really say how you delete your printer configuration. If not done right this can potentially corrupt your printer configuration especially the file "pstatus" and "qstatus" in /var/spool/lp. They are printer status file and print queue status file respectively. Did you try to restart your spooler ?
# lpshut
# lpsched
If that does not work you may need to restore your printer configuration either from your previous backup or use SAM, which depends on whether you have saved the printer config or not prior to this problem. To check that take a look in /var/sam/lp. If it exists and the timestamp on it is recent, you can proceed with using SAM. I think it's under ..
Printers&Plotters->LPSpooler->Save/Restore
Jordan Bean
Honored Contributor
Solution

Re: HP - UX 11.0 Print queue message -lpstat: execlp failed


If the scheduler isn't running, then you'll get this:

$ lpstat -t
scheduler is not running
system default destination:
no entries

The execlp error means that the scheduler isn't able to run something... Perhaps the necessary interface scripts.

Just for yucks, I moved aside /etc/lp/sinterface/Helpdesk and got this:

$ lpstat -oHelpdesk
lpstat: execlp failed
no entries

So it looks to me like you removed all the script files rather than using lpadmin -x.

Let me see if I can remove this printer now that all its stuff is gone.


Jordan Bean
Honored Contributor

Re: HP - UX 11.0 Print queue message -lpstat: execlp failed

The easiest way I found to remove printers that no longer have interface scripts is to save the current configuration, edit the lpinfo file, and restore the configuration.

# /usr/sam/lbin/lpmgr -S
# vi /var/sam/lp/lpinfo (delete bogus printers)
# /usr/sam/lbin/lpmgr -R
# lpstat -v (verify the list)

And if everything is okay, save the new config.

# /usr/sam/lbin/lpmgr -S