<?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 Python script for interface status/flaps on Gaia in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268804#M1404</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Wondering if someone would be willing to try this script and post the results. I tried it in the lab, but results are pretty basic, since its just the lab. dos2unix and chmod needed to run it.&lt;/P&gt;
&lt;P&gt;Lab:&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py --history 168&lt;/P&gt;
&lt;P&gt;Detected interface flaps in the last 168 hour(s):&lt;/P&gt;
&lt;P&gt;Interface Down Up Last Event (local time) Last State Bond(s)&lt;BR /&gt;--------------------------------------------------------------------------------------&lt;BR /&gt;No link up/down events found in the selected time window.&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py --history 10000&lt;/P&gt;
&lt;P&gt;Detected interface flaps in the last 10000 hour(s):&lt;/P&gt;
&lt;P&gt;Interface Down Up Last Event (local time) Last State Bond(s)&lt;BR /&gt;--------------------------------------------------------------------------------------&lt;BR /&gt;No link up/down events found in the selected time window.&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py -h&lt;BR /&gt;usage: cp_flap_watch.py [-h] (--history HOURS | --live)&lt;/P&gt;
&lt;P&gt;Detect and display interface flaps (link up/down) on a Check Point (Gaia) firewall.&lt;/P&gt;
&lt;P&gt;options:&lt;BR /&gt;-h, --help show this help message and exit&lt;BR /&gt;--history HOURS Scan /var/log/messages* and summarize events in the last N HOURS&lt;BR /&gt;--live Follow /var/log/messages and show events as they occur&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*************************&lt;/P&gt;
&lt;P&gt;This may take some time...&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py --live&lt;BR /&gt;Following /var/log/messages for link up/down events (Ctrl+C to stop)...&lt;BR /&gt;^CTraceback (most recent call last):&lt;BR /&gt;File "/var/log/scripts/./cp_flap_watch.py", line 193, in &amp;lt;module&amp;gt;&lt;BR /&gt;main()&lt;BR /&gt;File "/var/log/scripts/./cp_flap_watch.py", line 190, in main&lt;BR /&gt;follow()&lt;BR /&gt;File "/var/log/scripts/./cp_flap_watch.py", line 168, in follow&lt;BR /&gt;time.sleep(0.5)&lt;BR /&gt;KeyboardInterrupt&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2026 18:07:49 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2026-01-27T18:07:49Z</dc:date>
    <item>
      <title>Python script for interface status/flaps on Gaia</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268804#M1404</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Wondering if someone would be willing to try this script and post the results. I tried it in the lab, but results are pretty basic, since its just the lab. dos2unix and chmod needed to run it.&lt;/P&gt;
&lt;P&gt;Lab:&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py --history 168&lt;/P&gt;
&lt;P&gt;Detected interface flaps in the last 168 hour(s):&lt;/P&gt;
&lt;P&gt;Interface Down Up Last Event (local time) Last State Bond(s)&lt;BR /&gt;--------------------------------------------------------------------------------------&lt;BR /&gt;No link up/down events found in the selected time window.&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py --history 10000&lt;/P&gt;
&lt;P&gt;Detected interface flaps in the last 10000 hour(s):&lt;/P&gt;
&lt;P&gt;Interface Down Up Last Event (local time) Last State Bond(s)&lt;BR /&gt;--------------------------------------------------------------------------------------&lt;BR /&gt;No link up/down events found in the selected time window.&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py -h&lt;BR /&gt;usage: cp_flap_watch.py [-h] (--history HOURS | --live)&lt;/P&gt;
&lt;P&gt;Detect and display interface flaps (link up/down) on a Check Point (Gaia) firewall.&lt;/P&gt;
&lt;P&gt;options:&lt;BR /&gt;-h, --help show this help message and exit&lt;BR /&gt;--history HOURS Scan /var/log/messages* and summarize events in the last N HOURS&lt;BR /&gt;--live Follow /var/log/messages and show events as they occur&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*************************&lt;/P&gt;
&lt;P&gt;This may take some time...&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# ./cp_flap_watch.py --live&lt;BR /&gt;Following /var/log/messages for link up/down events (Ctrl+C to stop)...&lt;BR /&gt;^CTraceback (most recent call last):&lt;BR /&gt;File "/var/log/scripts/./cp_flap_watch.py", line 193, in &amp;lt;module&amp;gt;&lt;BR /&gt;main()&lt;BR /&gt;File "/var/log/scripts/./cp_flap_watch.py", line 190, in main&lt;BR /&gt;follow()&lt;BR /&gt;File "/var/log/scripts/./cp_flap_watch.py", line 168, in follow&lt;BR /&gt;time.sleep(0.5)&lt;BR /&gt;KeyboardInterrupt&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:07:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268804#M1404</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-27T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for interface status/flaps on Gaia</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268806#M1405</link>
      <description>&lt;P&gt;Did not sadly let me attach the .py script, so I uploaded it below.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://limewire.com/d/WLDWV#02VfWGjlPj" target="_blank"&gt;https://limewire.com/d/WLDWV#02VfWGjlPj&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 16:52:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268806#M1405</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-27T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for interface status/flaps on Gaia</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268813#M1406</link>
      <description>&lt;P&gt;I attached the content of the script as well.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 17:45:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268813#M1406</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-27T17:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for interface status/flaps on Gaia</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268815#M1407</link>
      <description>&lt;P&gt;Just zip the file b4 attaching, pal.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:02:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268815#M1407</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-01-27T18:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python script for interface status/flaps on Gaia</title>
      <link>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268817#M1408</link>
      <description>&lt;P&gt;DOH...correct...done : - )&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 18:07:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Python-script-for-interface-status-flaps-on-Gaia/m-p/268817#M1408</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-27T18:07:18Z</dc:date>
    </item>
  </channel>
</rss>

