<?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: shrinking log files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078424#M142137</link>
    <description>I do not know if this is true on HPUX environments but on other "Unices" - I take extra care when trimming log files -- specially those active (or open) ones. &lt;BR /&gt;&lt;BR /&gt;What I usually do is in the log rotater script, I have a routine there that once the current large log is copied to a different location, I do a cp /dev/null /var/adm/someactive.log.&lt;BR /&gt;&lt;BR /&gt;The reason is that sometimes, even if you have deleted that large active log file on a filesystem, it does not free up the space occupied by the deleted file...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Sep 2003 13:45:58 GMT</pubDate>
    <dc:creator>Alzhy</dc:creator>
    <dc:date>2003-09-25T13:45:58Z</dc:date>
    <item>
      <title>shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078417#M142130</link>
      <description>Is there a way to shrink down log files such as swagent.log ? I am looking for a way to clear out some of them and make smaller. Especially the ones that are getting very large to save some disk space.</description>
      <pubDate>Thu, 25 Sep 2003 10:55:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078417#M142130</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2003-09-25T10:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078418#M142131</link>
      <description>swagent log can be shrunk with cron.&lt;BR /&gt; &lt;BR /&gt;We also run this script once a month:&lt;BR /&gt; &lt;BR /&gt;cp swagentd.log &amp;gt; /backups/sdux&lt;BR /&gt;&amp;gt; swagentd.log&lt;BR /&gt; &lt;BR /&gt;That nulls it out.&lt;BR /&gt; &lt;BR /&gt;SEP</description>
      <pubDate>Thu, 25 Sep 2003 10:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078418#M142131</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-25T10:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078419#M142132</link>
      <description>I would like to be able to do this manually. I tryed your 2nd idea and it doesn't work for me. I created a file to copy to. I guess i am not understanding it correctly.</description>
      <pubDate>Thu, 25 Sep 2003 11:05:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078419#M142132</guid>
      <dc:creator>Chris Fadrowski</dc:creator>
      <dc:date>2003-09-25T11:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078420#M142133</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;SAM has a built-in log trimming utility.&lt;BR /&gt;Go to:&lt;BR /&gt;&lt;BR /&gt;sam &amp;amp; -&amp;gt; Routine Tasks -&amp;gt; System Log Files -&amp;gt; highlight the log file (sw*.log are there already) -&amp;gt; Actions -&amp;gt; Trim -&amp;gt; select trim method.&lt;BR /&gt;&lt;BR /&gt;You could then capture SAMs method/commands from the sam log &amp;amp; build a script to run from cron.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 25 Sep 2003 11:07:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078420#M142133</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-09-25T11:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078421#M142134</link>
      <description>Chris,&lt;BR /&gt;  Try this out.  This empties the swagentd.log.&lt;BR /&gt;As far, trimming down, Jeff's suggestion is easy and good one.&lt;BR /&gt;  cat /dev/null &amp;gt; swagentd.log.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 11:12:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078421#M142134</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-25T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078422#M142135</link>
      <description>More specific:&lt;BR /&gt; &lt;BR /&gt;/sbin/init.d/swagentd stop&lt;BR /&gt;&amp;gt; /var/adm/sw/swagentd.log&lt;BR /&gt;/sbin/init.d/swagentd start&lt;BR /&gt; &lt;BR /&gt;The earlier command porbably failed because the daemon was running.&lt;BR /&gt; &lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 11:16:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078422#M142135</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-25T11:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078423#M142136</link>
      <description>Use SAM to trim to system log files. Start SAM - Routine Tasks - System Log Files - Highlight the log file - Actions - Trim and select the desired option.&lt;BR /&gt;&lt;BR /&gt;-GK-</description>
      <pubDate>Thu, 25 Sep 2003 13:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078423#M142136</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2003-09-25T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: shrinking log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078424#M142137</link>
      <description>I do not know if this is true on HPUX environments but on other "Unices" - I take extra care when trimming log files -- specially those active (or open) ones. &lt;BR /&gt;&lt;BR /&gt;What I usually do is in the log rotater script, I have a routine there that once the current large log is copied to a different location, I do a cp /dev/null /var/adm/someactive.log.&lt;BR /&gt;&lt;BR /&gt;The reason is that sometimes, even if you have deleted that large active log file on a filesystem, it does not free up the space occupied by the deleted file...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Sep 2003 13:45:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shrinking-log-files/m-p/3078424#M142137</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2003-09-25T13:45:58Z</dc:date>
    </item>
  </channel>
</rss>

