<?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: lastb error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751263#M70236</link>
    <description>This might be becuase you have a corrupt wtmp file. Check if /var maybe is full.&lt;BR /&gt;&lt;BR /&gt;what I suggest is either try using wtmpfix or else flush the current wtmp. take a copy of the current wtmp say move it to wtmp.old then flush the file using " cat /dev/null &amp;gt; /var/adm/wtmp "&lt;BR /&gt;&lt;BR /&gt;do not delete the file and re-create manually. IT will not work. &lt;BR /&gt;&lt;BR /&gt;to read the contents of the old file i.e. wtmp.old try &lt;BR /&gt;&lt;BR /&gt;#/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/outfile then read the file&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Stefan&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 25 Jun 2002 06:18:33 GMT</pubDate>
    <dc:creator>Stefan Saliba</dc:creator>
    <dc:date>2002-06-25T06:18:33Z</dc:date>
    <item>
      <title>lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751261#M70234</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Getting the following error while trying to execute "lastb" command . Pl suggest a remedy.:-&lt;BR /&gt;&lt;BR /&gt;dbnode:toor-/&amp;gt;lastb&lt;BR /&gt;console               Thu Jan  1 05:00 pid exceeds MAXPID: wtmp file corrupted</description>
      <pubDate>Tue, 25 Jun 2002 06:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751261#M70234</guid>
      <dc:creator>deepak_9</dc:creator>
      <dc:date>2002-06-25T06:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751262#M70235</link>
      <description>Hi Deepak,&lt;BR /&gt;&lt;BR /&gt;the message tells you your problem: A corrupted wtmp- file. You could try to fix the problem with the wtmpfix- command. More information in:&lt;BR /&gt;&lt;BR /&gt;man wtmp&lt;BR /&gt;man utmp&lt;BR /&gt;&lt;BR /&gt;Do you use ITO/OVO? Then call your support, they made a tool to repair these files....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 06:15:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751262#M70235</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-06-25T06:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751263#M70236</link>
      <description>This might be becuase you have a corrupt wtmp file. Check if /var maybe is full.&lt;BR /&gt;&lt;BR /&gt;what I suggest is either try using wtmpfix or else flush the current wtmp. take a copy of the current wtmp say move it to wtmp.old then flush the file using " cat /dev/null &amp;gt; /var/adm/wtmp "&lt;BR /&gt;&lt;BR /&gt;do not delete the file and re-create manually. IT will not work. &lt;BR /&gt;&lt;BR /&gt;to read the contents of the old file i.e. wtmp.old try &lt;BR /&gt;&lt;BR /&gt;#/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/outfile then read the file&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Stefan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 06:18:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751263#M70236</guid>
      <dc:creator>Stefan Saliba</dc:creator>
      <dc:date>2002-06-25T06:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751264#M70237</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have a look at the man page for 'fwtmp'&lt;BR /&gt;You have a corrupted wtmp file. &lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 25 Jun 2002 06:20:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751264#M70237</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-06-25T06:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751265#M70238</link>
      <description>Guys,&lt;BR /&gt;&lt;BR /&gt;Have done follwoing things but didn't help.&lt;BR /&gt;&lt;BR /&gt;1] wtmpfix /var/adm/wtmp&lt;BR /&gt;2] &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Still facing the same prob.</description>
      <pubDate>Tue, 25 Jun 2002 06:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751265#M70238</guid>
      <dc:creator>deepak_9</dc:creator>
      <dc:date>2002-06-25T06:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751266#M70239</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;as i know the command lastb refers to /var/adm/btmp (not wtmp).&lt;BR /&gt;The error message to wtmp may be wrong.&lt;BR /&gt;Try to fix the btmp file.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 25 Jun 2002 06:34:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751266#M70239</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-06-25T06:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751267#M70240</link>
      <description>Do you have any messages in your systemlog&lt;BR /&gt;in relation to your 'nproc' not being &lt;BR /&gt;able to create new processes.</description>
      <pubDate>Tue, 25 Jun 2002 06:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751267#M70240</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-06-25T06:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: lastb error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751268#M70241</link>
      <description>Hi,&lt;BR /&gt;I face the same problem on one of our machines.&lt;BR /&gt;If I use commands that seems to do a lookup in the wtmp file - it hangs or return an error message.&lt;BR /&gt;&lt;BR /&gt;uptime and w - cause hang&lt;BR /&gt;last - cause "pid exceeds MAXPID: wtmp file corrupted"&lt;BR /&gt;&lt;BR /&gt;BTW: when you tried the wtmpfix command, did you tried to output the result into the same file that you tried to fix ...???&lt;BR /&gt;&lt;BR /&gt;Have anyone tried&lt;BR /&gt;1) create a fixed copy of wtmp&lt;BR /&gt;wtmpfix -c /var/adm/wtmp &amp;gt; /var/adm/wtmp.fix&lt;BR /&gt;2) backup the old wtmp&lt;BR /&gt;cpio -p /var/adm/wtmp /var/adm/wtmp.old&lt;BR /&gt;&lt;BR /&gt;Then 3a) or 3b)&lt;BR /&gt;3a) put the fixed version into wtmp&lt;BR /&gt;cp /var/adm/wtmp.fix /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;3b) empty the bad versionrm /var/adm/wtmp&lt;BR /&gt;cat /dev/null &amp;gt;/var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;/Tor-Arne</description>
      <pubDate>Thu, 27 Jun 2002 19:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-error/m-p/2751268#M70241</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2002-06-27T19:33:11Z</dc:date>
    </item>
  </channel>
</rss>

