- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error message from lp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 05:44 AM
01-25-2002 05:44 AM
I have a time stamp when the message was sent. I can find the job. I can see that job log that sent the text to the print queue.
So here is my problem. What is "error code 2"?
Looks like it is processing OK. This printer is a HP laser jet using a Jetdirect server.
It is one of thing that bugs me.
This is HP-UX 11.0. There are 2 printer queues doing this in 2 different states.
Can you help me figure this out? Logs some where?
Marty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 05:52 AM
01-25-2002 05:52 AM
Re: Error message from lp
Chec out this link:
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=a8d167dd14124dcc1a/screen=ckiDisplayDocument?docId=200000058669312
Or it is possible that your printer queue has been corrupted. Remove the printer and readd it vi jetadmin and see if this clears up your problem.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 06:01 AM
01-25-2002 06:01 AM
Re: Error message from lp
First check /var/spool/lp/log for any clues. You may want to submit a new job and immediately examine the log.
The convention for lp interface files is that 0 means good, 1-127 mean some error but future requests will not be disabled. 128 - reserved; 129 - problem and disable for future requests; > 129 - reserved for LP.
Errno 2 - ENOENT - File not found. That is probably your error but if you are running a custom interface that may not be true.
I can tell you how that sometimes happens:
lp -dmyprinter myfile
rm myfile
If myfile was rm'ed before the myfile actually starting being printer (or at least being opened) then that is your problem.
The fix:
lp -c -dmyprinter myfile OR
cat myfile | lp -dmyprinter
rm myfile
The -c requests that lp make a copy of the file before returning.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 06:30 AM
01-25-2002 06:30 AM
Re: Error message from lp
This could be slow name lookup.
If you use DNS and the printer is only in hosts
make sure you have
hosts: dns [NOTFOUND=continue TRYAGAIN=continue] files
In /etc/nsswitch.conf for the hosts line
tryagain is often forgotten
steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 06:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 06:42 AM
01-25-2002 06:42 AM
Re: Error message from lp
Check this out:
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=7b486d2a0a8617a399/screen=ckiDisplayDocument?docId=200000011495802
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 06:46 AM
01-25-2002 06:46 AM
Re: Error message from lp
Again, this may help you:
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=7b486d2a0a8617a399/screen=ckiDisplayDocument?docId=200000014941198
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=7b486d2a0a8617a399/screen=ckiDisplayDocument?docId=200000058669312
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2002 06:51 AM
01-28-2002 06:51 AM
Re: Error message from lp
This probably comes from an "exit 2" statement in the interface script.
Inspect the interface script, i.e. "view /etc/lp/interface/
For JetDirect, check both /etc/lp/interface/