- 
                Notifications
    You must be signed in to change notification settings 
- Fork 36
dx_get_env
        Marcin Przepiorowski edited this page Jan 10, 2019 
        ·
        6 revisions
      
    dx_get_env [-engine|d <delphix identifier> | -all ]
           [-name env_name | -reference reference ]
           [-backup]
           [-replist ]
           [-format csv|json ]
           [-help|? ]
           [-debug ]
Get the information about host environment.
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
- -name Environment Name
- -reference Environment reference
- -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
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