1 gnt-job(8) Ganeti | Version @GANETI_VERSION@
2 ============================================
12 **gnt-job** {command} [arguments...]
17 The **gnt-job** is used for examining and manipulating the job
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
35 **autoarchive** {*age* | ``all``}
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.
45 | {[\--force] {\--pending | \--queued | \--waiting} |
48 Cancel the job(s) identified by the given *job id*. Only jobs that have
49 not yet started to run can be canceled; that is, jobs in either the
50 *queued* or *waiting* state. To skip a confirmation, pass ``--force``.
51 ``--queued`` and ``waiting`` can be used to cancel all jobs in the
52 respective state, ``--pending`` includes both.
57 | **change-priority** \--priority {low | normal | high}
58 | {[\--force] {\--pending | \--queued | \--waiting} |
61 Changes the priority of one or multiple pending jobs. Jobs currently
62 running have only the priority of remaining opcodes changed.
63 ``--priority`` must be specified. ``--queued`` and ``waiting`` can be
64 used to re-prioritize all jobs in the respective state, ``--pending``
65 includes both. To skip a confirmation, pass ``--force``.
72 Show detailed information about the given job id(s). If no job id
73 is given, all jobs are examined (warning, this is a lot of
79 | **list** [\--no-headers] [\--separator=*SEPARATOR*]
80 | [-o *[+]FIELD,...*] [\--filter] [job-id...]
82 Lists the jobs and their status. By default, the job id, job
83 status, and a small job description is listed, but additional
84 parameters can be selected.
86 The ``--no-headers`` option will skip the initial header line. The
87 ``--separator`` option takes an argument which denotes what will be
88 used between the output fields. Both these options are to help
91 The ``-o`` option takes a comma-separated list of output fields.
92 The available fields and their meaning are:
96 If the value of the option starts with the character ``+``, the new
97 fields will be added to the default list. This allows one to quickly
98 see the default list plus a few other fields, instead of retyping
99 the entire list of fields.
101 To include archived jobs in the list the ``--archived`` option can be
104 The following options can be used to show only specific jobs:
107 Show only jobs pending execution.
109 Show jobs currently running only.
111 Show failed jobs only.
113 Show finished jobs only.
115 If exactly one argument is given and it appears to be a query filter
116 (see **ganeti**\(7)), the query result is filtered accordingly. For
117 ambiguous cases (e.g. a single field name as a filter) the ``--filter``
118 (``-F``) option forces the argument to be treated as a filter.
124 **list-fields** [field...]
126 Lists available fields for jobs.
134 This command follows the output of the job by the given *id* and
137 .. vim: set textwidth=72 :