<?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 log in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359106#M345893</link>
    <description>You will have to use fwtmp(1M), then edit the file, then use fwtmp(1M) again:&lt;BR /&gt;/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; wtmp.cpy&lt;BR /&gt;delete old stuff in wtmp.cpy&lt;BR /&gt;/usr/sbin/acct/fwtmp -ic &amp;lt; wtmp.cpy  &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Add -X if editing wtmps.&lt;BR /&gt;You may lose info during this three step window.</description>
    <pubDate>Mon, 16 Feb 2009 07:24:23 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-02-16T07:24:23Z</dc:date>
    <item>
      <title>last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359105#M345892</link>
      <description>I know the command "last" can show the user login record , so now when I use this command , it shows the user login record in this half year ( I didn't clear it for half year ) , can advise if I  want clear the old record so that it only show the record from 1-feb-09 (  that mean clear the record before 1-feb-09 ) , what can i do ?</description>
      <pubDate>Mon, 16 Feb 2009 06:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359105#M345892</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-02-16T06:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359106#M345893</link>
      <description>You will have to use fwtmp(1M), then edit the file, then use fwtmp(1M) again:&lt;BR /&gt;/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; wtmp.cpy&lt;BR /&gt;delete old stuff in wtmp.cpy&lt;BR /&gt;/usr/sbin/acct/fwtmp -ic &amp;lt; wtmp.cpy  &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Add -X if editing wtmps.&lt;BR /&gt;You may lose info during this three step window.</description>
      <pubDate>Mon, 16 Feb 2009 07:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359106#M345893</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-16T07:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359107#M345894</link>
      <description>thx reply,&lt;BR /&gt;&lt;BR /&gt;the comamand seems could be run in hp server , can advise if I want to do it at other unix-like server , what can i do ? thx</description>
      <pubDate>Wed, 18 Feb 2009 08:02:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359107#M345894</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-02-18T08:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359108#M345895</link>
      <description>besically you need to modify below file which is data file.&lt;BR /&gt;&lt;BR /&gt;/var/adm/wtmp which contain all records for this command.</description>
      <pubDate>Wed, 18 Feb 2009 08:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359108#M345895</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-02-18T08:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359109#M345896</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;can advise how to modify the file wtmp ?</description>
      <pubDate>Wed, 18 Feb 2009 09:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359109#M345896</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-02-18T09:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359110#M345897</link>
      <description>You can purge the file.&lt;BR /&gt;&lt;BR /&gt;#&amp;gt; {file name}&lt;BR /&gt;but it will remove all data...and you will get log from now.</description>
      <pubDate>Wed, 18 Feb 2009 09:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359110#M345897</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-02-18T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359111#M345898</link>
      <description>thx , &lt;BR /&gt;&lt;BR /&gt;but how can I purge the data before 1-Feb ?</description>
      <pubDate>Wed, 18 Feb 2009 09:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359111#M345898</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-02-18T09:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359112#M345899</link>
      <description>&amp;gt;can advise if I want to do it at other unix-like server, what can i do?&lt;BR /&gt;&lt;BR /&gt;There are no other Unix-like servers except for HP-UX or Linux.  :-)&lt;BR /&gt;You will have to look that info up elsewhere but fwtmp(1M) says it is standard.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;can advise how to modify the file wtmp?&lt;BR /&gt;&lt;BR /&gt;I told you, use fwtmp(1M) to convert to ascii, then edit, then convert back.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but how can I purge the data before 1-Feb?&lt;BR /&gt;&lt;BR /&gt;You have to edit the ascii version.  Either vi or with sed or awk.&lt;BR /&gt;Create the ascii file and see how hard it will be.</description>
      <pubDate>Wed, 18 Feb 2009 11:44:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359112#M345899</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-18T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359113#M345900</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;I really can't find the command fwtmp in my linux box , also can't find it at rpmfind , can advise if there is other method to do that ? thx</description>
      <pubDate>Thu, 19 Feb 2009 07:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359113#M345900</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-02-19T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359114#M345901</link>
      <description>&amp;gt;I really can't find the command fwtmp in my linux box&lt;BR /&gt;&lt;BR /&gt;Have you look at the man pages for last, wtmp?&lt;BR /&gt;This is the wrong forum for linux questions.  you have created another thread there:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/categoryhome.do?categoryId=188" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/categoryhome.do?categoryId=188&lt;/A&gt;</description>
      <pubDate>Thu, 19 Feb 2009 07:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359114#M345901</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-02-19T07:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359115#M345902</link>
      <description>thx a lot</description>
      <pubDate>Thu, 19 Feb 2009 07:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359115#M345902</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-02-19T07:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: last log</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359116#M345903</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Maybe this simple command will help you.&lt;BR /&gt;&lt;BR /&gt;last | sed -n '1,/Feb  9/p'&lt;BR /&gt;&lt;BR /&gt;Becareful Feb  9 has separate by two spaces !&lt;BR /&gt;Command last display the record from most recently event.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Roland</description>
      <pubDate>Thu, 19 Feb 2009 09:56:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-log/m-p/4359116#M345903</guid>
      <dc:creator>Roland Piette</dc:creator>
      <dc:date>2009-02-19T09:56:22Z</dc:date>
    </item>
  </channel>
</rss>

