<?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 Some log files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328090#M341589</link>
    <description>I have a question about some log files: The reason I am asking this is my root / is getting full 98%, I wanna retrieve some space by deleting log files and other files that are no more needed:&lt;BR /&gt;&lt;BR /&gt;The first log files are under /etc/opt/resmon/log:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--   1 root       root        387944 Dec 19 04:03 api.log&lt;BR /&gt;-rw-r--r--   1 root       root        500260 Feb 15  2008 api.log.old&lt;BR /&gt;-rw-r--r--   1 root       root        401210 Mar 17  2008 client.log&lt;BR /&gt;-rw-r--r--   1 root       root        500325 Feb  4  2007 client.log.old&lt;BR /&gt;-rw-r--r--   1 root       sys          47530 Mar 17  2008 emsagent.log&lt;BR /&gt;-rw-r--r--   1 root       root        254419 Dec 19 04:04 registrar.log&lt;BR /&gt;-rw-r--r--   1 root       root        500274 Mar 17  2008 registrar.log.old&lt;BR /&gt;-rw-r--r--   1 root       root        719920 Dec 20 16:05 reslog.html&lt;BR /&gt;-rw-r--r--   1 root       root       1000257 Nov  8  2007 reslog.old.html&lt;BR /&gt;&lt;BR /&gt;How important are these log files, Can I just copy them to some other location and then retrieve some space by deleting them?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 23 Dec 2008 16:04:14 GMT</pubDate>
    <dc:creator>Waqar Razi</dc:creator>
    <dc:date>2008-12-23T16:04:14Z</dc:date>
    <item>
      <title>Some log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328090#M341589</link>
      <description>I have a question about some log files: The reason I am asking this is my root / is getting full 98%, I wanna retrieve some space by deleting log files and other files that are no more needed:&lt;BR /&gt;&lt;BR /&gt;The first log files are under /etc/opt/resmon/log:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--   1 root       root        387944 Dec 19 04:03 api.log&lt;BR /&gt;-rw-r--r--   1 root       root        500260 Feb 15  2008 api.log.old&lt;BR /&gt;-rw-r--r--   1 root       root        401210 Mar 17  2008 client.log&lt;BR /&gt;-rw-r--r--   1 root       root        500325 Feb  4  2007 client.log.old&lt;BR /&gt;-rw-r--r--   1 root       sys          47530 Mar 17  2008 emsagent.log&lt;BR /&gt;-rw-r--r--   1 root       root        254419 Dec 19 04:04 registrar.log&lt;BR /&gt;-rw-r--r--   1 root       root        500274 Mar 17  2008 registrar.log.old&lt;BR /&gt;-rw-r--r--   1 root       root        719920 Dec 20 16:05 reslog.html&lt;BR /&gt;-rw-r--r--   1 root       root       1000257 Nov  8  2007 reslog.old.html&lt;BR /&gt;&lt;BR /&gt;How important are these log files, Can I just copy them to some other location and then retrieve some space by deleting them?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Dec 2008 16:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328090#M341589</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2008-12-23T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Some log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328091#M341590</link>
      <description>All of these are used by EMS.  If you move the current ones, then you may effect EMS operations.&lt;BR /&gt;&lt;BR /&gt;I would start by (re)moving any of the files with "old" in the name.&lt;BR /&gt;&lt;BR /&gt;Another thing to check if '/' is filling up is your /dev directory.&lt;BR /&gt;&lt;BR /&gt;The should not be any "regular" files in /dev, they should all be device files.  A common mistake is to mistype a tape device and create a large file in /dev/rmt.&lt;BR /&gt;&lt;BR /&gt;This will find any regular files in /dev:&lt;BR /&gt;&lt;BR /&gt;# cd /dev&lt;BR /&gt;# find . -type f -exec ls -l {} \;&lt;BR /&gt;&lt;BR /&gt;Any files that the command returns can probably be deleted.</description>
      <pubDate>Tue, 23 Dec 2008 16:08:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328091#M341590</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-12-23T16:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Some log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328092#M341591</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;The EMS log files in /etc/opt/resmon/log are limited to 500 KB in size and are then moved to &lt;LOGFILE&gt;.old. The previous *.old gets lost.&lt;BR /&gt;&lt;BR /&gt;The limit of 500 KB per logfile can be removed by creating the file /etc/opt/resmon/unlimited_log.&lt;BR /&gt;&lt;BR /&gt;Be careful with creating the unlimited_log. Growing EMS log files can easily fill up root file system.&lt;BR /&gt;&lt;BR /&gt;It is even part of my Operations Acceptance Testing for HP-UX as I had one customer&lt;BR /&gt;who made that mistake on a large scale :)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt" target="_blank"&gt;http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can move or recycle the old files&lt;BR /&gt;on a regular basis:&lt;BR /&gt;&lt;BR /&gt;for myfile in `ls /etc/opt/resmon/log/*.old`&lt;BR /&gt;do&lt;BR /&gt;  &amp;gt; $myfile&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This specific issue was one of the items&lt;BR /&gt;highligthed in my internal presentation at&lt;BR /&gt;HP Unix Profession Virtual Conference&lt;BR /&gt;in December 2008 where I spoke about automated log file management in AIX,&lt;BR /&gt;Linux, Solaris, and HP-UX.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT&lt;/LOGFILE&gt;</description>
      <pubDate>Tue, 23 Dec 2008 23:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328092#M341591</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-12-23T23:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Some log files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328093#M341592</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The max file size is 977kb which is not a big file better you search some other huge files in / directory.&lt;BR /&gt;&lt;BR /&gt;#find / -size +15000 -print #(more then 15MB)&lt;BR /&gt;&lt;BR /&gt;check any open file is there with&lt;BR /&gt;&lt;BR /&gt;lsof &lt;BR /&gt;&lt;BR /&gt;To know how to use lsof check the below link&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sial.org/howto/debug/unix/lsof/" target="_blank"&gt;http://sial.org/howto/debug/unix/lsof/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 24 Dec 2008 04:40:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/some-log-files/m-p/4328093#M341592</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2008-12-24T04:40:55Z</dc:date>
    </item>
  </channel>
</rss>

