dx_ctl_op_template - delphix/dxtoolkit GitHub Wiki

SYNOPSIS

dx_ctl_op_template    [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
                      [ -name operation_template_name ]
                      [ -importHook ]
                      [ -updateHook ]
                      [ -importHookScript filename ]
                      [ -indir dir ]
                      [ -filename filename ]

DESCRIPTION

Import operation template into engine.

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 Operation Template name

OPTIONS

  • -importHook Import operation template from file or directory
  • -updateHook Update operation template from file or directory
  • -importHookScript filename Import script body from filename into operation template
  • -filename name Location of file with operation template
  • -indir dir Location of directory with 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

Import operation templates from directory where they were exported by dx_get_hooks

dx_ctl_op_template -d Landshark5 -importHook -indir /tmp/a
Importing operation template from file /tmp/a/after.opertemp.
Import completed Operation template test1 from file /tmp/a/test1.opertemp already exist.

Update an operation template test1 with a new script

dx_ctl_op_template -d Landshark5 -name test1 -importHookScript /tmp/test_new.sh
Updating operation template test1 command from file /tmp/test_new.sh.
Update completed