github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/website/source/docs/commands/status.html.md.erb (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Commands: status"
     4  sidebar_current: "docs-commands-status"
     5  description: >
     6    Display information and status of jobs.
     7  ---
     8  
     9  # Command: status
    10  
    11  The `status` command displays status information for jobs.
    12  
    13  ## Usage
    14  
    15  ```
    16  nomad status [options] [job]
    17  ```
    18  
    19  This command accepts an option job ID as the sole argument. If the job ID is
    20  provided, information about the specific job is queried and displayed. If the ID
    21  is omitted, the command lists out all of the existing jobs and a few of the most
    22  useful status fields for each.
    23  
    24  ## General Options
    25  
    26  <%= general_options_usage %>
    27  
    28  ## Status Options
    29  
    30  * `-short`: Display short output. Used only when a single node is being queried.
    31    Drops verbose node allocation data from the output.
    32  
    33  ## Examples
    34  
    35  List of all jobs:
    36  
    37  ```
    38  $ nomad status
    39  ID     Type     Priority  Status
    40  job1   service  3         pending
    41  job2   service  3         running
    42  job3   service  2         pending
    43  job4   service  1         complete
    44  ```
    45  
    46  Short view of a specific job:
    47  
    48  ```
    49  $ nomad status -short job1
    50  ID          = job1
    51  Name        = Test Job
    52  Type        = service
    53  Priority    = 3
    54  Datacenters = dc1,dc2,dc3
    55  Status      = pending
    56  ```
    57  
    58  Full status information of a job:
    59  
    60  ```
    61  $ nomad status job1
    62  ID          = job1
    63  Name        = Test Job
    64  Type        = service
    65  Priority    = 3
    66  Datacenters = dc1,dc2,dc3
    67  Status      = pending
    68  
    69  ### Evaluations
    70  ID                                    Priority  Type     TriggeredBy   NodeID  Status
    71  193229c4-aa02-bbe6-f996-fd7d6974a309  3         service  job-register  node2   complete
    72  
    73  ### Allocations
    74  ID                                    EvalID                                NodeID  TaskGroup  DesiredStatus  ClientStatus
    75  678c51dc-6c55-0ac8-d92d-675a1e8ea6b0  193229c4-aa02-bbe6-f996-fd7d6974a309  node2   grp8       failed         failed
    76  ```