# describe-node

## Description

Get a property of a node on the host.

The following describes the properties of a SingleStore node.

| Name                 | Description                                                                                                                                                                                                                                                                                                            |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `memsqlId`           | GUID value uniquely identifying this node.                                                                                                                                                                                                                                                                             |
| `role`               | Role of the node in thecluster. Valid values are`Master`,`Aggregator`(for child aggregators),`Leaf`, and`Unknown`.                                                                                                                                                                                                     |
| `port`               | Port number that this node is listening on.                                                                                                                                                                                                                                                                            |
| `bindAddress`        | The IP address that the node is listening on. A value of`0.0.0.0`means the node is listening on all available network interfaces on the host.                                                                                                                                                                          |
| `allowIpv6`          | Whether to enable IPv6 support. If set to`false`,SingleStorecan only use an IPv4 network. If set to`true`,SingleStorecan use either an IPv4 or IPv6 network.                                                                                                                                                           |
| `processState`       | Current state of`memsqld`for this node. Valid values are`Running`,`Stopped`, and`Unknown`.                                                                                                                                                                                                                             |
| `version`            | Version ofSingleStorefor this node.                                                                                                                                                                                                                                                                                    |
| `memsqlConfig`       | Absolute path of the`memsql.cnf`configuration file forSingleStorefor this node.Defined in the`defaults_file`engine variable.Refer to[SingleStore Node Config Files](https://docs.singlestore.com/db/v9.1/reference/configuration-reference/cluster-config-files/singlestore-node-config-files.md)for more information. |
| `dataDir`            | Directory path for the data directory. This directory contains snapshots, logs, and columnstore segments.                                                                                                                                                                                                              |
| `plancacheDir`       | Directory path for the plancache directory. This directory contains compiled plans used for codegen.Default value:`./plancache`                                                                                                                                                                                        |
| `tracelogsDir`       | Directory path for the tracelogs directory. This directory contains log files, including memsql.log and the query log.Default value:`./tracelogs`                                                                                                                                                                      |
| `auditlogsDir`       | Specifies the local or network directory to write log files.For more information on this variable, see[Configure Audit Logging](https://docs.singlestore.com/db/v9.1/security/audit-logging/configuring-audit-logging.md).Default value:`/<path-to-node-directory>/auditlogs`                                          |
| `memsqld`            | Absolute path of`memsqld`for this node.                                                                                                                                                                                                                                                                                |
| `nodeID`             | A unique identifier used to distinguish each node. Not to be confused with`memsqlId`.                                                                                                                                                                                                                                  |
| `pid`                | Process ID for the`memsqld_safe`process corresponding to this node.                                                                                                                                                                                                                                                    |
| `dpid`               | Process ID for the`memsqld`process corresponding to this node.                                                                                                                                                                                                                                                         |
| `autoRestartEnabled` | Indicates whether a node is configured to restart automatically if it should stop unexpectedly. If this value is set to`true`, the node will attempt to restart after a failure.                                                                                                                                       |
| `isConnectable`      | Specifies if`memsqlctl`can connect to the node.                                                                                                                                                                                                                                                                        |
| `recoveryState`      | An enum describing whether or not the node’s databases are recovering. Values are`Online`,`Recovering`, and`RecoveryFailed`.                                                                                                                                                                                           |
| `availabilityGroup`  | Availability group that the leaf node belongs to for high availability.                                                                                                                                                                                                                                                |
| `aggregatorRole`     | The role assigned to an aggregator node within the cluster.                                                                                                                                                                                                                                                            |

## Usage

```
Usage:
  memsqlctl describe-node [flags]

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

Global Flags:
  -c, --config FILE_PATH                     Path to the memsqctl config file
      --default-install-dir DIRECTORY_PATH   Path to the default install directory
      --insecure-ssl                         Fall back to insecure SSL connections to local nodes if memsqlctl is unable to otherwise establish a connection (ADVANCED)
  -j, --json                                 Print output in JSON format
      --node-metadata-file FILE_PATH         Path to the node metadata file
      --parallelism POSITIVE_INTEGER         Maximum amount of operations to be run in parallel
      --ssl-ca FILE_PATH                     The path to the CA certificate file (in PEM format) to authenticate the database certificate
      --timeout duration                     Maximum time for operation to complete (e.g., 30s, 10m, 1.5h)
      --verbose-json                         Print output in JSON format, include some warnings and user messages
  -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 pass in a value for `--memsql-id` and enable non-interactive mode through the flag `--yes`.
* The `memsqlctl describe-node` command is equivalent to the [sdb-admin describe-node](https://docs.singlestore.com/db/v9.1/reference/singlestore-tools-reference/sdb-admin-commands/describe-node.md) command.

## Output

The following is the standard output for the `describe-node` command.

```shell
sudo memsqlctl describe-node

```

```output

+-------+------------+------------+------+---------------+---------+
| Index | MemSQL ID  |    Role    | Port | Process State | Version |
+-------+------------+------------+------+---------------+---------+
| 1     | 994274A024 | Leaf       | 3307 | Running       | 6.5.10  |
| 2     | E289BBDF58 | Aggregator | 3306 | Running       | 6.5.10  |
+-------+------------+------------+------+---------------+---------+
Select an option: 2
+-------------------+-----------------------------------------------------------------+
| memsqlId          | E289BBDF587D96F323CFDBC190DA5A602C170E0A                        |
| role              | Aggregator                                                      |
| port              | 3306                                                            |
| bindAddress       | 0.0.0.0                                                         |
| processState      | Running                                                         |
| version           | 6.5.10                                                          |
| memsqlConfig      | /var/lib/memsql/e56f2e26-cb6d-4b3c-a792-01a26bd6c3a0/memsql.cnf |
| dataDir           | /var/lib/memsql/e56f2e26-cb6d-4b3c-a792-01a26bd6c3a0/data       |
| plancacheDir      | /var/lib/memsql/e56f2e26-cb6d-4b3c-a792-01a26bd6c3a0/plancache  |
| tracelogsDir      | /var/lib/memsql/e56f2e26-cb6d-4b3c-a792-01a26bd6c3a0/tracelogs  |
| auditlogsDir      | /var/lib/memsql/e56f2e26-cb6d-4b3c-a792-01a26bd6c3a0/auditlogs  |
| memsqld           | /opt/singlestoredb-server-7.3.10_6c220bccfc/memsqld             |
| pid               | 5745                                                            |
| dpid              | 5751                                                            |
| isConnectable     | true                                                            |
| recoveryState     | Online                                                          |
| availabilityGroup | --                                                              |
+-------------------+-----------------------------------------------------------------+

```

This example retrieves a single property value as JSON.

```shell
sudo memsqlctl describe-node --property "processState" --json

```

```output

{
  "processState": "Running"
}

```

***

Modified at: August 22, 2024

Source: [/db/v9.1/reference/singlestore-tools-reference/memsqlctl-commands/describe-node/](https://docs.singlestore.com/db/v9.1/reference/singlestore-tools-reference/memsqlctl-commands/describe-node/)

(An index of the documentation is available at /llms.txt)
