Skip to main content
Skip table of contents

Provisioning Cassandra operations via CLI

To create a VDB via CLI, you must first create a dSource. For more information on creating a dSource, refer to Link operation via CLI section.

To create a VDB and perform operations via CLI, login to the Delphix Continuous Data Engine using the admin user account.

CODE
ssh admin@dlpx-engine.delphix.com

Provision

Run the below commands to provision a VDB. The below example uses testdb dSource.

CODE
Example - 
> database provision
> set type=AppDataProvisionParameters
> set container.name=testvdb
> set container.group=Untitled 
> set source.allowAutoVDBRestartOnHostReboot=true
> set sourceConfig.repository="csd-tgt.delphix.com/delphix"
> set timeflowPointParameters.container=testdb
> set sourceConfig.name=testscfgv
> set source.parameters=	"{\
    \"vdb_name\":\"testvdb\",\
    \"mount_path\":\"/mnt/provision/dsestg\",\
    \"num_nodes\":3,\
    \"ip_addr\":\"127.0.0.1\",\
    \"jmx_port\":7199,\
    \"native_transport_port\":9042,\
    \"storage_port\":7000,\
    \"enable_auth_mode\":true,\
    \"cassandra_username\":\"testusr\",\
    \"cassandra_password\":\"testpwd\",\
    \"global_node_config\":[\
        {\
            \"file_path\":\"resources/cassandra/conf/cassandra.yaml\",\
            \"file_parameters\":[\
                    {\
                        \"parameter_name\":\"\",\
                        \"parameter_value\":\"\"\
                    }\
                ],\
            \"yaml_sensitive_params\":[\
                    {\
                        \"parameter_name\":\"\",\
                        \"parameter_value\":\"\"\
                    }\
                ]\
        }\
    ],\
    \"additional_nodes\":[\
        \"environment\":\"127.0.0.1\",\
        \"environment_user\":\"127.0.0.1\",\
        \"ip_addr\":\"127.0.0.1\",\
        \"jmx_port\":7199,\
        \"native_transport_port\":9042,\
        \"append_node_config\":true,\
        \"node_config\":[\
            {\
                \"file_path\":\"resources/cassandra/conf/cassandra.yaml\",\
                \"file_parameters\":[\
                        {\
                            \"parameter_name\":\"\",\
                            \"parameter_value\":\"\"\
                        }\
                    ],\
                \"yaml_sensitive_params\":[\
                        {\
                            \"parameter_name\":\"\",\
                            \"parameter_value\":\"\"\
                        }\
                    ]\
            }\
        ]\
    ]\
}"
> commit

Disable

Run the below commands to disable a dSource. You must select the same sourceConfig name that was given during VDB creation.

CODE
Example - 
> source
> select testscfgv
> disable
> commit

Enable

Run the below command to enable a dSource.

CODE
Example - 
> source
> select testscfgv
> enable
> commit

Stop

Run the below command to stop a dSource.

CODE
Example - 
> source
> select testscfgv
> stop
> commit

Start

Run the below command to start a dSource.

CODE
Example - 
> source
> select testscfgv
> start
> commit
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.