Start the Administration CLI

You have now bootstrapped all the Storage Nodes and started the Storage Node agents. You must issue administrative commands next. The runadmin utility provides a command line interface (CLI) where you can enter commands to administer your data store. The first Storage Node where you invoke the runadmin utility will contain the master copy of the administration database.

Note: You cannot change the Storage Node you use to initially configure the data store. Therefore, carefully select the Storage Node.

Before you start the runadmin utility, make sure that the SNA has been started in the storage node.

In the example below, you use $KVHOST to represent the host name of the Storage Node to which runadmin connects, and you use 5000 as the registry port.

Note: If your data store is non-secure, the -security option in the below command can be omitted.

> java -Xmx64m -Xms64m -jar $KVHOME/lib/kvstore.jar runadmin -host $KVHOST -port 5000 -security $KVROOT/security/client.security

Once running, the kv-> prompt is displayed.

kv->

If you want more than one Storage Node to support CLI commands, use the runadmin utility with -helper-hosts flag and list two or more Storage Nodes and ports as shown below. The use of multiple Storage Nodes helps in fault tolerance and load balancing.

> java -Xmx64m -Xms64m -jar $KVHOME/lib/kvstore.jar runadmin -helper-hosts <host2>:5000, <host3>:5000, <host4>:5000 -security $KVROOT/security/client.security

This command establishes a robust, secure connection point that is resilient to single-host failures by listing multiple potential connection points.

Configuring Remote Access in a Secure Store

In case of secure store, to use the runadmin utility from a remote machine, you must configure remote access using the following steps: