Skip to main content

Vertica Command Line Interface

Project description

(c) Copyright 2021 Micro Focus or one of its affiliates

Vertica Accelerator Command Line Client

The Vertica Accelerator Command Line Interface (VCLI) is an alternate client for managing Vertica Accelerator databases.

Prerequisites

  • You must be customer or trial user of Vertica Accelerator with a valid account to use VCLI.
  • You can contact the project maintainers or Vertica Accelerator support to obtain a "accelerator_client_id" which is needed in order to use the package

Installation

Installing the latest release

$ pip3 install vertica-accelerator-cli

or

$ python3 -m pip install dist/vertica-accelerator-cli-0.1.0.tar.gz --upgrade

Installing from source

$ pip3 install git+https://github.com/vertica/vertica-accelerator-cli.git@master

Autocomplete

To enable autocomplete for VCLI, install and configure argcomplete:

$ sudo python3 -m pip install argcomplete
$ sudo activate-global-python-argcomplete

Package release process

  1. Create a virtual environment:
$ python3 -m venv env
$ source venv/bin/activate
$ export PYTHONPATH=.
$ mkdir ./python-packages/
  1. Create the package:
$ python3 -m pip install --upgrade build
$ python3 -m build

Post-install Configuration

You can create profiles to manage multiple identities.

  1. Run the interactive configuration to create a new profile called accelerator-profile:
$ va config --profile accelerator-profile
  1. You must log in to a profile with va login --profile to execute VCLI commands. Logins expire in one hour. For help, run va login -h:
$ va login --profile accelerator-profile
Login success
  1. Create a file ~/.vcli/credentials with the following format:
[default]
username = example@example.com
password = example_password
client_id = example_client_id
auth_endpont = https://vertica.okta.com
access_token_file = sample_access_token

[accelerator-profile]
username = accelerator-profile@domain.com
password = accelerator-profile_password
client_id = accelerator_client_id
auth_endpont = https://vertica.okta.com
access_token_file = accelerator-profile_access_token
  1. Create a file ~/.vcli/config with the following format:
[default]
service_endpoint = https://accelerator.vertica.com
max_attempts = 3

[vaas-test]
service_endpoint = https://accelerator.vertica.com
max_attempts = 3
verify_ssl=false

Context-sensitive help

For help, run va --help or va -h:

$ va --help
usage: va [-h] {config,login,logout,database,database-config,subcluster,backup,session,task,cron,report,dns}

Vertica Command Line Interface (VCLI) is a tool to manage Vertica Accelerator databases.

positional arguments:
  {config,login,logout,database,database-config,subcluster,backup,session,task,cron,report,dns}
    config              Configure VCLI to access Vertica Accelerator.
    login               Log in to Vertica Accelerator.
    logout              Log out from Vertica Accelerator.
    database            Manage the Database.
    database-config     Manage the Database Configuration.
    subcluster          Manage subclusters.
    backup              Backup and restore the database.
    session             Manage sessions.
    task                Manage tasks.
    cron                Manage the scheduler.
    report              Show and generate reports.
    dns                 Manage DNS.

optional arguments:
  -h, --help            show this help message and exit

You can also run --help or -h after any positional argument for details on that particular argument.

  • To view va database options:

    $ va database -h
    usage: va database [-h] {create,list,get,start,stop,hibernate,revive,drop,increase,decrease,rescale,upgrade,update-network-config}
    
    positional arguments:
      {create,list,get,start,stop,hibernate,revive,drop,increase,decrease,rescale,upgrade,update-network-config}
        create                 Create a new database.
        list                   View a list of the databases and their properties.
        get                    View details of a particular database and its subclusters.
        start                  Start the database.
        stop                   Stop the database.
        hibernate              Hibernate the database.
        revive                 Revive the database.
        drop                   Drop an existing database.
        increase               Increase the number of nodes for the database.
        decrease               Decrease the number of nodes for the database.
        rescale                Change the instance type of the nodes.
        upgrade                Upgrade a database.
        update-network-config  Update the external access CIDR block.
    
    optional arguments:
      -h, --help            show this help message and exit
    
  • To view va database create options:

    $ va database create -h
    usage: va database create [-h] --name <value> --password <value> --nodes <value>
                                   --region <value> --availability_zone <value> 
                                   --instance_type <value> [--external_access_cidr_block <value>]
                                   [--vertica_version <value>] [--profile <value>]
    
    optional arguments:
      -h, --help            show this help message and exit
      --name <value>        The name of the database. The database name must consist of
                            1 to 18 alpha-numeric characters and start with a letter.
      --password <value>    The password for the database. The password must consist of
                            8 to 30 upper-case, lower-case, numeric, and special characters.
      --nodes <value>       The number of primary cluster nodes for the database. Valid values: [3, 6, 12]
      --region <value>      The region of the database. For example: 'us-east-1'
      --availability_zone <value>
                            The availability zone of the database. For example: 'us-east-1a'
      --instance_type <value>
                            The instance type of the database. 
                            Valid values: ['i3.2xlarge', 'i3.4xlarge', 'i3.8xlarge', 'i3.16xlarge']
      --external_access_cidr_block <value>
                            The IPv4 external access CIDR block(s) of the database, which acts as a whitelist
                            for a range of IP addresses that can access the database as a client. For example,
                            the CIDR block 192.0.2.0/24 allows clients to connect from 192.0.2.0 through 192.0.2.255.
                            Separate multiple CIDR blocks with a comma: 192.0.2.0/24,192.0.2.0/32
      --vertica_version <value>
                            The AMI version of the Vertica database. Valid values: ['10.1.0-1', '10.1.0-2', '11.0.0-1']
      --profile <value>     Use a specific profile from the credentials file (default path: "~/.vcli/credentials").
                            If you don't specify a profile, VCLI defaults to the 'default' profile when
                            communicating with Vertica Accelerator services.
    

Maintainers

  • Hao Yang
  • Xiaojing He
  • Kirtan Chavda
  • Sumeet Keswani

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vertica-accelerator-cli-0.0.3.tar.gz (83.4 kB view details)

Uploaded Source

Built Distribution

vertica_accelerator_cli-0.0.3-py3-none-any.whl (278.7 kB view details)

Uploaded Python 3

File details

Details for the file vertica-accelerator-cli-0.0.3.tar.gz.

File metadata

  • Download URL: vertica-accelerator-cli-0.0.3.tar.gz
  • Upload date:
  • Size: 83.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for vertica-accelerator-cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7ab7578ec330189a58c762c384f1fe9948c72edc8aca5f0a6b17411223f3eacc
MD5 9623d07816848903b8783c2500324ce3
BLAKE2b-256 23fe5c1f55d12d4b65776b8abc64d1bfddf9b4b1152a7e3236968d01aa89600e

See more details on using hashes here.

File details

Details for the file vertica_accelerator_cli-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: vertica_accelerator_cli-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 278.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for vertica_accelerator_cli-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 380bbc3ca845e9e50be9ebd76dfbb897ca7314387713366789c83f1d848e0f61
MD5 125ef1b78505a7a5db3fa0128e3b121e
BLAKE2b-256 e7e86e062e498c1dc4ef68aaf9b8583613b76cd1539f36646d7fbba6a5540ecb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page