describe-node

Get a property of a MemSQL Node

Usage

Usage:
  memsql-admin describe-node [flags]

Flags:
  -h, --help                                                                                                                                                                                                                                                                                         help for describe-node
      --memsql-id MemsqlID                                                                                                                                                                                                                                                                           MemSQL ID to describe
      --property {MemsqlID, Role, ProcessState, Version, Memsqld, MemsqlConfig, Port, BindAddress, Datadir, Tracelogsdir, Plancachedir, Auditlogsdir, IsConnectable, Pid, DPid, AutoRestartEnabled, RecoveryState, AvailabilityGroup, Host, Config[.${CONFIG_NAME}], Variables[.${VARIABLE_NAME}]}   Only output the value of this property (default Unspecified)

Global Flags:
      --cache-file FILE_PATH         File path for the Toolbox node cache
  -c, --config FILE_PATH             the Toolbox configuration file path
  -j, --json                         Enable JSON output
      --parallelism int              Maximum amount of operations to be run in parallel
      --runtime-dir DIRECTORY_PATH   where to put Toolbox runtime data
      --state-file FILE_PATH         the Toolbox state file path
  -v, --verbosity count              Increase logging verbosity
  -y, --yes                          Enable non-interactive mode and assume the user would like to move forward with the proposed actions by default

Remarks

This command is interactive unless you use either the --yes or --json flags to override interactive behavior.

Output

In the example output below you can see the types of information this command returns. For example the MemSQL ID is listed, which is used in many other memsql-admin commands. We can also see this information was collected for the master aggregator node, because the role indicates: Master.

Additionally the config, data, plancace, logs, and the binary are all at their default paths, which includes a node-specific hash. If you are using a config management system then you might need to customize these paths. They can be configured either as engine variables, or in the memsqlctl state and config files.

memsql-admin describe-node --memsql-id ABD133F854
****
+--------------------+------------------------------------------------------------------------------------+
| memsqlId           | ABD133F85498D120EA63C066C02C844AFE66CB45                                           |
| host               | node1                                                                              |
| role               | Leaf                                                                               |
| port               | 3308                                                                               |
| bindAddress        | 0.0.0.0                                                                            |
| processState       | Running                                                                            |
| version            | 6.8.13                                                                             |
| memsqlConfig       | /var/lib/memsql/acf62238-1551-4165-99a4-3f2c924fba48/memsql.cnf                    |
| datadir            | /var/lib/memsql/acf62238-1551-4165-99a4-3f2c924fba48/data                          |
| plancachedir       | /var/lib/memsql/acf62238-1551-4165-99a4-3f2c924fba48/plancache                     |
| tracelogsdir       | /var/lib/memsql/acf62238-1551-4165-99a4-3f2c924fba48/tracelogs                     |
| auditlogsdir       | /var/lib/memsql/acf62238-1551-4165-99a4-3f2c924fba48/auditlogs                     |
| memsqld            | /opt/memsql-server-6.8.13-47a99cbc09/memsqld                                       |
| pid                | 3371                                                                               |
| dpid               | 3377                                                                               |
| autoRestartEnabled | true                                                                               |
| isConnectable      | true                                                                               |
| recoveryState      | Online                                                                             |
| availabilityGroup  | 1                                                                                  |
| config             | Omitted from table view. Use 'memsql-admin describe-node ... --property config'    |
| variables          | Omitted from table view. Use 'memsql-admin describe-node ... --property variables' |
+--------------------+------------------------------------------------------------------------------------+
Was this article useful?