Resetting Control Manager(Script)

Find and share HowTos to various installations / configurations!
8 posts • Page 1 of 1
emreamirim
Posts:4
Joined: Thu Jun 27, 2019 1:51 pm

Resetting Control Manager(Script)

Post by emreamirim »

Hello everyone,

I need help about redundancy feature again. I have a control manager with runnning a script. Also I have 2 server for redundancy. I want to resetting this control manager when master (running server-preferred server) change.

How can I do? Can you help me?

Thank you!

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Resetting Control Manager(Script)

Post by kilianvp »

You can use sysConnect() and use the "redu" event. If redu change the callback will called

emreamirim
Posts:4
Joined: Thu Jun 27, 2019 1:51 pm

Re: Resetting Control Manager(Script)

Post by emreamirim »

kilianvp wrote: ↑ Wed Nov 17, 2021 10:59 pm You can use sysConnect() and use the "redu" event. If redu change the callback will called
Thank you kilianvp, I used this function and have seen results but it helps only understanding changing of servers. After this point I want to stop a manager/script.

Found on help as "stopManager()" but I can not run it.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: Resetting Control Manager(Script)

Post by kilianvp »

if you call exit() inside the manager it will stop. But don't forget to set the startmodus to manual.

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Resetting Control Manager(Script)

Post by gschijndel »

Why do you need to restart a control manager after a redundancy switch over?

denisisakovic
Posts:23
Joined: Fri May 08, 2020 10:32 am

Re: Resetting Control Manager(Script)

Post by denisisakovic »

I think you don't need to worry about that, when the server activity switches between ACTIVE and PASSIVE servers, the event manager ignores activities (dpset and so on) from the script that is running on the new PASSIVE server.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Resetting Control Manager(Script)

Post by leoknipp »

If the start mode is "manual" the manager will not restart automatically.
As written in the previous post a message to modify a datapoint/alert instance will be discrarded by the passive Event Manager.
An exception are all DP elements which are defined using the fwdDp/fwdDpType entries.

Best Regards
Leopold Knipp
Senior Support Specialist

emreamirim
Posts:4
Joined: Thu Jun 27, 2019 1:51 pm

Re: Resetting Control Manager(Script)

Post by emreamirim »

Thank you very much for all replies, I will try all.
gschijndel wrote: ↑ Fri Nov 19, 2021 10:05 am Why do you need to restart a control manager after a redundancy switch over?
Because I have a control manager (written by another programmer) that need to restart for work correctly. I can not change anything inside of script.

Thank you again everyone.

8 posts • Page 1 of 1