<?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 .def files changes check script in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/def-files-changes-check-script/m-p/271210#M1492</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Her eis basic script to check any changes in .def files in below dirs:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;!--ScriptorStartFragment--&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/database/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/conf/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/lib/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/var/opt/CPsuite-R*/fw1/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/tmp/&lt;!--ScriptorEndFragment--&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Example in my lab:&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# cd /var/log/scripts/&lt;BR /&gt;[Expert@CP-GW:0]# chmod 777 *&lt;BR /&gt;[Expert@CP-GW:0]# dos2unix *&lt;BR /&gt;dos2unix: converting file check_def_integrity.sh to Unix format ...&lt;BR /&gt;[Expert@CP-GW:0]# ./check_def_integrity.sh&lt;BR /&gt;[*] Scanning .def files...&lt;BR /&gt;[!] No baseline found. Creating baseline...&lt;BR /&gt;Re-run the script to perform integrity checks.&lt;BR /&gt;[Expert@CP-GW:0]# ./check_def_integrity.sh -h&lt;BR /&gt;[*] Scanning .def files...&lt;BR /&gt;[*] Comparing against baseline...&lt;/P&gt;
&lt;P&gt;Integrity check complete.&lt;BR /&gt;Report: /var/log/def_integrity_report.txt&lt;BR /&gt;[Expert@CP-GW:0]# more /var/log/def_integrity_report.txt&lt;BR /&gt;========================================&lt;BR /&gt;Check Point .def Integrity Check Report&lt;BR /&gt;Date: Wed Feb 18 08:17:41 EST 2026&lt;BR /&gt;========================================&lt;/P&gt;
&lt;P&gt;---- Modified or Missing Files ----&lt;/P&gt;
&lt;P&gt;---- New Files ----&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Integrity check PASSED – no changes detected.&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2026 13:20:26 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2026-02-18T13:20:26Z</dc:date>
    <item>
      <title>.def files changes check script</title>
      <link>https://community.checkpoint.com/t5/Scripts/def-files-changes-check-script/m-p/271210#M1492</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;Her eis basic script to check any changes in .def files in below dirs:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;!--ScriptorStartFragment--&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/database/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/conf/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/lib/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/var/opt/CPsuite-R*/fw1/&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="scriptor-paragraph"&gt;&lt;SPAN&gt;/opt/CPsuite-R*/fw1/tmp/&lt;!--ScriptorEndFragment--&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;Example in my lab:&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]# cd /var/log/scripts/&lt;BR /&gt;[Expert@CP-GW:0]# chmod 777 *&lt;BR /&gt;[Expert@CP-GW:0]# dos2unix *&lt;BR /&gt;dos2unix: converting file check_def_integrity.sh to Unix format ...&lt;BR /&gt;[Expert@CP-GW:0]# ./check_def_integrity.sh&lt;BR /&gt;[*] Scanning .def files...&lt;BR /&gt;[!] No baseline found. Creating baseline...&lt;BR /&gt;Re-run the script to perform integrity checks.&lt;BR /&gt;[Expert@CP-GW:0]# ./check_def_integrity.sh -h&lt;BR /&gt;[*] Scanning .def files...&lt;BR /&gt;[*] Comparing against baseline...&lt;/P&gt;
&lt;P&gt;Integrity check complete.&lt;BR /&gt;Report: /var/log/def_integrity_report.txt&lt;BR /&gt;[Expert@CP-GW:0]# more /var/log/def_integrity_report.txt&lt;BR /&gt;========================================&lt;BR /&gt;Check Point .def Integrity Check Report&lt;BR /&gt;Date: Wed Feb 18 08:17:41 EST 2026&lt;BR /&gt;========================================&lt;/P&gt;
&lt;P&gt;---- Modified or Missing Files ----&lt;/P&gt;
&lt;P&gt;---- New Files ----&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Integrity check PASSED – no changes detected.&lt;BR /&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 13:20:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/def-files-changes-check-script/m-p/271210#M1492</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-18T13:20:26Z</dc:date>
    </item>
  </channel>
</rss>

