github.com/dkerwin/nomad@v0.3.3-0.20160525181927-74554135514b/website/source/docs/commands/inspect.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: inspect" 4 sidebar_current: "docs-commands-inspect" 5 description: > 6 The inspect command is used to inspect a submitted job. 7 --- 8 9 # Command: inspect 10 11 The `inspect` command is used to inspect the content of a submitted job. 12 13 ## Usage 14 15 ``` 16 nomad inspect [options] <job> 17 ``` 18 19 The `inspect` command requires a single argument, a submitted job's name, and 20 will retrieve the JSON version of the job. This JSON is valid to be submitted to 21 the [Job HTTP API](/docs/http/job.html). This command is useful to inspect what 22 version of a job Nomad is running. 23 24 ## General Options 25 26 <%= general_options_usage %> 27 28 ## Examples 29 30 Inspect a submitted job: 31 32 ``` 33 $ nomad inspect redis 34 { 35 "Job": { 36 "Region": "global", 37 "ID": "redis 38 "Name": "redis 39 "Type": "service", 40 "Priority": 50, 41 "AllAtOnce": false, 42 "Datacenters": [ 43 "dc1" 44 ], 45 "Constraints": [ 46 { 47 "LTarget": "${attr.kernel.name}", 48 "RTarget": "linux", 49 "Operand": "=" 50 } 51 ], 52 "TaskGroups": [ 53 { 54 "Name": "cache", 55 "Count": 1, 56 "Constraints": null, 57 "Tasks": [ 58 { 59 "Name": "redis", 60 "Driver": "docker", 61 "User": "", 62 "Config": { 63 "image": "redis:latest", 64 "port_map": [ 65 { 66 "db": 6379 67 } 68 ] 69 }, 70 "Constraints": null, 71 "Env": null, 72 "Services": [ 73 { 74 "Id": "", 75 "Name": "cache-redis", 76 "Tags": [ 77 "global", 78 "cache" 79 ], 80 "PortLabel": "db", 81 "Checks": [ 82 { 83 "Id": "", 84 "Name": "alive", 85 "Type": "tcp", 86 "Command": "", 87 "Args": null, 88 "Path": "", 89 "Protocol": "", 90 "Interval": 10000000000, 91 "Timeout": 2000000000 92 } 93 ] 94 } 95 ], 96 "Resources": { 97 "CPU": 500, 98 "MemoryMB": 256, 99 "DiskMB": 300, 100 "IOPS": 0, 101 "Networks": [ 102 { 103 "Public": false, 104 "CIDR": "", 105 "ReservedPorts": null, 106 "DynamicPorts": [ 107 { 108 "Label": "db", 109 "Value": 0 110 } 111 ], 112 "IP": "", 113 "MBits": 10 114 } 115 ] 116 }, 117 "Meta": null, 118 "KillTimeout": 5000000000, 119 "LogConfig": { 120 "MaxFiles": 10, 121 "MaxFileSizeMB": 10 122 }, 123 "Artifacts": null 124 } 125 ], 126 "RestartPolicy": { 127 "Interval": 300000000000, 128 "Attempts": 10, 129 "Delay": 25000000000, 130 "Mode": "delay" 131 }, 132 "Meta": null 133 } 134 ], 135 "Update": { 136 "Stagger": 10000000000, 137 "MaxParallel": 1 138 }, 139 "Periodic": null, 140 "Meta": null, 141 "Status": "running", 142 "StatusDescription": "", 143 "CreateIndex": 5, 144 "ModifyIndex": 7 145 } 146 } 147 ```