Hi Dojo,
Can we create an automation script to perform a manual failover to the offline DMA?
We would like to linked the automation script to a shape in Visio.
Currently we are monitoring the failover status using the generic failover status driver.
Thank you.
Hi Ashwiny,
Directly from a Visio or an Automation Script, it is not possible as far as I am aware but there is an SLNet call that allows this.
Here is a snippet of how this call should be
var request = new SetDrsState(DMAID, offlineAgent.LocalIP) {
ExtraNotifyOptions = SetDrsStateNotifyType.None,
HostingDataMinerID = DMAID,
Online = true,
Options = SetDrsStateOptions.None,
Reason = reason,
};
As a disclaimer do note that this is an internal call and we do not recommend using this, as it is not officially supported and we cannot guarantee that it will still work in the future. As a rule, you should avoid using SLNet calls, as these are subject to change without notice. We recommend to instead always use the correct UI or automation options provided in DataMiner Automation, similar to what Miguel Obregon mentioned in his answer, or through our web API.