Showing results for 
Search instead for 
Did you mean: 
Create a Post

How to invoke a script upon failover

Hi Mates!

In a traditional distributed cluster environment I need to perform a specific action when a node goes from standby to active.

I've searched documentation, secureknownledge and community resources but found no out-of-the-box way to accomplish this. The alerts scripts possibility (sk25941) are ran on the management side, so it doesn't suit.

Given this I developed a small script that periodically looks into messages file searching for the most recent string "Local machine state changed to ACTIVE" and if that happens in the last 5 second then it performs the desired action.

It works fine and I was able to solve the problem, but not sure if this is the most clear way. Does anyone knows if there are any other means for this?

Best regards,

Pedro Boavida 

0 Kudos
1 Reply

Re: How to invoke a script upon failover

0 Kudos