Re: HP - UX 11.0 Print queue message -lpstat: execlp failed (828 Views)
Reply
Occasional Visitor
Lita Young_1
Posts: 1
Registered: ‎08-20-2002
Message 1 of 6 (828 Views)
Accepted Solution

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?
Honored Contributor
Sajid_1
Posts: 604
Registered: ‎07-29-2002
Message 2 of 6 (828 Views)

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 ..
Honored Contributor
Jeff Schussele
Posts: 6,795
Registered: ‎02-18-2002
Message 3 of 6 (828 Views)

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!
Honored Contributor
S.K. Chan
Posts: 4,063
Registered: ‎08-29-2000
Message 4 of 6 (828 Views)

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
Honored Contributor
Jordan Bean
Posts: 579
Registered: ‎09-14-2000
Message 5 of 6 (828 Views)

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.


Honored Contributor
Jordan Bean
Posts: 579
Registered: ‎09-14-2000
Message 6 of 6 (828 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.