Skip to content

ss_container

arunskurian edited this page Jan 28, 2021 · 1 revision

SYNOPSIS

ss_container.py ( --create_container <name> --template_name <name> --database <name> | 
                  --reset_container <name> |
                  --list | 
                  --delete_container <name> [--keep_vdbs] |
                  --refresh_container <name> | 
                  --add_owner <name> --container_name <name> |
                  --remove_owner <name> --container_name <name> |
                  --restore_container <name> --bookmark_name <name>
                )
                 [--engine <enginename>] 
                 [--poll <n>] [--parallel <n>][--debug]
                 [--config <path_to_file>] [--logdir <path_to_file>]
  
  ss_container.py -h | --help | -v | --version

DESCRIPTION

List, create, reset delete, refresh, restore a container. This script also allows to add and remove container owners.

ARGUMENTS

ACTIONS

  • --list
    List all containers in an engine

  • --create_container
    Create a container in an engine

  • **----delete_container **
    Delete a container from an engine

  • **----reset_container **
    Reset the last operation for a container on an engine

  • **----refresh_container **
    Refresh a container on an engine

  • **----restore_container **
    Restore a container to a bookmark

  • **----add_owner **
    Add an owner to a container

  • **----remove_owner **
    Remove an owner from a container

OTHER ARGUMENTS

  • **----template_name **Required for create_container
    Name of the template to use while creating a container.

  • **----database **Required for create_container
    List of the databases to use while creating a container. Db names should be separated by colon ":"

COMMON ARGUMENTS

  • -engineOptional
    Specify name of the Delphix Engine from dxtools.conf file. To run on all engines, provide 'all' as engine name.

  • --config Optional
    Location of the configuration file.
    A config file search order is as follows:
    config parameter
    dxtools.conf inside /conf/ folder

  • --logdir Optional
    Location of the log file.
    A log file search order is as follows:
    Logdir parameter which includes the filename
    File with the same name as the script under /conf/ folder

  • --single_thread Optional
    Defines whether the operations on an engine is run synchronously or asynchronously.
    Default is False

  • --poll Optional
    Defines the # of seconds to sleep before polling for the status of a job.

EXAMPLES

List all containers on engine "mymask"

python3 ss_container.py --list --engine mymask

Create template named "jstemplate1" using database "sourceoracle"

python3 ss_template.py --create_template jstemplate1 --database sourceoracle

Create container named "suiteCRM-Dev-DataPod" using databases "vdboracle" snd "vdbmssql"

python3 ss_container.py --create_container suiteCRM-Dev-DataPod --database vdboracle:vdbmssql

Refresh a container

 python3 ss_container.py --refresh_container sscontainer1

Restore a container to a bookmark

 python3 ss_container.py --restore_container sscontainer1 --bookmark_name ssbookmark1

Deletes a container

 python3 ss_container.py--delete_container suiteCRM-Dev-DataPod

Add an owner named "dev" to container named "suiteCRM-Dev-DataPod" on engine "mymask"

 python3 ss_container.py --add_owner dev --container_name suiteCRM-Dev-DataPod --engine mymask
Clone this wiki locally