Statistics
| Branch: | Tag: | Revision:

root / man / gnt-job.rst @ e1c701e7

History | View | Annotate | Download (2.9 kB)

1
gnt-job(8) Ganeti | Version @GANETI_VERSION@
2
============================================
3

    
4
Name
5
----
6

    
7
gnt-job - Job commands
8

    
9
Synopsis
10
--------
11

    
12
**gnt-job** {command} [arguments...]
13

    
14
DESCRIPTION
15
-----------
16

    
17
The **gnt-job** is used for examining and manipulating the job
18
queue.
19

    
20
COMMANDS
21
--------
22

    
23
ARCHIVE
24
~~~~~~~
25

    
26
**archive** {id...}
27

    
28
This command can be used to archive job by their IDs. Only jobs
29
that have finished execution (i.e either *success*, *error* or
30
*canceled* jobs).
31

    
32
AUTOARCHIVE
33
~~~~~~~~~~~
34

    
35
**autoarchive** {*age* | ``all``}
36

    
37
Archive jobs by their age. This command can archive jobs older than
38
*age* seconds, or alternatively all finished jobs can be archived
39
if the string all is passed.
40

    
41
CANCEL
42
~~~~~~
43

    
44
| **cancel**
45
| {[\--force] {\--pending | \--queued | \--waiting} | *job-id* ...}
46

    
47
Cancel the job(s) identified by the given *job id*. Only jobs that have
48
not yet started to run can be canceled; that is, jobs in either the
49
*queued* or *waiting* state. To skip a confirmation, pass ``--force``.
50
``--queued`` and ``waiting`` can be used to cancel all jobs in the
51
respective state, ``--pending`` includes both.
52

    
53
INFO
54
~~~~
55

    
56
**info** {*id*...}
57

    
58
Show detailed information about the given job id(s). If no job id
59
is given, all jobs are examined (warning, this is a lot of
60
information).
61

    
62
LIST
63
~~~~
64

    
65
| **list** [\--no-headers] [\--separator=*SEPARATOR*]
66
| [-o *[+]FIELD,...*] [\--filter] [job-id...]
67

    
68
Lists the jobs and their status. By default, the job id, job
69
status, and a small job description is listed, but additional
70
parameters can be selected.
71

    
72
The ``--no-headers`` option will skip the initial header line. The
73
``--separator`` option takes an argument which denotes what will be
74
used between the output fields. Both these options are to help
75
scripting.
76

    
77
The ``-o`` option takes a comma-separated list of output fields.
78
The available fields and their meaning are:
79

    
80
@QUERY_FIELDS_JOB@
81

    
82
If the value of the option starts with the character ``+``, the new
83
fields will be added to the default list. This allows one to quickly
84
see the default list plus a few other fields, instead of retyping
85
the entire list of fields.
86

    
87
To include archived jobs in the list the ``--archived`` option can be
88
used.
89

    
90
The following options can be used to show only specific jobs:
91

    
92
``--pending``
93
  Show only jobs pending execution.
94
``--running``
95
  Show jobs currently running only.
96
``--error``
97
  Show failed jobs only.
98
``--finished``
99
  Show finished jobs only.
100

    
101
If exactly one argument is given and it appears to be a query filter
102
(see **ganeti(7)**), the query result is filtered accordingly. For
103
ambiguous cases (e.g. a single field name as a filter) the ``--filter``
104
(``-F``) option forces the argument to be treated as a filter.
105

    
106

    
107
LIST-FIELDS
108
~~~~~~~~~~~
109

    
110
**list-fields** [field...]
111

    
112
Lists available fields for jobs.
113

    
114

    
115
WATCH
116
~~~~~
117

    
118
**watch** {id}
119

    
120
This command follows the output of the job by the given *id* and
121
prints it.
122

    
123
.. vim: set textwidth=72 :
124
.. Local Variables:
125
.. mode: rst
126
.. fill-column: 72
127
.. End: