CLI cookbook: disabling LogSync for a dSource
This topic provides a simple example of how the nested state is represented and manipulated. The LogSync state is maintained in the sourcingPolicy
property of dSources, itself an object with several different fields.
Procedure
-
Select the dSource to be changed and run the
update
command.Copydelphix> database "example"delphix "example"> update
-
Get the current property using dot-delimited notation.
Copydelphix "example" update *> get sourcingPolicy.logsyncEnabled
true -
The property could also be set using dot-delimited notation, but for illustrative purposes, we can also use the
edit
command and set it directly.Copydelphix "example" update *> edit sourcingPolicy
delphix "example" update sourcingPolicy *> set logsyncEnabled=false -
Commit the state, either from within the editing context or after running
back
to return to the parent context.Copydelphix "example" update sourcingPolicy *> commit
delphix "example">