<?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 clean system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284158#M335853</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I looking for if exists some script, program to clean old logs, files, HPUX, generaly files which are unnecessary.How can i clean my filesystem :o) Thanks for info,&lt;BR /&gt;&lt;BR /&gt;Slawek</description>
    <pubDate>Thu, 09 Oct 2008 17:07:46 GMT</pubDate>
    <dc:creator>Slawek Ksiazek</dc:creator>
    <dc:date>2008-10-09T17:07:46Z</dc:date>
    <item>
      <title>clean system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284158#M335853</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I looking for if exists some script, program to clean old logs, files, HPUX, generaly files which are unnecessary.How can i clean my filesystem :o) Thanks for info,&lt;BR /&gt;&lt;BR /&gt;Slawek</description>
      <pubDate>Thu, 09 Oct 2008 17:07:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284158#M335853</guid>
      <dc:creator>Slawek Ksiazek</dc:creator>
      <dc:date>2008-10-09T17:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: clean system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284159#M335854</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Aside from trimming log files (primarily in '/var/adm') you probably want to reclaim some space in '/var'.&lt;BR /&gt;&lt;BR /&gt;Never manually manage the '/var/adm/sw' directory.   It is your IPD (installed Product Database) and as such it is essential to being able to patch and add or remove software.  Instead, you can run:&lt;BR /&gt;&lt;BR /&gt;# cleanup -c 1&lt;BR /&gt;&lt;BR /&gt;...to remove rollback images of patches that have been superceded at least once.  If you have never done this, but have patched routinely, you will be suprised at the amount of space that might be returned.&lt;BR /&gt;&lt;BR /&gt;As always, a good Ignite backup is always a good thing to have.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 09 Oct 2008 17:12:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284159#M335854</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-09T17:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: clean system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284160#M335855</link>
      <description>James's post is an excelent way to clear out old patches and whatnot. Somehting else you may want to try is:&lt;BR /&gt;&lt;BR /&gt;find /var -xdev -depth -size +7000 â  xdev -exec ll {} \; | more&lt;BR /&gt;&lt;BR /&gt;This will find files larger than 7000k you can easily add a grep in there to find only .log files. AND you can replace the ll with rm to remove them, however ALWAYS run the ll first to ensure your not deleting anything needed by the system.&lt;BR /&gt;&lt;BR /&gt;One other trick I like to use is touch. See below:&lt;BR /&gt;&lt;BR /&gt;To remove dated files. Can be modified to remove sized files as well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# touch -amt 200504150000 /tmp/ref1&lt;BR /&gt;# touch -amt 200802282359 /tmp/ref2&lt;BR /&gt;&lt;BR /&gt;# find /opt/mtmc/ibs/import/reject -xdev -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec rm {} \+&lt;BR /&gt;&lt;BR /&gt;This will remove files that are newer (more recently modified) than April 15 at 0000 AND NOT newer than Feb, 28th 2359 of this year&lt;BR /&gt;This can be easily modified to do any number of tasks. Hope this helps.</description>
      <pubDate>Thu, 09 Oct 2008 17:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284160#M335855</guid>
      <dc:creator>Adam W.</dc:creator>
      <dc:date>2008-10-09T17:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: clean system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284161#M335856</link>
      <description>ok, thanks</description>
      <pubDate>Fri, 10 Oct 2008 07:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clean-system/m-p/4284161#M335856</guid>
      <dc:creator>Slawek Ksiazek</dc:creator>
      <dc:date>2008-10-10T07:21:14Z</dc:date>
    </item>
  </channel>
</rss>

