25.5.5 ndb_mgm — The NDB Cluster Management Client (original) (raw)

25.5.5 ndb_mgm — The NDB Cluster Management Client

The ndb_mgm management client process is actually not needed to run the cluster. Its value lies in providing a set of commands for checking the cluster's status, starting backups, and performing other administrative functions. The management client accesses the management server using a C API. Advanced users can also employ this API for programming dedicated management processes to perform tasks similar to those performed by ndb_mgm.

To start the management client, it is necessary to supply the host name and port number of the management server:

$> ndb_mgm [host_name [port_num]]

For example:

$> ndb_mgm ndb_mgmd.mysql.com 1186

The default host name and port number arelocalhost and 1186, respectively.

All options that can be used with ndb_mgm are shown in the following table. Additional descriptions follow the table.

$> ndb_mgm -e "SHOW"  
$> ndb_mgm --execute="SHOW"  

This is analogous to how the--execute or-e option works with themysql command-line client. SeeSection 6.2.2.1, “Using Options on the Command Line”.
Note
If the management client command to be passed using this option contains any space characters, then the command_must_ be enclosed in quotation marks. Either single or double quotation marks may be used. If the management client command contains no space characters, the quotation marks are optional.

>$ ndb_mgm --test-tls  
Connected to Management Server at: sakila:1186  
>$  

See Section 25.6.15, “TLS Link Encryption for NDB Cluster”, for more information.

Additional information about using ndb_mgm can be found inSection 25.6.1, “Commands in the NDB Cluster Management Client”.