Some tips for using LPQ

Learn to read the headers for lpq.  These can tell you about the status of the printer.
lpq -l provides more information in the header.  Here are some examples that can help you read the headers.

1.  Here is an example of a happy queue:  The Server and Unspooler lines relate to the print server and queue.  They should read active.  If not, you need to fix that with the lpc program.  The Status and Filter_status lines shown here are typical of a job in the middle of printing.

physics:~>lpq -l
 Printer: lp1@warp 'hp4100'
 Queue: 7 printable jobs
 Server: pid 3462 active
 Unspooler: pid 4554 active
 Status: OF filter suspended at 12:18:41.469
 Status: processing 'dfA418P120-2', size 145359, format 'l', IF filter 'ifhp' at 12:18:41.470
 Filter_status: sent job file at 12:18:43.489
 Filter_status: getting end using 'pjl job/eoj' at 12:18:43.491
 Rank   Owner/ID                  Class Job Files                 Size Time
1      rahmim@P120-2+418            A   418 http://statlab.stat 145359 12:14:21
2      rahmim@P120-2+241            A   241 http://statlab.stat 421328 12:14:31
3      rahmim@P120-2+761            A   761 http://statlab.sta 1135278 12:14:41
4      pdeboer@warp+184             A   184 test                423148 12:15:19
5      tao@warp+339                 A   339 al2mbar.up.rho.ps    31261 12:16:08
6      tao@warp+344                 A   344 al30mbar.up.rho.ps   26454 12:16:13
7      rahmim@P120-2+20             A    20 http://statlab.stat 187354 12:16:49
 

2.  In this case, the print server and spooler have become disabled.  You need to restart them using the lpc program.

Printer: lp1@warp 'hp4100' (printing disabled, printing aborted, spooling disabled)
 Queue: 5 printable jobs
 Server: no server active
 Status: lp1@warp.physics.ubc.ca: job 'cfA241P120-2' printed at 12:20:07.337
 Status: job 'cfA241P120-2' removed at 12:20:07.512
 Filter_status: (of) ending OF mode passthrough at 12:20:07.152
 Filter_status: (of) done at 12:20:07.152
 Rank   Owner/ID                  Class Job Files                 Size Time
1      rahmim@P120-2+761            A   761 http://statlab.sta 1135278 12:14:41
2      pdeboer@warp+184             A   184 test                423148 12:15:19
3      tao@warp+339                 A   339 al2mbar.up.rho.ps    31261 12:16:08
4      tao@warp+344                 A   344 al30mbar.up.rho.ps   26454 12:16:13
5      rahmim@P120-2+20             A    20 http://statlab.stat 187354 12:16:49
 

3.  A sample of a page jam.  The Filter_status line shows this clearly.

Printer: lp3@warp 'hp5si'
 Queue: 1 printable job
 Server: pid 6670 active
 Unspooler: pid 6671 active
 Status: OF filter suspended at 11:13:32.638
 Status: processing 'dfA669warp.physics.ubc.ca', size 12201, format 'f', IF filter 'ifhp' at 11:13:32.639
 Filter_status: getting end using 'pjl job/eoj' at 11:13:35.369
 Filter_status: code = 42101, 'Paper feed 1 jam - 1 pages', ALERT OPERATOR at 11:13:45.814
 Rank   Owner/ID                  Class Job Files                 Size Time
1      thiessen@warp+669            A   669 (STDIN)              12201 11:13:28
 

4.  In this case, the printer is looking for the wrong size paper (ie A4 or transparensies).  Note the message in the Filter_status line.  Wrong page formats can simply be handled by hitting the online/go button, and the printer will ask if you want to print on letter instead.  Hit select or Go again for yes.  If someone truly wants to add a different format paper into tray one, they should be at the printer to handle it without stalling the system.

Printer: lp1@warp 'hp4100'
 Queue: 1 printable job
 Server: pid 1835 active
 Unspooler: pid 1836 active
 Status: OF filter suspended at 10:40:09.398
 Status: processing 'dfA880P120-10', size 151927, format 'l', IF filter 'ifhp' at 10:40:09.399
 Filter_status: getting end using 'pjl job/eoj' at 10:40:12.910
 Filter_status: code = 41026, 'MP/Tray1/DuplexTray - Japan B6 Paper', ALERT OPERATOR at 10:40:29.572
 Rank   Owner/ID                  Class Job Files                 Size Time
1      szetoawe@P120-10+880         A   880 Ghostscript         151927 10:40:05
 
 

Doug Thiessen.  Nov. 2001