Statistics
| Branch: | Tag: | Revision:

root / man / gnt-job.rst @ 9ff4f2c0

History | View | Annotate | Download (2.7 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** {*id*}
45

    
46
Cancel the job identified by the given *id*. Only jobs that have
47
not yet started to run can be canceled; that is, jobs in either the
48
*queued* or *waiting* state.
49

    
50
INFO
51
~~~~
52

    
53
**info** {*id*...}
54

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

    
59
LIST
60
~~~~
61

    
62
**list** [--no-headers] [--separator=*SEPARATOR*]
63
[-o *[+]FIELD,...*]
64

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

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

    
74
The ``-o`` option takes a comma-separated list of output fields.
75
The available fields and their meaning are:
76

    
77

    
78

    
79
id
80
    the job id
81

    
82
status
83
    the status of the job
84

    
85
priority
86
    current priority of the job
87

    
88
received_ts
89
    the timestamp the job was received
90

    
91
start_ts
92
    the timestamp when the job was started
93

    
94
end_ts
95
    the timestamp when the job was ended
96

    
97
summary
98
    a summary of the opcodes that define the job
99

    
100
ops
101
    the list of opcodes defining the job
102

    
103
opresult
104
    the list of opcode results
105

    
106
opstatus
107
    the list of opcode statuses
108

    
109
oplog
110
    the list of opcode logs
111

    
112
opstart
113
    the list of opcode start times (before acquiring locks)
114

    
115
opexec
116
    the list of opcode execution start times (after acquiring any
117
    necessary locks)
118

    
119
opend
120
    the list of opcode end times
121

    
122
oppriority
123
    the priority of each opcode
124

    
125

    
126
If the value of the option starts with the character ``+``, the new
127
fields will be added to the default list. This allows to quickly
128
see the default list plus a few other fields, instead of retyping
129
the entire list of fields.
130

    
131
WATCH
132
~~~~~
133

    
134
**watch** {id}
135

    
136
This command follows the output of the job by the given *id* and
137
prints it.
138

    
139
.. vim: set textwidth=72 :
140
.. Local Variables:
141
.. mode: rst
142
.. fill-column: 72
143
.. End: