Add RST version of ganeti-watcher man page
[ganeti-local] / man / gnt-job.sgml
1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2
3   <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4   <!-- Please adjust the date whenever revising the manpage. -->
5   <!ENTITY dhdate      "<date>June 08, 2010</date>">
6   <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7        allowed: see man(7), man(1). -->
8   <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9   <!ENTITY dhucpackage "<refentrytitle>gnt-job</refentrytitle>">
10   <!ENTITY dhpackage   "gnt-job">
11
12   <!ENTITY debian      "<productname>Debian</productname>">
13   <!ENTITY gnu         "<acronym>GNU</acronym>">
14   <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
15   <!ENTITY footer SYSTEM "footer.sgml">
16 ]>
17
18 <refentry>
19   <refentryinfo>
20     <copyright>
21       <year>2008</year>
22       <year>2009</year>
23       <holder>Google Inc.</holder>
24     </copyright>
25     &dhdate;
26   </refentryinfo>
27   <refmeta>
28     &dhucpackage;
29
30     &dhsection;
31     <refmiscinfo>Ganeti 2.2</refmiscinfo>
32   </refmeta>
33   <refnamediv>
34     <refname>&dhpackage;</refname>
35
36     <refpurpose>Job commands</refpurpose>
37   </refnamediv>
38   <refsynopsisdiv>
39     <cmdsynopsis>
40       <command>&dhpackage; </command>
41
42       <arg choice="req">command</arg>
43       <arg>arguments...</arg>
44     </cmdsynopsis>
45   </refsynopsisdiv>
46   <refsect1>
47     <title>DESCRIPTION</title>
48
49     <para>
50       The <command>&dhpackage;</command> is used for examining and
51       manipulating the job queue.
52     </para>
53
54   </refsect1>
55   <refsect1>
56     <title>COMMANDS</title>
57
58     <refsect2>
59       <title>ARCHIVE</title>
60       <cmdsynopsis>
61         <command>archive</command>
62
63         <arg choice="req" rep="repeat">id</arg>
64       </cmdsynopsis>
65
66       <para>This command can be used to archive job by their IDs. Only
67       jobs that have finished execution (i.e either
68       <emphasis>success</emphasis>, <emphasis>error</emphasis> or
69       <emphasis>canceled</emphasis> jobs).</para>
70
71     </refsect2>
72
73     <refsect2>
74       <title>AUTOARCHIVE</title>
75       <cmdsynopsis>
76         <command>autoarchive</command>
77         <group choice="req">
78           <arg><replaceable>age</replaceable></arg>
79           <arg>all</arg>
80         </group>
81       </cmdsynopsis>
82
83       <para>
84         Archive jobs by their age. This command can archive jobs older
85         than <replaceable>age</replaceable> seconds, or alternatively
86         all finished jobs can be archived if the string <literal>all
87         </literal> is passed.
88       </para>
89     </refsect2>
90
91     <refsect2>
92       <title>CANCEL</title>
93       <cmdsynopsis>
94         <command>cancel</command>
95         <arg choice="req"><replaceable>id</replaceable></arg>
96       </cmdsynopsis>
97
98       <para>
99         Cancel the job identified by the given
100         <replaceable>id</replaceable>. Only jobs that have not yet
101         started to run can be canceled; that is, jobs in either the
102         <emphasis>queued</emphasis> or <emphasis>waiting</emphasis>
103         state.
104       </para>
105     </refsect2>
106
107     <refsect2>
108       <title>INFO</title>
109       <cmdsynopsis>
110         <command>info</command>
111         <arg choice="req" rep="repeat"><replaceable>id</replaceable></arg>
112       </cmdsynopsis>
113
114       <para>
115         Show detailed information about the given job id(s). If no job
116         id is given, all jobs are examined (warning, this is a lot of
117         information).
118       </para>
119
120     </refsect2>
121
122     <refsect2>
123       <title>LIST</title>
124       <cmdsynopsis>
125         <command>list</command>
126         <arg>--no-headers</arg>
127         <arg>--separator=<replaceable>SEPARATOR</replaceable></arg>
128         <sbr>
129         <arg>-o <replaceable>[+]FIELD,...</replaceable></arg>
130         <sbr>
131       </cmdsynopsis>
132
133       <para>
134         Lists the jobs and their status. By default, the job id, job
135         status, and a small job description is listed, but additional
136         parameters can be selected.
137       </para>
138
139       <para>
140         The <option>--no-headers</option> option will skip the initial
141         header line. The <option>--separator</option> option takes an
142         argument which denotes what will be used between the output
143         fields. Both these options are to help scripting.
144       </para>
145
146       <para>
147         The <option>-o</option> option takes a comma-separated list of
148         output fields. The available fields and their meaning are:
149         <variablelist>
150           <varlistentry>
151             <term>id</term>
152             <listitem>
153               <simpara>the job id</simpara>
154             </listitem>
155           </varlistentry>
156           <varlistentry>
157             <term>status</term>
158             <listitem>
159               <simpara>the status of the job</simpara>
160             </listitem>
161           </varlistentry>
162           <varlistentry>
163             <term>priority</term>
164             <listitem>
165               <simpara>current priority of the job</simpara>
166             </listitem>
167           </varlistentry>
168           <varlistentry>
169             <term>received_ts</term>
170             <listitem>
171               <simpara>the timestamp the job was received</simpara>
172             </listitem>
173           </varlistentry>
174           <varlistentry>
175             <term>start_ts</term>
176             <listitem>
177               <simpara>the timestamp when the job was started</simpara>
178             </listitem>
179           </varlistentry>
180           <varlistentry>
181             <term>end_ts</term>
182             <listitem>
183               <simpara>the timestamp when the job was ended</simpara>
184             </listitem>
185           </varlistentry>
186           <varlistentry>
187             <term>summary</term>
188             <listitem>
189               <simpara>a summary of the opcodes that define the job</simpara>
190             </listitem>
191           </varlistentry>
192           <varlistentry>
193             <term>ops</term>
194             <listitem>
195               <simpara>the list of opcodes defining the job</simpara>
196             </listitem>
197           </varlistentry>
198           <varlistentry>
199             <term>opresult</term>
200             <listitem>
201               <simpara>the list of opcode results</simpara>
202             </listitem>
203           </varlistentry>
204           <varlistentry>
205             <term>opstatus</term>
206             <listitem>
207               <simpara>the list of opcode statuses</simpara>
208             </listitem>
209           </varlistentry>
210           <varlistentry>
211             <term>oplog</term>
212             <listitem>
213               <simpara>the list of opcode logs</simpara>
214             </listitem>
215           </varlistentry>
216           <varlistentry>
217             <term>opstart</term>
218             <listitem>
219               <simpara>the list of opcode start times (before
220               acquiring locks)</simpara>
221             </listitem>
222           </varlistentry>
223           <varlistentry>
224             <term>opexec</term>
225             <listitem>
226               <simpara>the list of opcode execution start times (after
227               acquiring any necessary locks)</simpara>
228             </listitem>
229           </varlistentry>
230           <varlistentry>
231             <term>opend</term>
232             <listitem>
233               <simpara>the list of opcode end times</simpara>
234             </listitem>
235           </varlistentry>
236           <varlistentry>
237             <term>oppriority</term>
238             <listitem>
239               <simpara>the priority of each opcode</simpara>
240             </listitem>
241           </varlistentry>
242         </variablelist>
243       </para>
244
245       <para>
246         If the value of the option starts with the character
247         <constant>+</constant>, the new fields will be added to the
248         default list. This allows to quickly see the default list plus
249         a few other fields, instead of retyping the entire list of
250         fields.
251       </para>
252
253     </refsect2>
254
255     <refsect2>
256       <title>WATCH</title>
257       <cmdsynopsis>
258         <command>watch</command>
259         <arg>id</arg>
260       </cmdsynopsis>
261
262       <para>
263         This command follows the output of the job by the given
264         <replaceable>id</replaceable> and prints it.
265       </para>
266     </refsect2>
267
268   </refsect1>
269
270   &footer;
271
272 </refentry>
273
274 <!-- Keep this comment at the end of the file
275 Local variables:
276 mode: sgml
277 sgml-omittag:t
278 sgml-shorttag:t
279 sgml-minimize-attributes:nil
280 sgml-always-quote-attributes:t
281 sgml-indent-step:2
282 sgml-indent-data:t
283 sgml-parent-document:nil
284 sgml-default-dtd-file:nil
285 sgml-exposed-tags:nil
286 sgml-local-catalogs:nil
287 sgml-local-ecat-files:nil
288 End:
289 -->