Redundancy Manual Recover by script

Hi,

I have a need for advanced redundancy. I need to set Recovery Mode to Manual so I can run a script to disable a unique OPC DA driver. This driver needs to be manually disabled or by script prior to the Backup Gateway switching primary role back to the Master.

What is the scripting commands to invoke the same manual switchover done in the gateway?

Thanks

Hi Daniel,

To disable an OPC Server connection through scripting, you can use system.opc.setServerEnabled().

Here is a manual page on this function:

https://docs.inductiveautomation.com/display/DOC81/system.opc.setServerEnabled