<?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: last command not working? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311846#M339533</link>
    <description>Note there are two wtmp* files.  Have you tried wtmps?&lt;BR /&gt;last -X -f /var/adm/wtmps</description>
    <pubDate>Mon, 24 Nov 2008 22:35:03 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-11-24T22:35:03Z</dc:date>
    <item>
      <title>last command not working?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311841#M339528</link>
      <description>On one of rx8620 server running HP-UX 11.23, last command is not running. It gives the following error:&lt;BR /&gt;&lt;BR /&gt;last&lt;BR /&gt;Invalid record size. Unable to continue ..&lt;BR /&gt;&lt;BR /&gt;I have strings wtmp, its giving normal output.&lt;BR /&gt;&lt;BR /&gt;Can some one give me some clue.</description>
      <pubDate>Mon, 24 Nov 2008 14:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311841#M339528</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2008-11-24T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: last command not working?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311842#M339529</link>
      <description>still doesn't mean that corrupt record(s) don't exist in wtmp.  &lt;BR /&gt;&lt;BR /&gt;"last" expects records in a specific format, while "strings" simply reads a record and translates to printable, having no knowledge of any specific record format.</description>
      <pubDate>Mon, 24 Nov 2008 14:47:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311842#M339529</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-11-24T14:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: last command not working?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311843#M339530</link>
      <description>Can we fix it?</description>
      <pubDate>Mon, 24 Nov 2008 14:49:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311843#M339530</guid>
      <dc:creator>Waqar Razi</dc:creator>
      <dc:date>2008-11-24T14:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: last command not working?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311844#M339531</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to empty the file and do not need the existing informations.&lt;BR /&gt;&lt;BR /&gt;   # cat /dev/null &amp;gt; /var/adm/wtmp &lt;BR /&gt;            or&lt;BR /&gt;   # &amp;gt;/var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;If you want to fix the wtmp file, refer below threat.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1227538440018+28353475&amp;amp;threadId=1003618" target="_blank"&gt;http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1227538440018+28353475&amp;amp;threadId=1003618&lt;/A&gt;</description>
      <pubDate>Mon, 24 Nov 2008 14:56:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311844#M339531</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-11-24T14:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: last command not working?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311845#M339532</link>
      <description>Hi Wagar:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Can we fix it?&lt;BR /&gt;&lt;BR /&gt;Either trim the 'wtmp'file to null and let it begin accumulating data again, or trim the file *until* your inability to run 'last' vanishes:&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;...edit text and rebuild 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;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 24 Nov 2008 14:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311845#M339532</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-24T14:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: last command not working?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311846#M339533</link>
      <description>Note there are two wtmp* files.  Have you tried wtmps?&lt;BR /&gt;last -X -f /var/adm/wtmps</description>
      <pubDate>Mon, 24 Nov 2008 22:35:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311846#M339533</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-24T22:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: last command not working?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311847#M339534</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think last command is not able to read /var/adm/wtmp better trim your wtmp file and check &lt;BR /&gt;to trim wtmp I am using :&lt;BR /&gt;&lt;BR /&gt;&amp;gt;/var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;logout from server then login and try last command.&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Nov 2008 07:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command-not-working/m-p/4311847#M339534</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2008-11-25T07:08:01Z</dc:date>
    </item>
  </channel>
</rss>

