- 
                Notifications
    
You must be signed in to change notification settings  - Fork 36
 
dx_get_replication
        Marcin Przepiorowski edited this page Nov 2, 2022 
        ·
        5 revisions
      
    dx_get_replication [ -engine|d <delphix identifier> | -all ] 
                   [ -profilename profile ]
                   [ -configfile file ]
                   [ -backup path ]
                   [ -cron] 
                   [ -format csv|json ]  
                   [ -help|? ] [ -debug ]
Get the information about engine replication.
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
 
- -profilename profile Limit output to single profile
 - -list Display list of replication profiles
 - -last Display last status of replication profile
 - -backup path Path to location where backup of the exiting replication profile(s) will be created
 - -cron Display schedule using a cron expression
 - 
-format
Display output in csv or json format If not specified pretty formatting is used. - 
-help
Print this screen - -debug Turn on debugging
 - -nohead Turn off header output
 
List replication jobs, status and schedule
dx_get_replication -d de01loca
Appliance  Profile name         Replication target   Enable    Last Run             Status          Schedule                                 Run Time   Next run             Objects
---------- -------------------- -------------------- --------- -------------------- --------------- ---------------------------------------- ---------- -------------------- --------------------
de01loca   DB-de02locb-rep      de02locb-rep         ENABLED   2016-11-30 11:06:00  COMPLETED       every 15 min on every hour daily         00:01:42   2016-11-30 11:21:00  DB
de01loca   FS-de02locb-rep      de02locb-rep         ENABLED   2016-11-30 11:00:00  COMPLETED       every 15 min on every hour daily         00:00:25   2016-11-30 11:15:00  FS
Last replication status (>4.2)
dx_get_replication -d Landshark5 -last
Appliance  Profile name         Replication target   Last replication          Avg throu Transfered
---------- -------------------- -------------------- ------------------------- --------- ----------
de         DBE_Replica          de-rep                2016-10-13 08:30:01 PDT       26.76    196.99
List a replication profiles (>4.2)
dx_get_replication -d Landshark5 -list
Appliance  Profile name         Replication target   Enable
---------- -------------------- -------------------- ---------
Landshark5 DB1-Landshark5-rep   Landshark5-rep       ENABLED
Landshark5 DB2-Landshark5-rep   Landshark5-rep       ENABLED
Backup replication profiles
dx_get_replication -d DE -backup /tmp
Backup exported into /tmp/backup_replica.txt
Delphix