Skip to content

dx_get_template

Marcin Przepiorowski edited this page Dec 9, 2016 · 4 revisions

SYNOPSIS

dx_get_template  [ -engine|d <delphix identifier> | -all ] [ -name template_name ] [  -format csv|json ]  [ -help|? ] [ -debug ] [-export -outdir dir]

DESCRIPTION

List or export database template from engine. If no 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

Filters

  • -name Template name

OPTIONS

  • -export
    Export template into JSON file in outdir directory
  • -outdir
    Location of exported 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

Display list of VDB templates

dx_get_template -d Landshark43

Appliance            Template name
-------------------- ------------------------------
Landshark43          Training Template
Landshark43          QA Template
Landshark43          Dev Template
Landshark43          new 

Export all VDB templates into /tmp/test directory

dx_get_template -d Landshark -export -outdir /tmp/test/
Exporting template into file /tmp/test//Dev Template.template
Exporting template into file /tmp/test//Training Template.template
Exporting template into file /tmp/test//new.template
Exporting template into file /tmp/test//GC Template.template
Exporting template into file /tmp/test//QA Template.template

Delphix

Clone this wiki locally