Gateway failover button

Hi all,

I am trying to create a button in ignition perspective that will failover the gateway that is associated. I cannot get the button to send a message to the gateway and am kind of lost. Any ideas for this would be great. I have already created the button, my trouble is getting the event script for the button to send a message to the gateway to force failover.

There's no documented way to do that.

Are there any other ways to accomplish this other than having shift operators going into the gateway during off hours and failing the gateway over manually? Thank you for your response!

Not that I'm aware of. Why are you failing over manually? I'd fix that first. (Perhaps with help from IA support.)

We are failing over manually due to a controllogix PLC intermittently going into idle on our device connections. We tried to manually reconnect, then disable and re enable and this did not work. We ended up having to fail the gateway over. This was missed for two days due to values showing but they were not updating. We added the alarms for stale data on the PLCs but root cause has not been identified with controllogix yet. So long story short we just wanted an easy way for them to fail the gateway over without going into the gateway web interface itself.

Scripts in Perspective are already running on the gateway, so you don't have to do anything.

In theory, if your OS lets you, you could use system.util.execute to run gwcmd operations to restart the system or shut it down:

Definitely scares me to be swinging around a sledgehammer to swat a fly, but :man_shrugging:

I will try this tomorrow. Are there other avenues you would suggest? Working through the root cause currently but this is a mission critical facility and stale values are a big problem, we failover then go to the redundant gateway.

What Ignition version and what PLC firmware versions are involved? There's been many fixes in recent years.

(There's also my alternate driver..... * cough *.)

I will get this information tomorrow and reply back! Thank you for all of the suggestions and I will keep in touch!