Hi All,
Im saving a json file from automation script, then using that file to make further operation through scheduler. I have 9 agents and have scheduler configured only on 2 agents. If my json file is not synced in other agents properly the scheduler will not execute the operation.
If the scheduler doesnt do the desired operation and if i check the DM server i couldn't see json file on the server. Out of 9 agents, it got created in some other agent and file is not synced. But after few days i could see the file is present in all the agents with exaction created time.
my doubt is what is the average time of the file to get synced across all the agents?
You should be able to notify DataMiner of a file update from your script, after creating/editing it. Could you try it out with the following method? Do note that this is an internal method call that could be subject to change.
engine.SendSLNetSingleResponseMessage(new NotifyFileEventRequest
{
FilePath = PathToYourFile,
Type = FileNotificationType.Changed, // Add and Remove can also be used if applicable.
});
Hi Baranisudha,
Assuming that you are storing the file under C:\Skyline DataMiner\Documents, I believe the midnight sync should take care of synchronizing these files across the cluster.
In case you would like to perform a manual sync, see Forcing synchronization of a file with the DMS
Hope it helps.
thanks, this helps. Is it possible to find in which dataminer agent the file got originally created? Will there be any log regarding this?
Can we add a script to forcefully sync the files in all servers without any human intervention? Is it possible?