How to configure Redundant Event servers
How to configure Redundant Event servers
You could use IODeviceInfo() to check the status of a redundant I/O device and only run the event if that returns that the device is active on the desired server. Another option is to create a Report and run your Cicode commands from there since reports only run on the active server.
thank you, Eric, to do this I have to do it on both servers? if the state of the IODevice is not standby on primary then I activate the event and vice versa? is there a function to activate an event for Cicode?
On the redundant Alarm and Report servers you can use:
IF StrToInt(ServerInfo("ALARM",0)) = 1 THEN
or
IF StrToInt(ServerInfo("REPORT",0)) = 1 THEN
The Cicode below will then be executed on the active server only. This can't be used for Trend and/or I/O Servers.
There is also the option to use redundant Report Servers in your project as the event engine. You simply create a basic report and define the Cicode to run. The Report Server redundancy will then handle who is executing the "event". Be sure to untick the option "Run reports concurrently with Primary Reports Server" so only the Primary will run the report / event. This approach will only work for Events that don't need to be run under a specific Server process (like alarm, IO or trend).