<?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 wtmp file shows incorrect dates in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243033#M677113</link>
    <description>I am running HP-UX 11iv2 (11.23) on several Itanium boxes.  I have a job that runs on a daily basis to trim the wtmp and btmp files to keep only the last 30 days.  The script has always run fine on the PA-RISC systems and on most of the Itanium systems.  Just these half-dozen or so.  Output from "last" looks fine, but when I convert wtmp to ASCII using /usr/sbin/acct/fwtmp, the dates for the entries are all "Dec 31 18:00:00 1969" with a bogus IP address for the connection.  Anyone know why the epoch date is showing up instead of the current dates?  It kind of messes with the script that trims by dates, KWIM?</description>
    <pubDate>Wed, 30 Jul 2008 15:30:07 GMT</pubDate>
    <dc:creator>Karen Birkelbach</dc:creator>
    <dc:date>2008-07-30T15:30:07Z</dc:date>
    <item>
      <title>wtmp file shows incorrect dates</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243033#M677113</link>
      <description>I am running HP-UX 11iv2 (11.23) on several Itanium boxes.  I have a job that runs on a daily basis to trim the wtmp and btmp files to keep only the last 30 days.  The script has always run fine on the PA-RISC systems and on most of the Itanium systems.  Just these half-dozen or so.  Output from "last" looks fine, but when I convert wtmp to ASCII using /usr/sbin/acct/fwtmp, the dates for the entries are all "Dec 31 18:00:00 1969" with a bogus IP address for the connection.  Anyone know why the epoch date is showing up instead of the current dates?  It kind of messes with the script that trims by dates, KWIM?</description>
      <pubDate>Wed, 30 Jul 2008 15:30:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243033#M677113</guid>
      <dc:creator>Karen Birkelbach</dc:creator>
      <dc:date>2008-07-30T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp file shows incorrect dates</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243034#M677114</link>
      <description>Hi Karen:&lt;BR /&gt;&lt;BR /&gt;If this is one of the servers on which you trimmed the file, I would guess that your trimming corrupted the file.  You might want to empty the file and start again:&lt;BR /&gt;&lt;BR /&gt;# cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;You might also provide more details (a script) that shows *how* you trim.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Jul 2008 15:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243034#M677114</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-30T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp file shows incorrect dates</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243035#M677115</link>
      <description>&lt;!--!*#--&gt;I've already zero-ed out the wtmp file and when I checked it again, it was set to the epoch:&lt;BR /&gt;&lt;BR /&gt;root &amp;gt;last&lt;BR /&gt;user pts/1        Wed Jul 30 11:22   still logged in&lt;BR /&gt;&lt;BR /&gt;WTMPS_FILE  begins at Wed Jul 30 11:22:03 &lt;BR /&gt;root &amp;gt;/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp&lt;BR /&gt;user 1    pts/1         1961  7 0000 0000 0 Dec 31 18:00:00 1969 99.112.115.45</description>
      <pubDate>Wed, 30 Jul 2008 16:00:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243035#M677115</guid>
      <dc:creator>Karen Birkelbach</dc:creator>
      <dc:date>2008-07-30T16:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: wtmp file shows incorrect dates</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243036#M677116</link>
      <description>&amp;gt;I've already zero-ed out the wtmp file and when I checked it again&lt;BR /&gt;&lt;BR /&gt;You may have to kill utmpd(1m), trim then restart it.</description>
      <pubDate>Thu, 31 Jul 2008 03:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmp-file-shows-incorrect-dates/m-p/4243036#M677116</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-31T03:04:05Z</dc:date>
    </item>
  </channel>
</rss>

