<?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: Littering in /tmp on R82 MDS in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271069#M103350</link>
    <description>&lt;P&gt;Interesting point. On my R82.10, I can't see any 'bladeStatus*' directories, but on our production MDS, I can see more than 400 of them, each consuming 8 KB.&lt;BR /&gt;I will check if we want to implement a cron job for that. Thanks for notifying.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2026 06:26:13 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2026-02-17T06:26:13Z</dc:date>
    <item>
      <title>Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271022#M103324</link>
      <description>&lt;P&gt;We found some Littering on R82 MDS machines.&lt;/P&gt;
&lt;P&gt;It seems the /tmp directory is used but not cleaned up properly.&lt;/P&gt;
&lt;P&gt;You can find the stuff with the following command:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;find /tmp -name 'bladesStatus*' -exec ls -ld {} \;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if neded you can cleanup with:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;find /tmp -mtime +30 -name 'bladesStatus*' -exec rm -r {} \;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which only leaves you with the last 30 days of this stuff.&lt;/P&gt;
&lt;P&gt;But it would be nice if a system is a bit more tidier and cleans up after itself.&lt;/P&gt;
&lt;P&gt;Is seems like something runs at a 6 hours interval but failed to cleanup this bit.&lt;/P&gt;
&lt;P&gt;Anyone else seen this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:25:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271022#M103324</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2026-02-16T16:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271025#M103326</link>
      <description>&lt;P&gt;Is there possibly a cron job there there?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:24:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271025#M103326</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-16T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271028#M103327</link>
      <description>&lt;P&gt;We use plenty of crontab jobs. But none of them every 6 hours. ... But the default update check is every 6 hours .... So that might be where this happens.&lt;/P&gt;
&lt;P&gt;Did anyone see it on normal SmartCenters? I don't have access to one at the moment that runs R82.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:28:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271028#M103327</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2026-02-16T16:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271030#M103328</link>
      <description>&lt;P&gt;I just checked and my R82.10 MDS doesn't create them.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@MDS01:0]# find /tmp -name 'bladesStatus*' -exec ls -ld {} \;
drwxr-xr-x 2 admin config 47 Feb 16 17:24 /tmp/bladesStatus
[Expert@MDS01:0]#
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:31:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271030#M103328</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2026-02-16T16:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271032#M103329</link>
      <description>&lt;P&gt;I have R82 lab mgmt, never seen that issue.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:32:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271032#M103329</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-16T16:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271036#M103330</link>
      <description>&lt;P&gt;From my R82 lab:&lt;/P&gt;
&lt;P&gt;[Expert@CP-MANAGEMENT:0]# find /tmp -name 'bladesStatus*' -exec ls -ld {} \;&lt;BR /&gt;drwxr-xr-x 2 admin config 100 Apr 20 2025 /tmp/bladesStatus&lt;BR /&gt;[Expert@CP-MANAGEMENT:0]#&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 17:06:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271036#M103330</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-16T17:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271047#M103337</link>
      <description>&lt;P&gt;The odd thing is we got a incident from a customer about the root partition filling up.&amp;nbsp; That's when I started to investigate our R82 MDS farm. And it happens on all of them. Not on R81.20 neither on R82.10 and I guess it didn't happen on older versions as well.&lt;/P&gt;
&lt;P&gt;I'll see if I can update with a `screenshot` of it. And there is now a TAC case for it.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 21:16:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271047#M103337</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2026-02-16T21:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271048#M103338</link>
      <description>&lt;P&gt;Sounds good, keep us posted!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 21:23:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271048#M103338</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-16T21:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271069#M103350</link>
      <description>&lt;P&gt;Interesting point. On my R82.10, I can't see any 'bladeStatus*' directories, but on our production MDS, I can see more than 400 of them, each consuming 8 KB.&lt;BR /&gt;I will check if we want to implement a cron job for that. Thanks for notifying.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 06:26:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271069#M103350</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-17T06:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271311#M103474</link>
      <description>&lt;P&gt;Oh. I spotted this also on on our last R81.20 MDS machines as well. They are rapidly going extinct as we upgrade them to R82.&lt;/P&gt;
&lt;P&gt;TAC is investigating.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 13:52:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271311#M103474</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2026-02-19T13:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271320#M103481</link>
      <description>&lt;P&gt;We did not impement a cron but asked our designated diamond service engineer to take care about it.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 14:25:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/271320#M103481</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-19T14:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/274640#M104620</link>
      <description>&lt;P&gt;The current TAC solution on the table is a slight modification of the enabled_blades.sh script.&lt;/P&gt;
&lt;P&gt;But the suggest solution to remove the $TMP directory this script creates should allready be in the script and be triggerd by a trap line:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;#deletes the temp directory&lt;BR /&gt;function cleanup() {&lt;BR /&gt;rm -rf $TMP&lt;BR /&gt;exit 0&lt;BR /&gt;}&lt;BR /&gt;## Trap cleanup function on exit or signa&lt;BR /&gt;trap cleanup SIGHUP SIGINT SIGQUIT SIGABRT SIGKILL SIGSEGV SIGTERM&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This trap line is missing the EXIT condition. So either the function should be called upon at the end of the script explicitly or the script should add the EXT condition to the trap.&lt;/P&gt;
&lt;P&gt;In it's present form if you call upon the script enabled_blades.sh on a MDS the script will create a temp directory and not clean it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tested this as temp solution based upon the suggestion from Check Point TAC and the diff to the script is below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# diff -u /opt/CPshrd-R82/bin/enabled_blades.sh.20260401 /opt/CPshrd-R82/bin/enabled_blades.sh
--- /opt/CPshrd-R82/bin/enabled_blades.sh.20260401 2026-04-01 14:03:52.991495041 +0200
+++ /opt/CPshrd-R82/bin/enabled_blades.sh 2026-04-01 14:08:11.761820408 +0200
@@ -11,11 +11,14 @@

#deletes the temp directory
function cleanup() {
- rm -rf $TMP
+ if [[ $TMP == /tmp/* ]]; then
+ echo "Cleanup $TMP"
+ rm -rf $TMP
+ fi
exit 0
}
# Trap cleanup function on exit or signal
-trap cleanup SIGHUP SIGINT SIGQUIT SIGABRT SIGKILL SIGSEGV SIGTERM
+trap cleanup EXIT SIGHUP SIGINT SIGQUIT SIGABRT SIGKILL SIGSEGV SIGTERM

# blades - format is: "short name for user" property-name [inner set-name]
cat&amp;lt;&amp;lt;_ &amp;gt; $TMP/blade_names&lt;/LI-CODE&gt;
&lt;P&gt;You can remove the echo command once you done testing this as a possible solution.&lt;/P&gt;
&lt;P&gt;And manualy remove the temp stuff with:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;rm -rf /tmp/bladesStatus.*&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Apr 2026 12:38:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/274640#M104620</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2026-04-01T12:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Littering in /tmp on R82 MDS</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/274643#M104621</link>
      <description>&lt;P&gt;AI pointed out that I should use&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;trap cleanup EXIT INT TERM&lt;/LI-CODE&gt;
&lt;P&gt;And it made some compeling arguments for avoiding the long list above.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 13:06:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/Littering-in-tmp-on-R82-MDS/m-p/274643#M104621</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2026-04-01T13:06:14Z</dc:date>
    </item>
  </channel>
</rss>

