Operating System - HP-UX
1855395 Members
3007 Online
104110 Solutions
New Discussion

Re: Mail from lp@<domain> - Error code 2 in request...

 
SOLVED
Go to solution
Jim Small
Occasional Contributor

Mail from lp@<domain> - Error code 2 in request...

I continuously receive E-mail from lp@ with the following body:
error code 2 in request - on printer

The printer/queue is a JetDirect device/queue. The Server/Clients are running HP-UX 11.00.

Any advice would be greatly appreciated.

Thanks,
--Jim
"Try not! Do or do not. There is no try." - Yoda
1 REPLY 1
Bill Hassell
Honored Contributor
Solution

Re: Mail from lp@<domain> - Error code 2 in request...

Error code 2 is the exit code of some command or process in the lp printer scripts. Unfortunately, there is no possible way to determine just which command failed. lp (well, lpsched) simply executes the script and if a non-zero exit code is seen, email is sent and also logged in lp logs.

Start by checking the printer: is it out of paper? have a paper jam? some other error message? If all is well, use hpnpadmin -v to see if it can communicate with the printer. If true, use removequeue and then addqueue to remvoe and re-add the printer. If hpnpadmin fails, check the reasons (IP address or subnet mask in the printer).


Bill Hassell, sysadmin