# Redundancy Manual Recover by script

**URL:** <https://forum.inductiveautomation.com/t/redundancy-manual-recover-by-script/65722>\
**Category:** Ignition\
**Created:** [October 26, 2022, 7:01pm UTC](https://forum.inductiveautomation.com/t/redundancy-manual-recover-by-script/65722 "2022-10-26T19:01:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel\_tam](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@daniel\_tam](https://forum.inductiveautomation.com/u/daniel_tam)\
**Post date:** [October 26, 2022, 7:01pm UTC](https://forum.inductiveautomation.com/t/redundancy-manual-recover-by-script/65722/1 "2022-10-26T19:01:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ayanna\_Brown](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ayanna_brown/32/38406_2.png) [@Ayanna\_Brown](https://forum.inductiveautomation.com/u/Ayanna_Brown)\
**Post date:** [October 31, 2022, 7:14pm UTC](https://forum.inductiveautomation.com/t/redundancy-manual-recover-by-script/65722/2 "2022-10-31T19:14:47Z")

</div>

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](https://docs.inductiveautomation.com/display/DOC81/system.opc.setServerEnabled)
