Skip to content

dx_get_op_template

Marcin Przepiorowski edited this page Apr 4, 2018 · 1 revision

SYNOPSIS

dx_get_op_template    [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
                      [ -name hook_name ] 
                      [ -outdir dir]
                      [ -exportHook ]
                      [ -exportHookScript filename]
                      [ -format csv|json ]  
                      [ -help|? ] 
                      [ -debug ] 

DESCRIPTION

List or export operation templates from engine. If no operation template name is specified all templates will be processed.

ARGUMENTS

Delphix Engine selection - if not specified a default host(s) from dxtools.conf will be used.

  • -engine|d Specify Delphix Engine name from dxtools.conf file
  • -all Display databases on all Delphix appliance
  • -configfile file Location of the configuration file. A config file search order is as follow:
  • configfile parameter
  • DXTOOLKIT_CONF variable
  • dxtools.conf from dxtoolkit location

Filters

  • -name Operation Template name
  • -group Group Name
  • -dbname Database Name
  • -host Host Name
  • -type Type (dsource|vdb)

OPTIONS

  • -exportHook
    Export operation template into JSON file in outdir directory
  • -exportHookScript filename
    Export operation template script into a specified filename
  • -outdir
    Location of exported operation templates files
  • -format
    Display output in csv or json format If not specified pretty formatting is used.
  • -help
    Print this screen
  • -debug Turn on debugging

EXAMPLES

Export all operation templates from Delphix Engine

dx_get_op_template -d Landshark5 -exportHook -outdir /tmp/a/
Exporting operation template los into /tmp/a/after_refresh.opertemp
Exporting operation template test1 into /tmp/a/test1.opertemp

Export operation template script

dx_get_op_template -d Landshark5 -name test1 -exportHookScript /tmp/test1.sh
Exporting template into file /tmp/test1.sh

Delphix

Clone this wiki locally