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>Message Format</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="UP" title="Remote Logger Operation" href= 12 "remotelogger.htm"> 13 <link rel="PREVIOUS" title="Logger Messages" href="x10892.htm"> 14 <link rel="NEXT" title="Dump Messages" href="x10925.htm"> 15 </head> 16 17 <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link= 18 "#0000FF" vlink="#840084" alink="#0000FF"> 19 <div class="NAVHEADER"> 20 <table summary="Header navigation table" width="100%" border= 21 "0" cellpadding="0" cellspacing="0"> 22 <tr> 23 <th colspan="3" align="center">LPRng Reference Manual: 5 24 Sep 2003 (For LPRng-3.8.22)</th> 25 </tr> 26 27 <tr> 28 <td width="10%" align="left" valign="bottom"><a href= 29 "x10892.htm" accesskey="P">Prev</a></td> 30 31 <td width="80%" align="center" valign="bottom">Chapter 32 21. Remote Logger Operation</td> 33 34 <td width="10%" align="right" valign="bottom"><a href= 35 "x10925.htm" accesskey="N">Next</a></td> 36 </tr> 37 </table> 38 <hr align="LEFT" width="100%"> 39 </div> 40 41 <div class="SECT1"> 42 <h1 class="SECT1"><a name="AEN10897">21.3. Message 43 Format</a></h1> 44 45 <p>Each message is encoded as a URI escaped string. That is, 46 non-alphanumeric characters are encoded as the 3 character 47 sequence <var class="LITERAL">%xx</var>, where <var class= 48 "LITERAL">xx</var> is the hexadecimal value of the character. 49 The message has the format <var class= 50 "LITERAL">key=value</var>, where <var class= 51 "LITERAL">key</var> indicates the message type. For 52 example:</p> 53 54 <div class="INFORMALEXAMPLE"> 55 <a name="AEN10904"></a> 56<pre class="SCREEN"> 57 dump=host=h4.private%0aprinter=t1%0aprocess=1613%0a 58 update_time=1999-03-23-20:32:17.148%0a\ 59 value=queue=holdall 0%25250aprinting_aborted=0x0%25250a\ 60 printing_disabled=0x0%25250aspooling_disabled=\ 61 0x0%25250a%250a%0a 62</pre> 63 </div> 64 <br> 65 <br> 66 67 <p>The following keys are used:</p> 68 69 <ol type="1"> 70 <li> 71 <p>dump A status dump of the current contents of a print 72 queue.</p> 73 </li> 74 </ol> 75 <br> 76 <br> 77 78 <p>Each message has a set of headers and a value. For 79 example, the decoded dump message from the previous section 80 would be:</p> 81 82 <div class="INFORMALEXAMPLE"> 83 <a name="AEN10911"></a> 84<pre class="SCREEN"> 85 host=h4.private 86 printer=t1 87 process=1613 88 update_time=1999-03-23-20:32:17.148 89 value=queue=holdall 0%250aprinting_aborted=0x0%250a\ 90 printing_disabled=0x0%250aspooling_disabled=0x0%250a%0a 91</pre> 92 </div> 93 <br> 94 <br> 95 96 <p>Each line consists of a key and a value. The <var class= 97 "LITERAL">host</var> key indicates the host name, <var class= 98 "LITERAL">printer</var> is the print queue, <var class= 99 "LITERAL">process</var> is the process which generated the 100 report or action, <var class="LITERAL">update_time</var> is 101 the time at which the report was generated, and <var class= 102 "LITERAL">value</var> is the value of the report.</p> 103 104 <p>The decoded <var class="LITERAL">value</var> of the above 105 report is:</p> 106 107 <div class="INFORMALEXAMPLE"> 108 <a name="AEN10921"></a> 109<pre class="SCREEN"> 110 queue='holdall 0%0aprinting_aborted=0x0%0aprinting_disabled=0x0%0a\ 111 spooling_disabled=0x0%0a 112</pre> 113 </div> 114 <br> 115 <br> 116 117 <p>The <var class="LITERAL">queue</var> key provides the 118 current value of the queue control file.</p> 119 </div> 120 121 <div class="NAVFOOTER"> 122 <hr align="LEFT" width="100%"> 123 124 <table summary="Footer navigation table" width="100%" border= 125 "0" cellpadding="0" cellspacing="0"> 126 <tr> 127 <td width="33%" align="left" valign="top"><a href= 128 "x10892.htm" accesskey="P">Prev</a></td> 129 130 <td width="34%" align="center" valign="top"><a href= 131 "index.htm" accesskey="H">Home</a></td> 132 133 <td width="33%" align="right" valign="top"><a href= 134 "x10925.htm" accesskey="N">Next</a></td> 135 </tr> 136 137 <tr> 138 <td width="33%" align="left" valign="top">Logger 139 Messages</td> 140 141 <td width="34%" align="center" valign="top"><a href= 142 "remotelogger.htm" accesskey="U">Up</a></td> 143 144 <td width="33%" align="right" valign="top">Dump 145 Messages</td> 146 </tr> 147 </table> 148 </div> 149 </body> 150</html> 151 152