Outdated Version

You are viewing an older version of this section. View current production version.

AGENT-GET

MemSQL Ops has been deprecated

Please follow this guide to learn how to migrate to SingleStore tools.

Allows copying of files from other hosts via SCP.

Specifying a list of agent-id's, this command allows users to SCP files from remote MemSQL Ops agent hosts. The SCP credentials used in this command are the same credentials used to deploy the MemSQL Ops agent into that host, or the credentials subsequently

Usage

usage: memsql-ops agent-get [--settings-file SETTINGS_FILE]
                            [--agent-ids AGENT_IDS [AGENT_IDS ...]]
                            [--memsql-role {leaf,aggregator,master} [{leaf,aggregator,master} ...]]
                            [--no-prompt] [-u USER] [-P PORT] [-i PRIVATE_KEY]
                            [-p PASSWORD]
                            source dest

SCP files from agents.

positional arguments:
  source                Path to the source file on the remote agent(s).
  dest                  Path to the destination file on the local machine.

optional arguments:
  --settings-file SETTINGS_FILE
                        A path to a MemSQL Ops settings.conf file. If not set,
                        we will use the file in the same directory as the
                        MemSQL Ops binary.
  --agent-ids AGENT_IDS [AGENT_IDS ...]
                        Filter the nodes by the specified agent IDs.
  --memsql-role {leaf,aggregator,master} [{leaf,aggregator,master} ...]
                        Filter the nodes by the specified MemSQL roles.
  --no-prompt           Skip interactive prompts if a single agent is
                        selected.
  -u USER, --user USER  Use this user for all SSH connections.
  -P PORT, --port PORT  Use this port for all SSH connections.
  -i PRIVATE_KEY, --private-key-file PRIVATE_KEY
                        Use this SSH key for all SSH connections.
  -p PASSWORD, --password PASSWORD
                        Use this password for all SSH connections.