delphix script enabling or disabling dsource

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
I need to create a script (e.g. bash script) to ename or disable a dsoruce.
I need the Command Line Interface command to do this.
Photo of Sergio Gianandrea

Sergio Gianandrea

  • 136 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Scott MacDonald

Scott MacDonald, Support Engineer

  • 2,392 Points 2k badge 2x thumb
Hi Sergio,

The commands are (for a VDB called "VDB01"):
/source
select VDB01
disable
commit

Example CLI session showing what that looks like:

delphix> /source
delphix source> select VDB01 
delphix source 'VDB01'> disable
delphix source 'VDB01' disable *> commit
    Dispatched job JOB-79
    SOURCE_DISABLE job started for "VDB01".
    Starting disable of virtual database.
    Unexporting storage.
    Virtual database successfully disabled.
    SOURCE_DISABLE job for "VDB01" completed successfully.
delphix source 'VDB01'> 

You can also concatenate the commands like this:

/source/select VDB01
disable; commit

Hope that helps,

Scott.
Photo of Sergio Gianandrea

Sergio Gianandrea

  • 136 Points 100 badge 2x thumb
perfect. Thank you
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Sergio, if you are looking to do more enterprise-style automation, please check out my blog on how to do these types of action with something like Python. 
https://www.delphix.com/blog?authors=abowen