# Force fail-over via command shell

**URL:** <https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409>\
**Category:** Ignition\
**Created:** [March 18, 2019, 9:06am UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409 "2019-03-18T09:06:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/loek/32/6730_2.png) [@Loek](https://forum.inductiveautomation.com/u/Loek)\
**Post date:** [March 18, 2019, 9:06am UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/1 "2019-03-18T09:06:11Z")

</div>

Due to weekly issues that my server is running out of memory (java issues), i would like to restart my Ignition server.

Ignition 7.8.4 (redundant) is running on a Windows Server 2012R2 machine.

But before I can restart my server, I have to force fail-over to the backup. Now I do this via the Ignition web-page =\> “Configure” tab. I would like to know I can can start the force fail-over via the command line / command shell.

In that case I can force the fail-over via a script running on my server, wait till all users are moved to the backup server, restart the master server and after a while when Ignition is up and running all connected users will automatically move back to the master server.

Someone familiar with this?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 18, 2019, 12:19pm UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/2 "2019-03-18T12:19:52Z")

</div>

I’ve never used the command line to force failover. The web interface has always worked for me. I hope your deliberate fail-over is to both upgrade to 7.8.5 and to [activate G1GC](http://forum.inductiveautomation.com/search?q=G1GC).

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 18, 2019, 4:22pm UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/3 "2019-03-18T16:22:57Z")

</div>

Yeah, this _really_ seems like the wrong way to solve this problem. I would get in contact with support and try to get the actual problem (server memory) resolved (although as Phil pointed out, it could be as simple as updating and changing your GC algorithm).

---

<div class="post-metadata">

**Author:** ![carlo.lodirizzini](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@carlo.lodirizzini](https://forum.inductiveautomation.com/u/carlo.lodirizzini)\
**Post date:** [January 30, 2020, 10:14pm UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/4 "2020-01-30T22:14:20Z")

</div>

I have the same problem.  
I need to change the master/backup when the communication between redundant edge with redundant ignition is lost.  
O need to use the backup network.  
With version8.0.7 is possible?  
Thanks  
Carlo

---

<div class="post-metadata">

**Author:** ![nicolas.griffon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicolas.griffon/32/16603_2.png) [@nicolas.griffon](https://forum.inductiveautomation.com/u/nicolas.griffon)\
**Post date:** [December 17, 2021, 2:29pm UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/5 "2021-12-17T14:29:36Z")

</div>

> [@pturmel](#):
>
> I’ve never used the command line to force failover.

Where can I find this command line and help ?  
I've look into [documentation](http://docs.inductiveautomation.com) but can't find anything.

My purpose is to automate failover tests by script instead of a manual procedure.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 17, 2021, 2:40pm UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/6 "2021-12-17T14:40:28Z")

</div>

My comment was to suggest that it couldn’t be done that way.

---

<div class="post-metadata">

**Author:** ![nicolas.griffon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicolas.griffon/32/16603_2.png) [@nicolas.griffon](https://forum.inductiveautomation.com/u/nicolas.griffon)\
**Post date:** [December 17, 2021, 2:57pm UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/7 "2021-12-17T14:57:29Z")

</div>

I understand that but does this command exist ?

---

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [December 17, 2021, 2:58pm UTC](https://forum.inductiveautomation.com/t/force-fail-over-via-command-shell/23409/8 "2021-12-17T14:58:54Z")

</div>

Unfortunately, this capability isn’t available from the [gwcmd](https://docs.inductiveautomation.com/display/DOC81/Gateway+Command-line+Utility+-+gwcmd) utility, which is the CLI program that you can use to drive some other gateway functions externally.
