<?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: how to use &amp;quot;ls&amp;quot; to search the biggest files in /var? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870151#M98233</link>
    <description>Do not delete the two files in the /var/stm/logs/os&lt;BR /&gt;&lt;BR /&gt;logN.raw.cur     &lt;BR /&gt; memlog           &lt;BR /&gt;memlog is used for memory logging.&lt;BR /&gt;logN.raw.cur is the current log file for stm.&lt;BR /&gt;&lt;BR /&gt;However you can delete the other old log files provided you will miss the old data.&lt;BR /&gt;&lt;BR /&gt;check this link on the stm logging.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/diag/logtool/log_data.htm&amp;amp;searchterms=/var/stm/logs/os&amp;amp;queryid=20020218-001728" target="_blank"&gt;http://www.docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/diag/logtool/log_data.htm&amp;amp;searchterms=/var/stm/logs/os&amp;amp;queryid=20020218-001728&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Revert</description>
    <pubDate>Thu, 26 Dec 2002 14:13:25 GMT</pubDate>
    <dc:creator>T G Manikandan</dc:creator>
    <dc:date>2002-12-26T14:13:25Z</dc:date>
    <item>
      <title>how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870141#M98223</link>
      <description>how can i do that? &lt;BR /&gt;find the biggest files in /var?</description>
      <pubDate>Thu, 26 Dec 2002 01:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870141#M98223</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-12-26T01:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870142#M98224</link>
      <description># ls -l | sort +4nr &lt;BR /&gt;&lt;BR /&gt;will show largest files first&lt;BR /&gt;&lt;BR /&gt;# ls -l | sort +4n &lt;BR /&gt;&lt;BR /&gt;will show largest files last&lt;BR /&gt;&lt;BR /&gt;If you want the whole /var directory structure use 'ls -lR' in the above  command lines.&lt;BR /&gt;&lt;BR /&gt;It would probably be easier to use du to do this though.&lt;BR /&gt;&lt;BR /&gt;# du -k * | sort &lt;BR /&gt;&lt;BR /&gt;should get you something close to what you want.</description>
      <pubDate>Thu, 26 Dec 2002 02:03:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870142#M98224</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-12-26T02:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870143#M98225</link>
      <description>Hi use find command instead.&lt;BR /&gt;syntax...&lt;BR /&gt;find /var -size +1000000c -exec ll {} \;&lt;BR /&gt;&lt;BR /&gt;this will list all files greated than 1MB.&lt;BR /&gt;For more information do man on find command.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Thu, 26 Dec 2002 02:06:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870143#M98225</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2002-12-26T02:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870144#M98226</link>
      <description>A correction to my last post.&lt;BR /&gt;&lt;BR /&gt;The syntax for the du command with sort is:&lt;BR /&gt;&lt;BR /&gt;# du -k * | sort -n&lt;BR /&gt;Will sort smallest to largest&lt;BR /&gt;&lt;BR /&gt;# du -k * | sort -nr&lt;BR /&gt;Will sort largest to smallest</description>
      <pubDate>Thu, 26 Dec 2002 02:12:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870144#M98226</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-12-26T02:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870145#M98227</link>
      <description>Do a &lt;BR /&gt;#du -k /var|sort -nr &lt;BR /&gt;This will list the greater MB size in descending order.&lt;BR /&gt;&lt;BR /&gt;WHat you can check is for &lt;BR /&gt;check for these dir&lt;BR /&gt;&lt;BR /&gt;/var/adm/crash&lt;BR /&gt;/var/tombstones&lt;BR /&gt;/var/adm/syslog/&lt;BR /&gt;/var/mail&lt;BR /&gt;/var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;/var/opt/ignite&lt;BR /&gt;&lt;BR /&gt;ALso you can clean the /var/tmp&lt;BR /&gt;remove the files which were not accessed for the past 7 days&lt;BR /&gt;find  /var/tmp  -atime  +7  -exec  rm {} \;&lt;BR /&gt;&lt;BR /&gt;REmove the unrequired files and clean the file system.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Dec 2002 03:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870145#M98227</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-26T03:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870146#M98228</link>
      <description>Be careful in looking for big files. Quite often, a programming mistake will leave thousands of small files that will be missed by the find command (looking for 1meg or larger). /var s the busiest filesystem in HP-UX and MUST be actively managed, that is, logfiles and temp files must be trimmed.&lt;BR /&gt;&lt;BR /&gt;As mentioned, du -k is the preferred command because it shows the biggest directories. Once you see the biggest directories, look inside the directory and sort files by size using:&lt;BR /&gt;&lt;BR /&gt;ll | sort -rnk5 | more&lt;BR /&gt;&lt;BR /&gt;Files that will grow very large are logfiles in /var/adm and also /var/adm/sw where patches and other rollback files are stored. /var/adm/sw is always a candidate for a separate volume.</description>
      <pubDate>Thu, 26 Dec 2002 03:50:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870146#M98228</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-12-26T03:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870147#M98229</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;concerning du:&lt;BR /&gt;&lt;BR /&gt;i  prefer to use the -s option which allows me to print only the grand total of disk usage for each of the specified name operands.&lt;BR /&gt;&lt;BR /&gt;E.g.&lt;BR /&gt;# du -sk /var/*&lt;BR /&gt;0       /var/X11&lt;BR /&gt;282551  /var/adm&lt;BR /&gt;20      /var/dt&lt;BR /&gt;0       /var/lost+found&lt;BR /&gt;255     /var/mail&lt;BR /&gt;0       /var/news&lt;BR /&gt;55453   /var/opt&lt;BR /&gt;1441    /var/preserve&lt;BR /&gt;0       /var/rap&lt;BR /&gt;0       /var/rbootd&lt;BR /&gt;2       /var/run&lt;BR /&gt;23428   /var/sam&lt;BR /&gt;403     /var/spool&lt;BR /&gt;2       /var/statmon&lt;BR /&gt;15106   /var/stm&lt;BR /&gt;17714   /var/tmp&lt;BR /&gt;402     /var/tombstones&lt;BR /&gt;0       /var/uucp&lt;BR /&gt;40      /var/yp&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Then i drill down the directories in search for any suspicious files.&lt;BR /&gt;&lt;BR /&gt;Please note that in SAM-&amp;gt;Routine Tasks you already have a list of selected OS logfiles that alleviates the logfile trimming tasks of SysAdmins.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Yogeeraj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Dec 2002 04:41:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870147#M98229</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-12-26T04:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870148#M98230</link>
      <description>i found these are a lot of big files in /var/stm/logs/os   &lt;BR /&gt;*.raw files</description>
      <pubDate>Thu, 26 Dec 2002 04:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870148#M98230</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-12-26T04:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870149#M98231</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;Before you delete any raw logfile file, you must find out WHY its got so big! Each file is written to every time a significant hardware event occurrs, so it could be some component on your system is failing. &lt;BR /&gt;&lt;BR /&gt;Before deleting any file, you should first tell STM to start using a new log.&lt;BR /&gt;&lt;BR /&gt;Please see the following post:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x20e191ccb36bd611abdb0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x20e191ccb36bd611abdb0090277a778c,00.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5b3d7b8d1de3d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5b3d7b8d1de3d5118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Thu, 26 Dec 2002 05:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870149#M98231</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-12-26T05:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870150#M98232</link>
      <description>For safty reason,you should not delete these files directly instead of empty them. Normally we use &lt;BR /&gt;#&amp;gt; logfile&lt;BR /&gt;to empty the log file. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Dec 2002 05:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870150#M98232</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2002-12-26T05:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870151#M98233</link>
      <description>Do not delete the two files in the /var/stm/logs/os&lt;BR /&gt;&lt;BR /&gt;logN.raw.cur     &lt;BR /&gt; memlog           &lt;BR /&gt;memlog is used for memory logging.&lt;BR /&gt;logN.raw.cur is the current log file for stm.&lt;BR /&gt;&lt;BR /&gt;However you can delete the other old log files provided you will miss the old data.&lt;BR /&gt;&lt;BR /&gt;check this link on the stm logging.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/diag/logtool/log_data.htm&amp;amp;searchterms=/var/stm/logs/os&amp;amp;queryid=20020218-001728" target="_blank"&gt;http://www.docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/diag/logtool/log_data.htm&amp;amp;searchterms=/var/stm/logs/os&amp;amp;queryid=20020218-001728&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Revert</description>
      <pubDate>Thu, 26 Dec 2002 14:13:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870151#M98233</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-12-26T14:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870152#M98234</link>
      <description>I have a script called "biggest" which contains the following single line:&lt;BR /&gt;&lt;BR /&gt;ls -l | awk '{printf("%10s:%s\n",$5,$0)}' | sort | cut -c12-&lt;BR /&gt;&lt;BR /&gt;In my case, I 'cd' to a directory and run 'biggest' ... it displays the biggest files with formatted output.&lt;BR /&gt;&lt;BR /&gt;If you wanted something that would traverse directories, you could use this as a starting point.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Dec 2002 13:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870152#M98234</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2002-12-27T13:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to use "ls" to search the biggest files in /var?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870153#M98235</link>
      <description>A useful 10 point script(hint hint) that you can modify for your own use.</description>
      <pubDate>Fri, 27 Dec 2002 14:18:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-use-quot-ls-quot-to-search-the-biggest-files-in-var/m-p/2870153#M98235</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2002-12-27T14:18:29Z</dc:date>
    </item>
  </channel>
</rss>

