Hi Sushil,
First of all the "name" parameter takes only one value so you can't provied it with a list.
Did you look into other options you can use with those parameters :
-group group_name
-host host_name
-olderthan
-dsource dsource_name
-envname
If you can still not achieve your need with any, you ca, mix up shell with dxtoolkit to get something sweeting your goal.
Sample script using shell with a provided list of vdbnames to control with dxtoolkit
for VDBNAME in vdb1 vdb2 vdb3 vdb4; do
# stop a list of databases
dx_ctl_db -d Landshark5 -name $VDBNAME -action stop
done
Best,
------------------------------
Mouhssine Saidi
Technical Services
Delphix
------------------------------
Original Message:
Sent: 10-01-2021 05:49:04 AM
From: Sushil Krishn
Subject: Exclude few DBs from dx_ctl_db stop operation
Hi,
We have requirement to shutdown all the VDBs in each Engine except few VDBs.
I don't find any such option to specify exclude list in dx_ct_db command.
Please check and suggest how this can be achieved, as this is always an issue during most of the maintenance activity and we need some fix/workaround for this.
Thanks,
Sushil
------------------------------
Sushil Krishn
[Database Administrator]
Unisys
------------------------------