github.com/dkerwin/nomad@v0.3.3-0.20160525181927-74554135514b/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 optional job ID or prefix as the sole argument. If there
    20  is an exact match based on the provided job ID or prefix, then information about
    21  the specific job is queried and displayed. Otherwise, a list of matching jobs and
    22  information will be displayed.
    23  
    24  If the ID is omitted, the command lists out all of the existing jobs and a few of
    25  the most useful status fields for each.
    26  
    27  ## General Options
    28  
    29  <%= general_options_usage %>
    30  
    31  ## Status Options
    32  
    33  * `-short`: Display short output. Used only when a single node is being queried.
    34    Drops verbose node allocation data from the output.
    35  * `-verbose`: Show full information.
    36  
    37  ## Examples
    38  
    39  List of all jobs:
    40  
    41  ```
    42  $ nomad status
    43  ID     Type     Priority  Status
    44  job1   service  3         pending
    45  job2   service  3         running
    46  job3   service  2         pending
    47  job4   service  1         complete
    48  ```
    49  
    50  Short view of a specific job:
    51  
    52  ```
    53  $ nomad status -short job1
    54  ID          = job1
    55  Name        = Test Job
    56  Type        = service
    57  Priority    = 3
    58  Datacenters = dc1,dc2,dc3
    59  Status      = pending
    60  ```
    61  
    62  Full status information of a job:
    63  
    64  ```
    65  $ nomad status job1
    66  ID          = job1
    67  Name        = Test Job
    68  Type        = service
    69  Priority    = 3
    70  Datacenters = dc1,dc2,dc3
    71  Status      = pending
    72  
    73  ### Evaluations
    74  ID        Priority  Type     TriggeredBy   NodeID  Status
    75  193229c4  3         service  job-register  node2   complete
    76  
    77  ### Allocations
    78  ID        EvalID    NodeID  TaskGroup  DesiredStatus  ClientStatus
    79  678c51dc  193229c4  node2   grp8       failed         failed
    80  ```