Statistics
| Branch: | Tag: | Revision:

root / man / gnt-job.rst @ 5b53ca79

History | View | Annotate | Download (2.7 kB)

1 b3723c81 Iustin Pop
gnt-job(8) Ganeti | Version @GANETI_VERSION@
2 b3723c81 Iustin Pop
============================================
3 b3723c81 Iustin Pop
4 b3723c81 Iustin Pop
Name
5 b3723c81 Iustin Pop
----
6 b3723c81 Iustin Pop
7 b3723c81 Iustin Pop
gnt-job - Job commands
8 b3723c81 Iustin Pop
9 b3723c81 Iustin Pop
Synopsis
10 b3723c81 Iustin Pop
--------
11 b3723c81 Iustin Pop
12 b3723c81 Iustin Pop
**gnt-job** {command} [arguments...]
13 b3723c81 Iustin Pop
14 b3723c81 Iustin Pop
DESCRIPTION
15 b3723c81 Iustin Pop
-----------
16 b3723c81 Iustin Pop
17 b3723c81 Iustin Pop
The **gnt-job** is used for examining and manipulating the job
18 b3723c81 Iustin Pop
queue.
19 b3723c81 Iustin Pop
20 b3723c81 Iustin Pop
COMMANDS
21 b3723c81 Iustin Pop
--------
22 b3723c81 Iustin Pop
23 b3723c81 Iustin Pop
ARCHIVE
24 b3723c81 Iustin Pop
~~~~~~~
25 b3723c81 Iustin Pop
26 b3723c81 Iustin Pop
**archive** {id...}
27 b3723c81 Iustin Pop
28 b3723c81 Iustin Pop
This command can be used to archive job by their IDs. Only jobs
29 b3723c81 Iustin Pop
that have finished execution (i.e either *success*, *error* or
30 b3723c81 Iustin Pop
*canceled* jobs).
31 b3723c81 Iustin Pop
32 b3723c81 Iustin Pop
AUTOARCHIVE
33 b3723c81 Iustin Pop
~~~~~~~~~~~
34 b3723c81 Iustin Pop
35 b3723c81 Iustin Pop
**autoarchive** {*age* | ``all``}
36 b3723c81 Iustin Pop
37 b3723c81 Iustin Pop
Archive jobs by their age. This command can archive jobs older than
38 b3723c81 Iustin Pop
*age* seconds, or alternatively all finished jobs can be archived
39 b3723c81 Iustin Pop
if the string all is passed.
40 b3723c81 Iustin Pop
41 b3723c81 Iustin Pop
CANCEL
42 b3723c81 Iustin Pop
~~~~~~
43 b3723c81 Iustin Pop
44 b3723c81 Iustin Pop
**cancel** {*id*}
45 b3723c81 Iustin Pop
46 b3723c81 Iustin Pop
Cancel the job identified by the given *id*. Only jobs that have
47 b3723c81 Iustin Pop
not yet started to run can be canceled; that is, jobs in either the
48 b3723c81 Iustin Pop
*queued* or *waiting* state.
49 b3723c81 Iustin Pop
50 b3723c81 Iustin Pop
INFO
51 b3723c81 Iustin Pop
~~~~
52 b3723c81 Iustin Pop
53 b3723c81 Iustin Pop
**info** {*id*...}
54 b3723c81 Iustin Pop
55 b3723c81 Iustin Pop
Show detailed information about the given job id(s). If no job id
56 b3723c81 Iustin Pop
is given, all jobs are examined (warning, this is a lot of
57 b3723c81 Iustin Pop
information).
58 b3723c81 Iustin Pop
59 b3723c81 Iustin Pop
LIST
60 b3723c81 Iustin Pop
~~~~
61 b3723c81 Iustin Pop
62 b3723c81 Iustin Pop
**list** [--no-headers] [--separator=*SEPARATOR*]
63 b3723c81 Iustin Pop
[-o *[+]FIELD,...*]
64 b3723c81 Iustin Pop
65 b3723c81 Iustin Pop
Lists the jobs and their status. By default, the job id, job
66 b3723c81 Iustin Pop
status, and a small job description is listed, but additional
67 b3723c81 Iustin Pop
parameters can be selected.
68 b3723c81 Iustin Pop
69 b3723c81 Iustin Pop
The ``--no-headers`` option will skip the initial header line. The
70 b3723c81 Iustin Pop
``--separator`` option takes an argument which denotes what will be
71 b3723c81 Iustin Pop
used between the output fields. Both these options are to help
72 b3723c81 Iustin Pop
scripting.
73 b3723c81 Iustin Pop
74 b3723c81 Iustin Pop
The ``-o`` option takes a comma-separated list of output fields.
75 b3723c81 Iustin Pop
The available fields and their meaning are:
76 b3723c81 Iustin Pop
77 b3723c81 Iustin Pop
78 b3723c81 Iustin Pop
79 b3723c81 Iustin Pop
id
80 b3723c81 Iustin Pop
    the job id
81 b3723c81 Iustin Pop
82 b3723c81 Iustin Pop
status
83 b3723c81 Iustin Pop
    the status of the job
84 b3723c81 Iustin Pop
85 b3723c81 Iustin Pop
priority
86 b3723c81 Iustin Pop
    current priority of the job
87 b3723c81 Iustin Pop
88 b3723c81 Iustin Pop
received_ts
89 b3723c81 Iustin Pop
    the timestamp the job was received
90 b3723c81 Iustin Pop
91 b3723c81 Iustin Pop
start_ts
92 b3723c81 Iustin Pop
    the timestamp when the job was started
93 b3723c81 Iustin Pop
94 b3723c81 Iustin Pop
end_ts
95 b3723c81 Iustin Pop
    the timestamp when the job was ended
96 b3723c81 Iustin Pop
97 b3723c81 Iustin Pop
summary
98 b3723c81 Iustin Pop
    a summary of the opcodes that define the job
99 b3723c81 Iustin Pop
100 b3723c81 Iustin Pop
ops
101 b3723c81 Iustin Pop
    the list of opcodes defining the job
102 b3723c81 Iustin Pop
103 b3723c81 Iustin Pop
opresult
104 b3723c81 Iustin Pop
    the list of opcode results
105 b3723c81 Iustin Pop
106 b3723c81 Iustin Pop
opstatus
107 b3723c81 Iustin Pop
    the list of opcode statuses
108 b3723c81 Iustin Pop
109 b3723c81 Iustin Pop
oplog
110 b3723c81 Iustin Pop
    the list of opcode logs
111 b3723c81 Iustin Pop
112 b3723c81 Iustin Pop
opstart
113 b3723c81 Iustin Pop
    the list of opcode start times (before acquiring locks)
114 b3723c81 Iustin Pop
115 b3723c81 Iustin Pop
opexec
116 b3723c81 Iustin Pop
    the list of opcode execution start times (after acquiring any
117 b3723c81 Iustin Pop
    necessary locks)
118 b3723c81 Iustin Pop
119 b3723c81 Iustin Pop
opend
120 b3723c81 Iustin Pop
    the list of opcode end times
121 b3723c81 Iustin Pop
122 b3723c81 Iustin Pop
oppriority
123 b3723c81 Iustin Pop
    the priority of each opcode
124 b3723c81 Iustin Pop
125 b3723c81 Iustin Pop
126 b3723c81 Iustin Pop
If the value of the option starts with the character ``+``, the new
127 f7b769b1 Iustin Pop
fields will be added to the default list. This allows one to quickly
128 b3723c81 Iustin Pop
see the default list plus a few other fields, instead of retyping
129 b3723c81 Iustin Pop
the entire list of fields.
130 b3723c81 Iustin Pop
131 b3723c81 Iustin Pop
WATCH
132 b3723c81 Iustin Pop
~~~~~
133 b3723c81 Iustin Pop
134 b3723c81 Iustin Pop
**watch** {id}
135 b3723c81 Iustin Pop
136 b3723c81 Iustin Pop
This command follows the output of the job by the given *id* and
137 b3723c81 Iustin Pop
prints it.
138 9ff4f2c0 Michael Hanselmann
139 9ff4f2c0 Michael Hanselmann
.. vim: set textwidth=72 :
140 9ff4f2c0 Michael Hanselmann
.. Local Variables:
141 9ff4f2c0 Michael Hanselmann
.. mode: rst
142 9ff4f2c0 Michael Hanselmann
.. fill-column: 72
143 9ff4f2c0 Michael Hanselmann
.. End: