Skip to content

dx_get_env

Marcin Przepiorowski edited this page Nov 8, 2016 · 6 revisions

SYNOPSIS

dx_get_env [-engine|d <delphix identifier> | -all ] 
           [-name env_name | -reference reference ] 
           [-backup] 
           [-replist ] 
           [-format csv|json ]  
           [-help|? ] 
           [-debug ]

DESCRIPTION

Get the information about host environment.

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 Environment Name
  • -reference Environment reference

OPTIONS

  • -backup Display dxtoolkit commands to recreate environments ( support for SI Oracle / MS SQL )
  • -replist Display repository list (Orcle Home / MS SQL instance / etc ) for environment
  • -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 all environments

dx_get_env -d Landshark

Appliance            Reference                      Environment Name               Type                      Status
-------------------- ------------------------------ ------------------------------ ------------------------- --------
Landshark5           ORACLE_CLUSTER-11              racattack-cl                   rac                       enabled
Landshark5           UNIX_HOST_ENVIRONMENT-1        LINUXTARGET                    unix                      enabled
Landshark5           UNIX_HOST_ENVIRONMENT-44       LINUXSOURCE                    unix                      enabled
Landshark5           WINDOWS_HOST_ENVIRONMENT-48    WINDOWSTARGET                  windows                   enabled
Landshark5           WINDOWS_HOST_ENVIRONMENT-49    WINDOWSSOURCE                  windows                   enabled

Display all environments with repositories list

dx_get_env -d Landshark -replist

Appliance            Environment Name               Repository list
-------------------- ------------------------------ ------------------------------
Landshark            racattack
                                                    /u01/app/oracle/11.2.0.4/racho
Landshark            LINUXTARGET
                                                    agilemasking
                                                    LINUXTARGET
                                                    /u01/app/oracle/product/11.2.0
Landshark            LINUXSOURCE
                                                    webapp
                                                    agilemasking
                                                    LINUXSOURCE
                                                    /u01/app/oracle/product/11.2.0
Landshark            envtest
                                                    /u01/app/oracle/11.2.0.4/db1
Landshark            WINDOWSSOURCE
                                                    MSSQLSERVER
Landshark            WINDOWSTARGET
                                                    MSSQLSERVER
                                                    MSSQL2012

Delphix

Clone this wiki locally