- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I have to cancel first print job in queue for othe...
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
04-30-2005 08:20 AM
04-30-2005 08:20 AM
Jesse
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2005 12:53 PM
04-30-2005 12:53 PM
Re: I have to cancel first print job in queue for others to print.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 10:24 AM
05-01-2005 10:24 AM
Re: I have to cancel first print job in queue for others to print.
The printer status is ready and the queue is not disabled as far as I know because if I cancel the top job the others in the queue print fine. I believe it may be a specific print job that is holding up the queue but how do I determine that is the case? Can I redirect the top print job instead of canceling? Can I open the file on Unix of the print job and look or will that even tell me anything? Thanks Bill for the reply:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 12:30 PM
05-01-2005 12:30 PM
Re: I have to cancel first print job in queue for others to print.
To determine the status of a printer, use the command:
lpstat -pPrinter_Queue
To see information on all the queues:
lpstat -t
As far as a specific print job causing the problem, once the queue hangs up, you can copy the print job by cd'ing to:
/var/spool/lp/request/
(Printer_Queue is the name of your printer in HP-UX. You'll find several files starting with d or c. The c-files are ASCII control files (you can look at these if you want), but the d-files are the actual print files as submitted to the spooler. The print request number is stored in characters 3-6 followed by the computer's name. The file that might be causing the prolem will have the same id number as the currently printing job. Copy this file to /var/tmp.
As far as the data hanging the printer, you can test this by simply printing the file that you copied to /var/tmp. If it hangs again, there is something wrong with the file. Figuring out what the problem is will require a tech-ref manual for the printer and the file decoded with all special characters showing. To show invisible characters, use the cat -v command. To see the exact hex code for everything:
xd -xc file_name
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 01:36 PM
05-01-2005 01:36 PM
Re: I have to cancel first print job in queue for others to print.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 11:42 PM
05-01-2005 11:42 PM
SolutionThe easiest question to resolve is the job-specific problem. While you can move a print job from one printer to another, it involves shutting down the spooler first, and if you have many printers on the HP-UX system that are commonly busy, all the active print jobs will stop and have to start over when you shutdown the spooler. Just use my previous post about getting a copy of the d-file from the request directory. Then try reprinting this job on the same printer. If it goes through OK, the problem is with network handshaking. If it hangs again, the look at the file itself, specifically the first dozen lines or so, using the cat -v and xd -xc commands. Look for all the printer commands (anything that starts with ESC or hex 1B/1b). If there are such codes, then the application which created the file is likely incompatible with the new printer. Some apps never update their printer code which may be a dozen years old.
If the data file prints OK, then the hang is likely due to network protocol problems. While you can trace the protocol, there probably isn't any way to predict when the problem will occur and the network traces will be massive in size, even for a few hours of printing. I would start by updating the firmware for the JDI interface (JetDirect Inside). The JDI capability referes to the integration of JetDirect LAN printing into the printer's formatter. Previous cards were plug-in options. Here is a description on how to get the latest firmware:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00172337
and to get the latest firmware:
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpj07429
See if that solves the problem. Other techniques:
- Download the latest version of HPPI software (HP Printer Installer, aka, JetDirect for HP-UX). Find it at:
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?taskID=135&pnameOID=18922&prodTypeId=18972&locale=en_US〈=English+%28US%29&prodSeriesId=27349&swEnvOID=7
- Use hpnpadmin to look at the card stats. This is found in the HPPI directory: /opt/hpnpl/bin
- Lastly, you can trace each job at the network level. The actual program that does the LAN communication is hpnpf (/opt/hpnpl/bin) and you can even run it directly as in:
/opt/hpnpl/bin/hpnpf -x 12.34.56.78 -N /etc/profile
which will print /etc/profile. Or you can tell each lp job to write the protcol to a file with the -odebugm option. See the man page for net_ljx000.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2005 09:09 AM
05-06-2005 09:09 AM