Skip to content

ss_template

arunskurian edited this page Jan 28, 2021 · 1 revision

SYNOPSIS

  ss_template.py 	(--create_template <name> --database <name> | --list_templates
  					| --delete_template <name>)
  					[--engine <identifier>]
				  	[--poll <n>] [--debug][--single_thread <bool>]
				  	[--config <path_to_file>] [--logdir <path_to_file>]
  
  ss_template.py -h | --help | -v | --version

DESCRIPTION

List, create and delete templtes

ARGUMENTS

ACTIONS

  • --list
    List all templates in an engine

  • --create_template
    Create a template in an engine

  • **----delete_template **
    Delete a template from an engine

OTHER ARGUMENTS

  • ----databaseRequired for create_template
    A string containing the list of DBs to be used for template creation. Each DB name must be separated by ":"

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

ss_template.py --list_templates ss_template.py --create_template jstemplate1 --database ss_template.py --create_template jstemplate2 --database name:name:name ss_template.py --delete_template jstemplate1

List all templates on engine "mymask"

python3 ss_template.py --list_templates --engine mymask

Create template named "jstemplate1" using database "sourceoracle"

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

Create template named "jstemplate1" using databases "sourceoracle" snd "sourcemssql"

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

Deletes a template

ss_template.py --delete_template jstemplate1
Clone this wiki locally