<?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: IPS Update check per domain R77.30 in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35538#M58723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;take a look at sk120437 - How to obtain IPS Database version via CLI on Security Management Server&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind sharing your script once it is complete? I could use it, too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Arne&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2018 07:38:58 GMT</pubDate>
    <dc:creator>Arne_Boettger</dc:creator>
    <dc:date>2018-07-12T07:38:58Z</dc:date>
    <item>
      <title>IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35534#M58719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I´m looking for a way to run a script that will check each domain on a MDS if there was a IPS update scheduled and what is the latest date of the update.&lt;/P&gt;&lt;P&gt;The frame for running the script over all domains is available, but I need to find which files to check per domain and what command to run to see this information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 20:42:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35534#M58719</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-06-28T20:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35535#M58720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure of a specific CheckPoint command that can be run to check the IPS update stats and can't help with the script, however I believe the info you're looking for is in the $FWDIR/conf directory of each domain- specifically the asm.C file. In it there are a bunch of lines that show "asm_last_update_time", the last of which lists the last time protections were updated in epoch format. The line "asm_update_version_vpn1" shows the current protection version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you'd like to look at the IPS update schedule, note the name of the IPS time object (click on Edit Schedule and note the name). Search the objects_5_0.C file for that string and its attributes will be below.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:02:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35535#M58720</guid>
      <dc:creator>Alejandro_Mont1</dc:creator>
      <dc:date>2018-06-29T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35536#M58721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I have been able to take from that file asm.C is that the value on the field&amp;nbsp;asm_update_version_vpn1 is the loaded version on that specific CMA/Domain.&lt;/P&gt;&lt;P&gt;With the aid of SK93392 I knoew how to convert this version number into a package date, this is what I can use!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will rework my script to list all domains with their package number and it's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is any interest in the script, please let me know and I will post it here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 20:53:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35536#M58721</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-06-29T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35537#M58722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there is no CLI command to check that.&lt;/P&gt;&lt;P&gt;Sounds like you can parse it from asm.C, though (which I had forgotten about &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2018 22:44:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35537#M58722</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-07-02T22:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35538#M58723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;take a look at sk120437 - How to obtain IPS Database version via CLI on Security Management Server&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind sharing your script once it is complete? I could use it, too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Arne&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 07:38:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35538#M58723</guid>
      <dc:creator>Arne_Boettger</dc:creator>
      <dc:date>2018-07-12T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35539#M58724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So far the script will collect the domain in 1 rule and the next rule will hold some text and the version number. I have no scripting skills to get this reworked to list a Domain name, package number and date.&lt;/P&gt;&lt;P&gt;What it does allow me to do is put this info in an email per MDS, from there it is simply a text find and replace and a move to excel&amp;nbsp; where some simple formulas will give you the right output, be this part manual but it works.&lt;/P&gt;&lt;P&gt;We use a separate file called FWLib which sets the variables used in the different scripts we have:&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;BR /&gt;#-----------------------------------------------------------&lt;BR /&gt;# FWlib - library holds common libraries for FW*&lt;BR /&gt;# script files&lt;BR /&gt;#-----------------------------------------------------------&lt;/P&gt;&lt;P&gt;# Set Script constants ...&lt;BR /&gt;SCRIPT=`basename $0`&lt;BR /&gt;BASEDIR=/backup&lt;/P&gt;&lt;P&gt;SCRIPTDIR=$BASEDIR/scripts&lt;BR /&gt;LOG=$SCRIPTDIR/$SCRIPT.log&lt;BR /&gt;BCK=$SCRIPTDIR/$SCRIPT.bck&lt;/P&gt;&lt;P&gt;# Set MDS constants ...&lt;BR /&gt;MDS_CPDIR=/opt/CPshrd-R77 # needed if script is run from cronjob&lt;BR /&gt;# Set FW logfiles constants ...&lt;BR /&gt;LOGDIR=/var/log/Our-log&lt;BR /&gt;LOGBCK=$BASEDIR/log.bck&lt;BR /&gt;TMPDIR=/var/log/Our-logtmp&lt;BR /&gt;EXPORT=/var/log/Our-export&lt;/P&gt;&lt;P&gt;# Set MAIL constants ...&lt;BR /&gt;readonly MAILSVR=&amp;lt;IP-Address Mailserver&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;readonly MAILFROM=`uname &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:-n`@aaa.com"&gt;-n`@aaa.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;readonly &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:MAILTO=admin@aaa.com"&gt;MAILTO=admin@aaa.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;readonly &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:MAILCHK=admin@aaa.com"&gt;MAILCHK=admin@aaa.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;readonly &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:MAILERROR=admin@aaa.com"&gt;MAILERROR=admin@aaa.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;# Include Check Point MDS commands and variables ...&lt;BR /&gt;source $MDS_CPDIR/tmp/.CPprofile.sh&lt;/P&gt;&lt;P&gt;# aplications&lt;BR /&gt;GREP=/bin/grep&lt;/P&gt;&lt;P&gt;function timestamp {&lt;BR /&gt; # ---------------------------------------------------------------------------&lt;BR /&gt; # Write entry to logfile&lt;BR /&gt; # ---------------------------------------------------------------------------&lt;BR /&gt; echo `date --utc +%H:%M` "$*"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual script FWIPSverto run through all Domains on the MDS it is run from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/bin/sh&lt;BR /&gt;#-----------------------------------------------------------&lt;BR /&gt;# FWIPSver -&amp;nbsp;collects info from all Domains about the actual version&amp;nbsp;&lt;BR /&gt;# of the IPS database.&lt;BR /&gt;#----------------------------------------------------------- &lt;BR /&gt;# If the script is called with one or more Domain names on&lt;BR /&gt;# the command line, these Domains are processed. Otherwise&lt;BR /&gt;# the script iterates over the entire&amp;nbsp;Multi Domain&lt;BR /&gt;# installation&lt;BR /&gt;#-----------------------------------------------------------&lt;/P&gt;&lt;P&gt;# Link additional constants and functions library ...&lt;BR /&gt;source `dirname $0`/FWlib&lt;/P&gt;&lt;P&gt;# Declare other variables&lt;BR /&gt;declare -a CMAs&lt;BR /&gt;# Assign CMAs from the commandline (if any) ...&lt;BR /&gt;CMAs=( $* )&lt;/P&gt;&lt;P&gt;#---------------------------------------------------------&lt;/P&gt;&lt;P&gt;# Determine date to be used in filenames&lt;BR /&gt;#---------------------------------------------------------&lt;BR /&gt;DT=`date --utc +%Y%m%d`&lt;/P&gt;&lt;P&gt;#---------------------------------------------------------&lt;BR /&gt;# Initialize Logfile and&amp;nbsp;output file and keep the previous as .bck&lt;BR /&gt;#---------------------------------------------------------&lt;BR /&gt;# Backup old logfile ...&lt;BR /&gt;[ -e $BCK ] &amp;amp;&amp;amp; rm $BCK&lt;BR /&gt;[ -e $LOG ] &amp;amp;&amp;amp; mv $LOG $BCK&lt;/P&gt;&lt;P&gt;# Backup old logfile ...&lt;BR /&gt;[ -e data.bck ] &amp;amp;&amp;amp; rm data.bck&lt;BR /&gt;[ -e data.txt ] &amp;amp;&amp;amp; mv data.txt data.bck&lt;/P&gt;&lt;P&gt;# Backup and create new logdir ...&lt;BR /&gt;[ -d $LOGDIR ] &amp;amp;&amp;amp; rm -R $LOGDIR&lt;BR /&gt;[ ! -d $LOGDIR ] &amp;amp;&amp;amp; mkdir $LOGDIR&lt;/P&gt;&lt;P&gt;# Remove and create new tmpdir ...&lt;BR /&gt;[ ! -d $TMPDIR ] &amp;amp;&amp;amp; mkdir $TMPDIR&lt;/P&gt;&lt;P&gt;# Create new logfile ...&lt;BR /&gt;echo '**************************************' &amp;gt;$LOG&lt;BR /&gt;echo 'Collect IPS versions of all Domains&amp;nbsp;... ' &amp;gt;&amp;gt;$LOG&lt;BR /&gt;echo '**************************************' &amp;gt;&amp;gt;$LOG&lt;BR /&gt;echo 'Provider-1 server: '`uname -n` &amp;gt;&amp;gt;$LOG&lt;BR /&gt;echo 'Current date : '`date --utc +%d-%m-%Y` &amp;gt;&amp;gt;$LOG&lt;BR /&gt;echo 'Current time : '`date --utc +%H:%M` &amp;gt;&amp;gt;$LOG&lt;BR /&gt;echo &amp;gt;&amp;gt;$LOG&lt;/P&gt;&lt;P&gt;#---------------------------------------------------------&lt;BR /&gt;# Find all Domains&lt;BR /&gt;#---------------------------------------------------------&lt;/P&gt;&lt;P&gt;# Set environment to the MDS environment ...&lt;BR /&gt;mdsenv&lt;/P&gt;&lt;P&gt;if [ ${#CMAs[@]} = 0 ]; then &lt;BR /&gt; # Get all CMA names ...&lt;BR /&gt; j=0&lt;BR /&gt; for i in `mdsquerydb CMAs`; do&lt;BR /&gt; CMAs[j++]=`expr $i : '\(.*\)_\._\._'`&lt;BR /&gt; done &lt;BR /&gt;fi&lt;/P&gt;&lt;P&gt;#---------------------------------------------------------&lt;BR /&gt;for CMA in ${CMAs[@]}; do&lt;BR /&gt; echo '============================================' &amp;gt;&amp;gt;$LOG&lt;BR /&gt; echo 'Determining IPS Version on CMA: '$CMA &amp;gt;&amp;gt;$LOG&lt;BR /&gt; echo '============================================' &amp;gt;&amp;gt;$LOG&lt;/P&gt;&lt;P&gt;# Switch environment to CMA ...&lt;BR /&gt; mdsenv $CMA &amp;gt;&amp;gt;NULL &lt;BR /&gt; if [ "$?" = "0" ]; then&lt;BR /&gt; echo $CMA &amp;gt;&amp;gt;data.txt&lt;BR /&gt; cat $FWDIR/conf/asm.C | grep asm_update_version_vpn &amp;gt;&amp;gt;$LOG&lt;BR /&gt; cat $FWDIR/conf/asm.C | grep asm_update_version_vpn &amp;gt;&amp;gt;data.txt&lt;BR /&gt; echo &amp;gt;&amp;gt;$LOG&lt;BR /&gt; else&lt;BR /&gt; echo "CMA does not live on this machine" &amp;gt;&amp;gt;$LOG&lt;BR /&gt; fi&lt;/P&gt;&lt;P&gt;done&lt;BR /&gt;# End of script; close logfile ...&lt;BR /&gt;echo &amp;gt;&amp;gt;$LOG&lt;BR /&gt;echo '--------------------------------------------' &amp;gt;&amp;gt;$LOG&lt;BR /&gt;timestamp 'End of FWIPSver script ... ' &amp;gt;&amp;gt;$LOG&lt;BR /&gt;echo '--------------------------------------------' &amp;gt;&amp;gt;$LOG&lt;/P&gt;&lt;P&gt;# Send resulting log file to&amp;nbsp;mail group ...&lt;BR /&gt;/opt/CPsuite-R77/fw1/bin/sendmail -t $MAILSVR -s "FW IPS Version check results" -f $MAILFROM $MAILTO &amp;lt;$LOG&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/opt/CPsuite-R77/fw1/bin/sendmail -t $MAILSVR -s "FW IPS Version check results" -f $MAILFROM $MAILTO &amp;lt;data.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is all there is to it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone knows of a simple way to collect just the version number and convert this on the MDS itself before we mail it out that would really help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 21:27:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35539#M58724</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-07-16T21:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35540#M58725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for sharing - I was curious about how you got to the list of CMAs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed it so that it produces a CSV file with CMA Name and Version in one Line. Also, I changed it so I look for the version number according to sk120437. Now, you can sort it by version with the command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;sort -t ";" -k 2 -n data.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My diff:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- FWIPSverto.orig&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2018-07-17 07:30:32.000000000 +0200&lt;BR /&gt;+++ FWIPSverto&amp;nbsp; 2018-07-17 08:15:57.000000000 +0200&lt;BR /&gt;@@ -60,9 +60,11 @@&lt;BR /&gt;&amp;nbsp;# Switch environment to CMA ...&lt;BR /&gt;&amp;nbsp;mdsenv $CMA &amp;gt;&amp;gt;NULL&lt;BR /&gt;&amp;nbsp;if [ "$?" = "0" ]; then&lt;BR /&gt;-echo $CMA &amp;gt;&amp;gt;data.txt&lt;BR /&gt;-cat $FWDIR/conf/asm.C | grep asm_update_version_vpn &amp;gt;&amp;gt;$LOG&lt;BR /&gt;-cat $FWDIR/conf/asm.C | grep asm_update_version_vpn &amp;gt;&amp;gt;data.txt&lt;BR /&gt;+echo -n "$CMA;" &amp;gt;&amp;gt;data.txt&lt;BR /&gt;+IPSver=$(cat $FWDIR/conf/asm.C | grep -A20 ASMPostInstallProcedures | grep "asm_update_version " | awk '{print $2}')&lt;BR /&gt;+IPSver=${IPSver#(}&lt;BR /&gt;+IPSver=${IPSver%)}&lt;BR /&gt;+echo $IPSver | tee -a $LOG &amp;gt;&amp;gt;data.txt&lt;BR /&gt;&amp;nbsp;echo &amp;gt;&amp;gt;$LOG&lt;BR /&gt;&amp;nbsp;else&lt;BR /&gt;&amp;nbsp;echo "CMA does not live on this machine" &amp;gt;&amp;gt;$LOG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 07:31:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35540#M58725</guid>
      <dc:creator>Arne_Boettger</dc:creator>
      <dc:date>2018-07-17T07:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: IPS Update check per domain R77.30</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35541#M58726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arne, this was the missing bit to make it useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:37:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/IPS-Update-check-per-domain-R77-30/m-p/35541#M58726</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-07-17T15:37:28Z</dc:date>
    </item>
  </channel>
</rss>

