# CLI Commands for managing HADB

- configure-ha-cluster
- remove-ha-cluster
- configure-ha-persistence
- create-ha-store
- clear-ha-store

## configure-ha-cluster

The configure-ha-cluster command does the following:
- Verifies the cluster exists and that it is a stand-alone cluster
- Creates a HA database with the same name as the cluster if it doesn't exist
- Creates tables in the database
- Creates the appropriate resources in domain.xml

### CLI Syntax

configure-ha-cluster [--host localhost] [--port 4848] [--user user] [--password password] [--devicesize devicesize] [--haagentport port_number] --hosts hadb-host-list [--property (name=value)[:name=value]*] clusterName

- --host The DAS host
- --port The DAS port
- --user The DAS username
- --password The DAS password
- --devicesize The database size Default = 512, 208-8388607
- --haagentport The HA agent port Default = 1862
- --hosts The HA server nodes' hosts. There must be at least 2

## remove-ha-cluster