1834449 Members
2451 Online
110067 Solutions
New Discussion

Print Jobs hung in queue

 
John Letarte
Occasional Contributor

Print Jobs hung in queue

I have print jobs that are hung in a queue and the printer will not stay "enabled"
We are running an application on HPUX 10.2, printers are local through a DTC. All the other printers on this DTC are working fine, as are all network printers.
SAM shows accepting requests, but not enabled to print.
5 REPLIES 5
Helen French
Honored Contributor

Re: Print Jobs hung in queue

Some options:

1) Check status with:

# lpstat -a

2) Stop and start scheduler if doesn't hurt:

# lpshut
# lpsched

3) Try enabling printer manually:

# enable printer_name

4) Kill the hung print jobs from queue:

# cancel Print_job_id

5) Check the lock files (/var/spool/lp/SCHEDLOCK) and remove it. Restart the scheduler.
Life is a promise, fulfill it!
Chris Wilshaw
Honored Contributor

Re: Print Jobs hung in queue

It may be worth checking the device file for the printer in /dev/dtc - this should be similar to

crw-rw-rw- 1 root sys 17 0x000003 Jul 4 13:05 lp1_dtc1_06

It is possible that this file has become corrupt, or been removed from the system, in which case, it may now just be a text file, rather than a true device file.

Try recreating the device files. Normally, the command to do this is

/usr/sbin/dpp /etc/ddfa/dp -k

You may find that you need to remove the existing printer device file first.

Then reset the relevant port on the DTC.
Sridhar Bhaskarla
Honored Contributor

Re: Print Jobs hung in queue

Hi,

Look at /var/adm/log file for any errors. If you are using jetadmin to configure the printers, you can use option 2 in jetadmin menu to troubleshoot spooler issues.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Martin Johnson
Honored Contributor

Re: Print Jobs hung in queue

Check file permissions on the printer files.


HTH
Marty
John Letarte
Occasional Contributor

Re: Print Jobs hung in queue

Thank you for your responses, I have resolved it through dtcdiag -p dtcNAME b 15 {port 15} this sent a test page to the printer and reset the port. All the jobs in the queue printed after enabling the printer.
Thanks again.