github.com/smintz/nomad@v0.8.3/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 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 ``` 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 <%= partial "docs/commands/_general_options" %> 29 30 ## Examples 31 32 Display the status of a job: 33 34 ``` 35 $ nomad status example 36 ID = example 37 Name = example 38 Submit Date = 08/28/17 23:01:39 UTC 39 Type = service 40 Priority = 50 41 Datacenters = dc1 42 Status = running 43 Periodic = false 44 Parameterized = false 45 46 Summary 47 Task Group Queued Starting Running Failed Complete Lost 48 cache 0 0 1 0 0 0 49 50 Latest Deployment 51 ID = f5506391 52 Status = running 53 Description = Deployment is running 54 55 Deployed 56 Task Group Desired Placed Healthy Unhealthy 57 cache 1 1 0 0 58 59 Allocations 60 ID Node ID Task Group Version Desired Status Created At 61 e1d14a39 f9dabe93 cache 0 run running 08/28/17 23:01:39 UTC 62 ``` 63 64 Display the status of an allocation: 65 66 ``` 67 $ nomad status e1d14a39 68 ID = e1d14a39 69 Eval ID = cc882755 70 Name = example.cache[0] 71 Node ID = f9dabe93 72 Job ID = example 73 Job Version = 0 74 Client Status = running 75 Client Description = <none> 76 Desired Status = run 77 Desired Description = <none> 78 Created At = 08/28/17 23:01:39 UTC 79 Deployment ID = f5506391 80 Deployment Health = healthy 81 82 Task "redis" is "running" 83 Task Resources 84 CPU Memory Disk IOPS Addresses 85 4/500 MHz 6.3 MiB/256 MiB 300 MiB 0 db: 127.0.0.1:21752 86 87 Task Events: 88 Started At = 08/28/17 23:01:39 UTC 89 Finished At = N/A 90 Total Restarts = 0 91 Last Restart = N/A 92 93 Recent Events: 94 Time Type Description 95 08/28/17 23:01:39 UTC Started Task started by client 96 08/28/17 23:01:39 UTC Task Setup Building Task Directory 97 08/28/17 23:01:39 UTC Received Task received by client 98 ``` 99 100 Display the status of a deployment: 101 102 ``` 103 $ nomad status f5506391 104 ID = f5506391 105 Job ID = example 106 Job Version = 0 107 Status = successful 108 Description = Deployment completed successfully 109 110 Deployed 111 Task Group Desired Placed Healthy Unhealthy 112 cache 1 1 1 0 113 ``` 114 115 Display the status of a node: 116 117 ``` 118 $ nomad status f9dabe93 119 ID = f9dabe93 120 Name = nomad-server01 121 Class = <none> 122 DC = dc1 123 Drain = false 124 Status = ready 125 Drivers = docker,exec,java,qemu,raw_exec,rkt 126 Uptime = 4h17m24s 127 128 Allocated Resources 129 CPU Memory Disk IOPS 130 500/8709 MHz 256 MiB/2.0 GiB 300 MiB/24 GiB 0/0 131 132 Allocation Resource Utilization 133 CPU Memory 134 3/8709 MHz 6.3 MiB/2.0 GiB 135 136 Host Resource Utilization 137 CPU Memory Disk 138 116/8709 MHz 335 MiB/2.0 GiB 12 GiB/38 GiB 139 140 Allocations 141 ID Node ID Task Group Version Desired Status Created At 142 e1d14a39 f9dabe93 cache 0 run running 08/28/17 23:01:39 UTC 143 ```