API/Python/Open-Source Solutions

Expand all | Collapse all

delphix script enabling or disabling dsource

Jump to Best Answer
  • 1.  delphix script enabling or disabling dsource

    Posted 07-22-2016 09:01:00 AM
    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.



  • 2.  RE: delphix script enabling or disabling dsource
    Best Answer

    Posted 07-22-2016 09:16:00 AM
    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.




  • 3.  RE: delphix script enabling or disabling dsource

    Posted 07-22-2016 09:27:00 AM
    perfect. Thank you


  • 4.  RE: delphix script enabling or disabling dsource
    Best Answer

    Posted 07-22-2016 10:20:00 AM
    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