<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to invoke a script upon failover in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/How-to-invoke-a-script-upon-failover/m-p/21608#M4011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mates!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a traditional distributed cluster environment I need to perform a specific action when a node goes from standby to active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched documentation, secureknownledge and community resources but found no out-of-the-box way to accomplish this. The alerts scripts possibility (&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;sk25941&lt;/SPAN&gt;) are ran on the management side, so it doesn't suit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given this I developed a small script that periodically looks into messages file searching for the most recent string "&lt;SPAN style="font-size: 11.0pt;"&gt;Local machine state changed to ACTIVE" and if that happens in the last 5 second then it performs the desired action.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;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?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Pedro Boavida&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2018 08:57:51 GMT</pubDate>
    <dc:creator>Pedro_Boavida</dc:creator>
    <dc:date>2018-08-24T08:57:51Z</dc:date>
    <item>
      <title>How to invoke a script upon failover</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-to-invoke-a-script-upon-failover/m-p/21608#M4011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mates!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a traditional distributed cluster environment I need to perform a specific action when a node goes from standby to active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched documentation, secureknownledge and community resources but found no out-of-the-box way to accomplish this. The alerts scripts possibility (&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;sk25941&lt;/SPAN&gt;) are ran on the management side, so it doesn't suit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given this I developed a small script that periodically looks into messages file searching for the most recent string "&lt;SPAN style="font-size: 11.0pt;"&gt;Local machine state changed to ACTIVE" and if that happens in the last 5 second then it performs the desired action.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;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?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Pedro Boavida&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 08:57:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-to-invoke-a-script-upon-failover/m-p/21608#M4011</guid>
      <dc:creator>Pedro_Boavida</dc:creator>
      <dc:date>2018-08-24T08:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to invoke a script upon failover</title>
      <link>https://community.checkpoint.com/t5/General-Topics/How-to-invoke-a-script-upon-failover/m-p/21609#M4012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Find the answer in&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk65923&amp;amp;partition=Advanced&amp;amp;product=ClusterXL,"&gt;sk65923 How to configure the cluster to send SNMP Trap upon failover&lt;/A&gt; !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 09:56:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/How-to-invoke-a-script-upon-failover/m-p/21609#M4012</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2018-08-24T09:56:41Z</dc:date>
    </item>
  </channel>
</rss>

