1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 3<html> 4 <head> 5 <meta name="generator" content="HTML Tidy, see www.w3.org"> 6 <title>lpq - Status Monitoring Program</title> 7 <meta name="GENERATOR" content= 8 "Modular DocBook HTML Stylesheet Version 1.7"> 9 <link rel="HOME" title=" LPRng Reference Manual" href= 10 "index.htm"> 11 <link rel="PREVIOUS" title="FQDN Host Information " href= 12 "forcefqdnhostname.htm"> 13 <link rel="NEXT" title="lpq Job Selection" href="x4572.htm"> 14 </head> 15 16 <body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link= 17 "#0000FF" vlink="#840084" alink="#0000FF"> 18 <div class="NAVHEADER"> 19 <table summary="Header navigation table" width="100%" border= 20 "0" cellpadding="0" cellspacing="0"> 21 <tr> 22 <th colspan="3" align="center">LPRng Reference Manual: 5 23 Sep 2003 (For LPRng-3.8.22)</th> 24 </tr> 25 26 <tr> 27 <td width="10%" align="left" valign="bottom"><a href= 28 "forcefqdnhostname.htm" accesskey="P">Prev</a></td> 29 30 <td width="80%" align="center" valign="bottom"> 31 </td> 32 33 <td width="10%" align="right" valign="bottom"><a href= 34 "x4572.htm" accesskey="N">Next</a></td> 35 </tr> 36 </table> 37 <hr align="LEFT" width="100%"> 38 </div> 39 40 <div class="CHAPTER"> 41 <h1><a name="LPQ"></a>Chapter 7. <b class= 42 "APPLICATION">lpq</b> - Status Monitoring Program</h1> 43 44 <div class="TOC"> 45 <dl> 46 <dt><b>Table of Contents</b></dt> 47 48 <dt>7.1. <a href="lpq.htm#AEN4566"><b class= 49 "APPLICATION">lpq</b> Queue Selection (lpq -Pprinter, lpq 50 -a)</a></dt> 51 52 <dt>7.2. <a href="x4572.htm"><b class= 53 "APPLICATION">lpq</b> Job Selection</a></dt> 54 55 <dt>7.3. <a href="x4579.htm"><b class= 56 "APPLICATION">lpq</b> Short Format (lpq -s)</a></dt> 57 58 <dt>7.4. <a href="x4590.htm"><b class= 59 "APPLICATION">lpq</b> Long Format (lpq, lpq -l, lpq 60 -L)</a></dt> 61 62 <dt>7.5. <a href="x4601.htm"><b class= 63 "APPLICATION">lpq</b> Verbose Format (lpq -v)</a></dt> 64 65 <dt>7.6. <a href="stalledtime.htm">Job Taking Too Long - 66 Stalled</a></dt> 67 68 <dt>7.7. <a href="x4619.htm">Configuring Format and 69 Displayed Information</a></dt> 70 </dl> 71 </div> 72 73 <p>The <b class="APPLICATION">lpq</b> program is the main 74 method used to monitor queues. You can obtain the available 75 options by using:</p> 76 77 <div class="INFORMALEXAMPLE"> 78 <a name="AEN4562"></a> 79<pre class="SCREEN"> 80 <samp class="PROMPT">h4: {306} %</samp> <kbd class= 81"USERINPUT">lpq -=</kbd> 82 lpq: Illegal option '=' 83 usage: lpq [-aAclV] [-Ddebuglevel] [-Pprinter] [-tsleeptime] 84 -a - all printers 85 -c - clear screen before update 86 -l - increase (lengthen) detailed status information 87 additional l flags add more detail. 88 -L - maximum detailed status information 89 -n linecount - linecount lines of detailed status information 90 -Ddebuglevel - debug level 91 -Pprinter - specify printer 92 -s - short (summary) format 93 -tsleeptime - sleeptime between updates 94 -V - print version information 95</pre> 96 </div> 97 <br> 98 <br> 99 100 <div class="SECT1"> 101 <h1 class="SECT1"><a name="AEN4566">7.1. <b class= 102 "APPLICATION">lpq</b> Queue Selection (lpq -Pprinter, lpq 103 -a)</a></h1> 104 105 <p>If no queue is specified, then the default queue is 106 used, with <var class="LITERAL">-Pprinter@host</var> 107 causing a direct connection to the named host. The <var 108 class="LITERAL">-a</var> literal selects all queues.</p> 109 </div> 110 </div> 111 112 <div class="NAVFOOTER"> 113 <hr align="LEFT" width="100%"> 114 115 <table summary="Footer navigation table" width="100%" border= 116 "0" cellpadding="0" cellspacing="0"> 117 <tr> 118 <td width="33%" align="left" valign="top"><a href= 119 "forcefqdnhostname.htm" accesskey="P">Prev</a></td> 120 121 <td width="34%" align="center" valign="top"><a href= 122 "index.htm" accesskey="H">Home</a></td> 123 124 <td width="33%" align="right" valign="top"><a href= 125 "x4572.htm" accesskey="N">Next</a></td> 126 </tr> 127 128 <tr> 129 <td width="33%" align="left" valign="top">FQDN Host 130 Information</td> 131 132 <td width="34%" align="center" valign="top"> </td> 133 134 <td width="33%" align="right" valign="top"><b class= 135 "APPLICATION">lpq</b> Job Selection</td> 136 </tr> 137 </table> 138 </div> 139 </body> 140</html> 141 142