<?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: wtmp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701909#M58089</link>
    <description>You can actually read wtmp file ..&lt;BR /&gt;# cd /var/adm&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; wtmp&lt;BR /&gt;&lt;BR /&gt;That should give you some idea what's filling up.</description>
    <pubDate>Thu, 11 Apr 2002 20:01:17 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-04-11T20:01:17Z</dc:date>
    <item>
      <title>wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701907#M58087</link>
      <description>The wtmp file under /var/adm/ is filing up my file system. I have some Network Management Software that uses remshell to poll my server from a remote box. This file just started filling up at a rate of about 1 remshd every 3 seconds. Any ideas on how I can go about troubleshooting the culprit?</description>
      <pubDate>Thu, 11 Apr 2002 19:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701907#M58087</guid>
      <dc:creator>Patrick Ferguson</dc:creator>
      <dc:date>2002-04-11T19:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701908#M58088</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Check the output of 'last'. This searches /var/adm/wtmp file and you can find out the issue.&lt;BR /&gt;&lt;BR /&gt;# man last&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Thu, 11 Apr 2002 19:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701908#M58088</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-04-11T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701909#M58089</link>
      <description>You can actually read wtmp file ..&lt;BR /&gt;# cd /var/adm&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; wtmp&lt;BR /&gt;&lt;BR /&gt;That should give you some idea what's filling up.</description>
      <pubDate>Thu, 11 Apr 2002 20:01:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701909#M58089</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-11T20:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701910#M58090</link>
      <description>Hi Patrick:&lt;BR /&gt;&lt;BR /&gt;If present, this file will grow indefinitely.&lt;BR /&gt;&lt;BR /&gt;If you merely want to "zero" the file after examining it (with 'last') then the proper way is to direct /dev/null into it so that the file descriptor to the file remains the same: &lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp &lt;BR /&gt;&lt;BR /&gt;If you never care about last logins, you can remove the file entirely. This will stop its creation and any I/O to it. Then, if you want to use it later, touch it (or direct /dev/null to it); set its ownership to "root" and make its permissions 644. &lt;BR /&gt;&lt;BR /&gt;If you wish to retain a portion of the file, you can do this:&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;This converts the binary file to an ASCII formatted one which you may edit and convert back to binary: &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;You can perform similar manipulations with the 'btmp' data for "bad" logins.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Apr 2002 20:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701910#M58090</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-04-11T20:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701911#M58091</link>
      <description>You may want to create a script and put it in cron to clean out the wtmp file. Something like this.&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;&amp;gt;/var/adm/wmtp 1&amp;gt;&amp;amp;- 2&amp;gt;&amp;amp;-</description>
      <pubDate>Thu, 11 Apr 2002 20:10:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701911#M58091</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2002-04-11T20:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701912#M58092</link>
      <description>Like all Unix systems, the logfiles will grow without bounds. There is nothing wrong with the remsh filling up wtmp, in fact, it's important to know who is connecting to your system.&lt;BR /&gt;&lt;BR /&gt;But you must manage all the logfiles all the time, a job for cron.  First decide what information you must retain, then based on the rate at which the logfiles grow, a cron script will extract needed info, then copy the logfile, compress it and then zero the current logfile. You may want to keep 3 to 9 weeks of old logfiles for security and troubleshooting.&lt;BR /&gt;&lt;BR /&gt;Logfiles you need to monitor in /var/adm:&lt;BR /&gt;&lt;BR /&gt;wtmp btmp nettl.LOG00&lt;BR /&gt;&lt;BR /&gt;and in /var/adm/syslog:&lt;BR /&gt;&lt;BR /&gt;mail.log syslog.log&lt;BR /&gt;&lt;BR /&gt;There are many others but their growth depends on what you are running on your system.</description>
      <pubDate>Fri, 12 Apr 2002 02:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701912#M58092</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-04-12T02:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701913#M58093</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i regularly use SAM to manage my system logfiles.&lt;BR /&gt;-&amp;gt;SAM Areas-&amp;gt;Routine Tasks-&amp;gt;System Log Files &lt;BR /&gt;&lt;BR /&gt;Also, i have regular cronjobs that verify and trim some of them.&lt;BR /&gt;&lt;BR /&gt;All you need is to identify these files and devise a strategy for verification and purging(automated or manual).&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 12 Apr 2002 04:00:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp/m-p/2701913#M58093</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-04-12T04:00:31Z</dc:date>
    </item>
  </channel>
</rss>

