github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/commands/status.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: status'
     4  sidebar_title: status
     5  description: |
     6    Display the status output for any Nomad resource.
     7  ---
     8  
     9  # Command: status
    10  
    11  The `status` command displays the status output for any Nomad resource.
    12  
    13  ## Usage
    14  
    15  ```plaintext
    16  nomad status [options] <identifier>
    17  ```
    18  
    19  The status command accepts any Nomad identifier or identifier prefix as its sole
    20  argument. The command detects the type of the identifier and routes to the
    21  appropriate status command to display more detailed output.
    22  
    23  If the ID is omitted, the command lists out all of the existing jobs. This is
    24  for backwards compatibility and should not be relied on.
    25  
    26  ## General Options
    27  
    28  @include 'general_options.mdx'
    29  
    30  ## Examples
    31  
    32  Display the status of a job:
    33  
    34  ```shell-sessionnomad status example
    35  ID            = example
    36  Name          = example
    37  Submit Date   = 08/28/17 23:01:39 UTC
    38  Type          = service
    39  Priority      = 50
    40  Datacenters   = dc1
    41  Status        = running
    42  Periodic      = false
    43  Parameterized = false
    44  
    45  Summary
    46  Task Group  Queued  Starting  Running  Failed  Complete  Lost
    47  cache       0       0         1        0       0         0
    48  
    49  Latest Deployment
    50  ID          = f5506391
    51  Status      = running
    52  Description = Deployment is running
    53  
    54  Deployed
    55  Task Group  Desired  Placed  Healthy  Unhealthy
    56  cache       1        1       0        0
    57  
    58  Allocations
    59  ID        Node ID   Task Group  Version  Desired  Status   Created At
    60  e1d14a39  f9dabe93  cache       0        run      running  08/28/17 23:01:39 UTC
    61  ```
    62  
    63  Display the status of an allocation:
    64  
    65  ```shell-sessionnomad status e1d14a39
    66  ID                  = e1d14a39
    67  Eval ID             = cc882755
    68  Name                = example.cache[0]
    69  Node ID             = f9dabe93
    70  Job ID              = example
    71  Job Version         = 0
    72  Client Status       = running
    73  Client Description  = <none>
    74  Desired Status      = run
    75  Desired Description = <none>
    76  Created At          = 08/28/17 23:01:39 UTC
    77  Deployment ID       = f5506391
    78  Deployment Health   = healthy
    79  
    80  Task "redis" is "running"
    81  Task Resources
    82  CPU        Memory           Disk     Addresses
    83  4/500 MHz  6.3 MiB/256 MiB  300 MiB  db: 127.0.0.1:21752
    84  
    85  Task Events:
    86  Started At     = 08/28/17 23:01:39 UTC
    87  Finished At    = N/A
    88  Total Restarts = 0
    89  Last Restart   = N/A
    90  
    91  Recent Events:
    92  Time                   Type        Description
    93  08/28/17 23:01:39 UTC  Started     Task started by client
    94  08/28/17 23:01:39 UTC  Task Setup  Building Task Directory
    95  08/28/17 23:01:39 UTC  Received    Task received by client
    96  ```
    97  
    98  Display the status of a deployment:
    99  
   100  ```shell-sessionnomad status f5506391
   101  ID          = f5506391
   102  Job ID      = example
   103  Job Version = 0
   104  Status      = successful
   105  Description = Deployment completed successfully
   106  
   107  Deployed
   108  Task Group  Desired  Placed  Healthy  Unhealthy
   109  cache       1        1       1        0
   110  ```
   111  
   112  Display the status of a node:
   113  
   114  ```shell-sessionnomad status f9dabe93
   115  ID      = f9dabe93
   116  Name    = nomad-server01
   117  Class   = <none>
   118  DC      = dc1
   119  Drain   = false
   120  Status  = ready
   121  Drivers = docker,exec,java,qemu,raw_exec,rkt
   122  Uptime  = 4h17m24s
   123  
   124  Allocated Resources
   125  CPU           Memory           Disk
   126  500/8709 MHz  256 MiB/2.0 GiB  300 MiB/24 GiB
   127  
   128  Allocation Resource Utilization
   129  CPU         Memory
   130  3/8709 MHz  6.3 MiB/2.0 GiB
   131  
   132  Host Resource Utilization
   133  CPU           Memory           Disk
   134  116/8709 MHz  335 MiB/2.0 GiB  12 GiB/38 GiB
   135  
   136  Allocations
   137  ID        Node ID   Task Group  Version  Desired  Status   Created At
   138  e1d14a39  f9dabe93  cache       0        run      running  08/28/17 23:01:39 UTC
   139  ```