Hello
You can do one thing.
Is there something like hooks in the virtualisation engine available or going to be available - where we could call a shell script before /after masking job completion?
In virtualization engine > Click on VDB > HOOKS > POST SNAPSHOT > you can hook any script here or specify path of the bash shell script.
Hooks are attached to VDB
Steps :
Once your masking job completed
Take snapshot using dxtoolkit or manually
Once you take snapshot > Hook script will start executing
You can use this approach
------------------------------
PANKAJ ASEGAONKAR
Delphix masking analyst
Infosys
------------------------------
Original Message:
Sent: 02-27-2023 07:40:41 AM
From: Arkadiusz Slawek
Subject: Delphix Masking Job - are there (going to be) hooks available?
Thank you Pankaj.
While dxmc would help, it looks like it is waiting for the job to complete before returning the control.
While it's great for jobs that complete quickly, there is still a challenge for handling long running jobs (and I'm talking couple hours long) or timeouts.
I think some hook-type / notification mechanism internal to the engine would be nice...
------------------------------
Arkadiusz Slawek
DevOps Engineer
Credit Suisse AG
Original Message:
Sent: 02-27-2023 07:00:07 AM
From: PANKAJ ASEGAONKAR
Subject: Delphix Masking Job - are there (going to be) hooks available?
Can I call a stored procedure (I'm masking Oracle/MsSQL DBs) from the "post SQL script" ?
For now Pre and post script only support simple SQL statements . ( DELETE/UPDATE/DROP/TRUNCATE/REBUILD/CREATE).
Is this the dxmc utility you mentioned: GitHub - delphix/dxm-toolkit?
Yes ..
First download > Transfer to server > Untar > Add engines to dxmc and then you can perform masking related operations
------------------------------
PANKAJ ASEGAONKAR
Delphix masking analyst
Infosys
Original Message:
Sent: 02-27-2023 06:38:47 AM
From: Arkadiusz Slawek
Subject: Delphix Masking Job - are there (going to be) hooks available?
Thank you Pankaj.
Can I call a stored procedure (I'm masking Oracle/MsSQL DBs) from the "post SQL script" ?
Is this the dxmc utility you mentioned: GitHub - delphix/dxm-toolkit?
Arek
------------------------------
Arkadiusz Slawek
DevOps Engineer
Credit Suisse AG
Original Message:
Sent: 02-27-2023 06:13:50 AM
From: PANKAJ ASEGAONKAR
Subject: Delphix Masking Job - are there (going to be) hooks available?
Hello Arkadiusz,
In pre and post script you can write simple SQL statement.
like disable/enable triggers, drop/rebuild indexes write down in in notepad save as text and attached as pre and post script.
to call external API > you can download dxmc utility > Install it on any target server from where delphix engine can be reachable > Make one shell script in that write down ./dxmc job start <JOB NAME> engine name
wait
give path for the external api file, so that this file always launch after completion of masking job.
Kindly let me know if its not clear for you ..i will try to give more clarification
------------------------------
PANKAJ ASEGAONKAR
Delphix masking analyst
Infosys
Original Message:
Sent: 02-27-2023 05:53:22 AM
From: Arkadiusz Slawek
Subject: Delphix Masking Job - are there (going to be) hooks available?
Hi
I'm aware that there is the "pre SQL script" and "post SQL script" functionality available in the masking job definition dialog (GUI) , but I couldn't find any detailed docs on how these features should/could be used (limitations/types of scripts/security requirements/etc.).
Is there something like hooks in the virtualisation engine available or going to be available - where we could call a shell script before /after masking job completion?
I want to implement a notification mechanism and call an external API when masking is completed....
Any suggestions would be welcome.
Thanks!
------------------------------
Arkadiusz Slawek
DevOps Engineer
Credit Suisse AG
------------------------------