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

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
G_W_Albrecht
Legend Legend
Legend

Find the answer in sk65923 How to configure the cluster to send SNMP Trap upon failover !

CCSE / CCTE / CTPS / CCME / CCSM Elite / SMB Specialist
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events