<?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: Managing /var space in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953032#M790901</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The file 'var/adm/wtmp' and its cousin '/var/adm/btmp' for logging successful and unsuccessful logins, respectively, grown without bounds.&lt;BR /&gt;&lt;BR /&gt;If you don't want to log the activity, remove the file.  That disables the logging.&lt;BR /&gt;&lt;BR /&gt;Otherwise you can null the file:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;...or trim it by first converting the binary data to ASCII; trimming what you don't want; and then converting the ASCII version back to the binary form:&lt;BR /&gt;&lt;BR /&gt;# # /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmp &lt;BR /&gt;&lt;BR /&gt;[ trim the ASCII file as necessary ]&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp -ic &amp;lt; /tmp/wtmp &amp;gt; /var/adm/wtmp &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 17 Jan 2006 17:28:50 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2006-01-17T17:28:50Z</dc:date>
    <item>
      <title>Managing /var space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953030#M790899</link>
      <description>Hi;&lt;BR /&gt;&lt;BR /&gt;How do control /var/adm/wtmp file. it seems the file size is grown to 103444800. please help me.&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;indrajit</description>
      <pubDate>Tue, 17 Jan 2006 17:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953030#M790899</guid>
      <dc:creator>Indrajit_1</dc:creator>
      <dc:date>2006-01-17T17:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953031#M790900</link>
      <description>There's no mechanism in HP-UX to rotate /var/adm/wtmp or /var/adm/btmp. You can set up a cron job to rotate them periodically. Or use a tool like logrotate that you can get from the Porting Center to manage them and many other log files HP-UX doesn't manage out-of-the-box. A quick and dirty rotation:&lt;BR /&gt;&lt;BR /&gt;cp -p /var/adm/wtmp /var/adm/wtmp.old&lt;BR /&gt;&amp;gt; /var/adm/wtmp&lt;BR /&gt;gzip /var/adm/wtmp.old</description>
      <pubDate>Tue, 17 Jan 2006 17:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953031#M790900</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-01-17T17:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953032#M790901</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The file 'var/adm/wtmp' and its cousin '/var/adm/btmp' for logging successful and unsuccessful logins, respectively, grown without bounds.&lt;BR /&gt;&lt;BR /&gt;If you don't want to log the activity, remove the file.  That disables the logging.&lt;BR /&gt;&lt;BR /&gt;Otherwise you can null the file:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;...or trim it by first converting the binary data to ASCII; trimming what you don't want; and then converting the ASCII version back to the binary form:&lt;BR /&gt;&lt;BR /&gt;# # /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmp &lt;BR /&gt;&lt;BR /&gt;[ trim the ASCII file as necessary ]&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp -ic &amp;lt; /tmp/wtmp &amp;gt; /var/adm/wtmp &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 17 Jan 2006 17:28:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953032#M790901</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-17T17:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953033#M790902</link>
      <description>Shalom indrajit,&lt;BR /&gt;&lt;BR /&gt;Once a week, I have a script that does this:&lt;BR /&gt;&lt;BR /&gt;cp /var/adm/syslog/wtmp /copytotape&lt;BR /&gt;cp /var/adm/syslog/btmp /copytotape&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /var/adm/syslog/wtmp&lt;BR /&gt;&amp;gt; /var/adm/syslog/btmp&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 17 Jan 2006 17:36:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953033#M790902</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-01-17T17:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var space</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953034#M790903</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for ur kind support. /var has reduced to 77%. &lt;BR /&gt;&lt;BR /&gt;Thanks James R..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;indrajit</description>
      <pubDate>Tue, 17 Jan 2006 19:25:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-space/m-p/4953034#M790903</guid>
      <dc:creator>Indrajit_1</dc:creator>
      <dc:date>2006-01-17T19:25:39Z</dc:date>
    </item>
  </channel>
</rss>

