Skip to content

dx_operations

arunskurian edited this page Jan 28, 2021 · 1 revision

SYNOPSIS

  dx_operations_vdb.py 	  (--vdb <name> [--stop | --start | --enable |  --disable] | --list | --all_dbs <name>)
						  [--engine <identifier> ]
						  [--force --parallel <n> --poll <n> --single_thread <bool>]
						  [--config <path_to_file>] [--logdir <path_to_file>]
  
  dx_operations_vdb.py -h | --help | -v | --version

DESCRIPTION

List all VDBs or Start, stop, enable, disable a VDB

ARGUMENTS

ACTIONS

  • --stopRequired
    Stop a VDB

  • --enableRequired
    Enables a vDB

  • --disableRequired
    Disables a VDB

  • --listRequired
    List all VDBs on an engine

OTHER ARGUMENTS

  • --vdbRequired
    Name of the VDB to refresh

  • --all_dbs
    Perform the operation on all vdbs in the engine

COMMON ARGUMENTS

  • -engineOptional
    Specify name of the Delphix Engine from dxtools.conf file. To run on all engines, provide 'all' as engine name.

  • --config Optional
    Location of the configuration file.
    A config file search order is as follows:
    config parameter
    dxtools.conf inside /conf/ folder

  • --logdir Optional
    Location of the log file.
    A log file search order is as follows:
    Logdir parameter which includes the filename
    File with the same name as the script under /conf/ folder

  • --single_thread Optional
    Defines whether the operations on an engine is run synchronously or asynchronously.
    Default is False

  • --poll Optional
    Defines the # of seconds to sleep before polling for the status of a job.

EXAMPLES

Stop vdb named "testvdb" on engine "mymask"

python3 dx_operations_vdb.py --engine mymask --vdb testvdb --stop

Start "testvdb" on default engine

python3 dx_operations_vdb.py --vdb testvdb --start

Disable all vdbs on default engine

python3 dx_operations_vdb.py --all_dbs disable 

List all vdbs on all engines

python3 dx_operations_vdb.py --list --engine all
Clone this wiki locally