<?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 Re: Simple Script to monitor any signature updates through email in Hyperscale Firewall (Maestro)</title>
    <link>https://community.checkpoint.com/t5/Hyperscale-Firewall-Maestro/Simple-Script-to-monitor-any-signature-updates-through-email/m-p/94001#M1642</link>
    <description>&lt;P&gt;Nice!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 09:51:26 GMT</pubDate>
    <dc:creator>_Val_</dc:creator>
    <dc:date>2020-08-13T09:51:26Z</dc:date>
    <item>
      <title>Simple Script to monitor any signature updates through email</title>
      <link>https://community.checkpoint.com/t5/Hyperscale-Firewall-Maestro/Simple-Script-to-monitor-any-signature-updates-through-email/m-p/93993#M1641</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Everytime it was a painful job to login to the scalable platform and run commands to check the signature updates, here is a simple shell script using native sendmail to record and send a email update according to a schedule in cronjob. The script can be scaled up to monitor many parameters&lt;/P&gt;&lt;P&gt;OUTPUT&lt;/P&gt;&lt;P&gt;=============================================================================================================&lt;BR /&gt;BASE MACHINE&lt;BR /&gt;=============================================================================================================&lt;BR /&gt;-*- 14 blades: 1_01 1_02 1_03 1_04 1_05 1_06 1_07 2_01 2_02 2_03 2_04 2_05 2_06 2_07 -*-&lt;BR /&gt;AB Update status: up-to-date&lt;BR /&gt;AB Update description: Gateway is up to date. Database version: 2008111411.&lt;BR /&gt;AB Next update description: The next update will be run as scheduled.&lt;BR /&gt;AB DB version: 2008111411&lt;BR /&gt;AV Update status: new&lt;BR /&gt;AV Update description: Gateway was updated with database version: 2008130441.&lt;BR /&gt;AV Next update description: The next update will be run as scheduled.&lt;BR /&gt;AV DB version: 2008130441&lt;/P&gt;&lt;P&gt;=============================================================================================================&lt;BR /&gt;VS 2&lt;BR /&gt;=============================================================================================================&lt;BR /&gt;-*- 14 blades: 1_01 1_02 1_03 1_04 1_05 1_06 1_07 2_01 2_02 2_03 2_04 2_05 2_06 2_07 -*-&lt;BR /&gt;AB Update status: up-to-date&lt;BR /&gt;AB Update description: Gateway is up to date. Database version: 2008111411.&lt;BR /&gt;AB Next update description: The next update will be run as scheduled.&lt;BR /&gt;AB DB version: 2008111411&lt;BR /&gt;AV Update status: up-to-date&lt;BR /&gt;AV Update description: Gateway is up to date. Database version: 2008130037.&lt;BR /&gt;AV Next update description: The next update will be run as scheduled.&lt;BR /&gt;AV DB version: 2008130037&lt;/P&gt;&lt;P&gt;=============================================================================================================&lt;BR /&gt;VS 3&lt;BR /&gt;=============================================================================================================&lt;BR /&gt;-*- 14 blades: 1_01 1_02 1_03 1_04 1_05 1_06 1_07 2_01 2_02 2_03 2_04 2_05 2_06 2_07 -*-&lt;BR /&gt;AB Update status: up-to-date&lt;BR /&gt;AB Update description: Gateway is up to date. Database version: 2008111411.&lt;BR /&gt;AB Next update description: The next update will be run as scheduled.&lt;BR /&gt;AB DB version: 2008111411&lt;BR /&gt;AV Update status: new&lt;BR /&gt;AV Update description: Gateway was updated with database version: 2008130441.&lt;BR /&gt;AV Next update description: The next update will be run as scheduled.&lt;BR /&gt;AV DB version: 2008130441&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SCRIPT&lt;/P&gt;&lt;P&gt;#!/bin/bash -f&lt;BR /&gt;source /opt/CPshrd-R76/CTX/CTX00002/tmp/.CPprofile.sh&lt;BR /&gt;source /etc/profile.d/vsenv.sh&lt;BR /&gt;rm /var/scripts/cpstat.txt #Removes the old files from gateway&lt;BR /&gt;outputlog=/var/scripts/cpstat.txt&lt;BR /&gt;echo ============================================================================================================= &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo BASE MACHINE &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo ============================================================================================================= &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;vsenv 0&lt;BR /&gt;g_allc cpstat antimalware -f update_status &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo ============================================================================================================= &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo VSENV 2 &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo ============================================================================================================= &amp;gt;&amp;gt; $outputlog&lt;/P&gt;&lt;P&gt;vsenv 2&lt;BR /&gt;g_allc cpstat antimalware -f update_status &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;g_allc cpstat urlf -f update_status &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;g_allc cpstat appi -f update_status &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo ============================================================================================================= &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo VSENV 3 &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;echo ============================================================================================================= &amp;gt;&amp;gt; $outputlog&lt;/P&gt;&lt;P&gt;vsenv 3&lt;/P&gt;&lt;P&gt;g_allc cpstat antimalware -f update_status &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;g_allc cpstat urlf -f update_status &amp;gt;&amp;gt; $outputlog&lt;BR /&gt;g_allc cpstat appi -f update_status &amp;gt;&amp;gt; $outputlog&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;vsenv 0&lt;BR /&gt;cd /opt/CPsuite-R76/fw1/bin/&lt;BR /&gt;./sendmail -s "FIREWALL &amp;lt;hostname&amp;gt; CHASSIS ANTIMALWARE UPDATE STATUS" -t 10.18.1.7 -f senderemail@domain.yyy recepientemail@domain.xxx &amp;lt; /var/scripts/cpstat.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 08:39:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Hyperscale-Firewall-Maestro/Simple-Script-to-monitor-any-signature-updates-through-email/m-p/93993#M1641</guid>
      <dc:creator>scripto</dc:creator>
      <dc:date>2020-08-13T08:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Script to monitor any signature updates through email</title>
      <link>https://community.checkpoint.com/t5/Hyperscale-Firewall-Maestro/Simple-Script-to-monitor-any-signature-updates-through-email/m-p/94001#M1642</link>
      <description>&lt;P&gt;Nice!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 09:51:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Hyperscale-Firewall-Maestro/Simple-Script-to-monitor-any-signature-updates-through-email/m-p/94001#M1642</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2020-08-13T09:51:26Z</dc:date>
    </item>
  </channel>
</rss>

