Hello Murry,
I did not your question fully.
As per my understanding to trigger the replication, you can use dxtoolkit commands and then set those commands in the crontab job to trigger that replication profile.
Example:
Create replication profile on Delphix engine via GUI
on linux server where Dxtoolkit is present.
create script rep.sh
vi rep.sh
<<path to dxtoolkit>>/dxtoolkit2/dx_ctl_replication -d <<ENGINE NAME>> -profilename <<PROFILE NAME>> -safe > <<path to dxtoolkit>>/dxtoolkit2/log/REP.log
Save the file
Chmod 755 rep.sh
execute and test is the replication job getting launched or not.
put the script into crontab job ( Below script launch 12.30 AM every day)
30 00 * * 1-7 sh <<path to dxtoolkit>>/dxtoolkit2/bin/REP.sh
------------------------------
Pankaj Asegaonkar
Masking/Virtualization Specialist
+91 9689996500
------------------------------
Original Message:
Sent: 06-27-2023 05:11:09 PM
From: Murray Penno
Subject: Identify engine from hook script
Hi - Can anyone tell me how to identify the engine that is running a hook script from within the script please? Creating a script to trigger replication and want to know which engine is running the script so I can login and get the replication spec.
cheers
Murray
------------------------------
Murray Penno
Senior Project Manager
ANZ Bank New Zealand Limited
------------------------------