110 lines
4.1 KiB
Plaintext
110 lines
4.1 KiB
Plaintext
Description:
|
|
View DC/OS node information.
|
|
|
|
Usage:
|
|
dcos node --help
|
|
dcos node --info
|
|
dcos node [--json]
|
|
dcos node --version
|
|
dcos node diagnostics (--list | --status | --cancel) [--json]
|
|
dcos node diagnostics create (<nodes>)...
|
|
dcos node diagnostics delete <bundle>
|
|
dcos node diagnostics download <bundle> [--location=<location>]
|
|
dcos node list-components [--leader --mesos-id=<mesos-id> --json]
|
|
dcos node log [--follow --lines=N --leader --master --mesos-id=<mesos-id> --slave=<agent-id>]
|
|
[--component=<component-name> --filter=<filter>...]
|
|
dcos node metrics details <mesos-id> [--json]
|
|
dcos node metrics summary <mesos-id> [--json]
|
|
dcos node ssh (--leader | --master | --mesos-id=<mesos-id> | --private-ip=<private-ip> | --slave=<agent-id>)
|
|
[--config-file=<path>]
|
|
[--user=<user>]
|
|
[--master-proxy]
|
|
[--option SSHOPT=VAL ...]
|
|
[--proxy-ip=<proxy-ip>]
|
|
[<command>]
|
|
|
|
Commands:
|
|
diagnostics
|
|
View the details of diagnostics bundles.
|
|
diagnostics create
|
|
Create a diagnostics bundle.
|
|
diagnostics delete
|
|
Delete a diagnostics bundle.
|
|
diagnostics download
|
|
Download a diagnostics bundle.
|
|
list-components
|
|
Print a list of available DC/OS components on specified node.
|
|
log
|
|
Print the Mesos logs for the leading master node, agent nodes, or both.
|
|
metrics details
|
|
Print a table of all metrics for the agent node specified by <mesos-id>.
|
|
metrics summary
|
|
Print CPU, memory and disk metrics for the agent node specified by
|
|
<mesos-id>.
|
|
ssh
|
|
Establish an SSH connection to the master or agent nodes of your DC/OS
|
|
cluster.
|
|
|
|
Options:
|
|
--cancel
|
|
Cancel a running diagnostics job.
|
|
--component=<component-name>
|
|
Show DC/OS component logs.
|
|
--config-file=<path>
|
|
Path to SSH configuration file.
|
|
--filter=<filter>
|
|
Filter logs by field and value. Filter must be a string separated by colon.
|
|
For example: --filter _PID:0 --filter _UID:1.
|
|
--follow
|
|
Dynamically update the log.
|
|
-h, --help
|
|
Show this screen.
|
|
--info
|
|
Show a short description of this subcommand.
|
|
--json
|
|
Print JSON-formatted list of nodes.
|
|
--leader
|
|
The leading master.
|
|
--lines=N
|
|
Print the last N lines, where 10 is the default.
|
|
--list
|
|
List available diagnostics bundles.
|
|
--location=<location>
|
|
Download the diagnostics bundle to a specific location. If not set, the
|
|
default location is your current working directory.
|
|
--master
|
|
This option is deprecated and is replaced by `--leader`.
|
|
--master-proxy
|
|
Proxy the SSH connection through a master node. This can be useful when
|
|
accessing DC/OS from a separate network. For example, in the default AWS
|
|
configuration, the private agents are unreachable from the public
|
|
internet. You can access them using this option, which will proxy the SSH
|
|
connection through the publicly reachable master.
|
|
--mesos-id=<mesos-id>
|
|
The agent ID of a node.
|
|
--option SSHOPT=VAL
|
|
The SSH options. For more information, enter `man ssh_config` in your
|
|
terminal.
|
|
--private-ip=<private-ip>
|
|
Agent node with the provided private IP.
|
|
--proxy-ip=<proxy-ip>
|
|
Proxy the SSH connection through a different IP address.
|
|
--slave=<agent-id>
|
|
This option is deprecated and is replaced by `--mesos-id`.
|
|
--status
|
|
Print diagnostics job status.
|
|
--user=<user>
|
|
The SSH user [default: core].
|
|
--version
|
|
Print version information.
|
|
|
|
Positional Arguments:
|
|
<bundle>
|
|
The bundle filename. For example, `bundle-2017-02-01T00:33:48-110930856.zip`.
|
|
<command>
|
|
Command to execute on the DCOS cluster node.
|
|
<nodes>
|
|
Node to run command upon. A node can be any of the following: IP address,
|
|
hostname, Mesos ID, or the keywords "all", "masters", "agents". You must use
|
|
quotation marks around keywords.
|