<?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: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217658#M466201</link>
    <description>&amp;gt;last -f /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;This should work but typically this file only has "system boot" in it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;last command without the -f switch&lt;BR /&gt;&lt;BR /&gt;There are three types of wtmp files.&lt;BR /&gt;last(1) looks at wtmps.  With -f it looks at wtmp.  And with -X wtmps.&lt;BR /&gt;&lt;BR /&gt;If you don't have the right options, the file will look corrupt.</description>
    <pubDate>Fri, 08 Jan 2010 09:30:25 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-01-08T09:30:25Z</dc:date>
    <item>
      <title>HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217650#M466193</link>
      <description>Good day &lt;BR /&gt;&lt;BR /&gt;MY hosts seem to be corrupting the /var/adm/wtmp and wtmps files.&lt;BR /&gt;&lt;BR /&gt;I get the following issue&lt;BR /&gt;&lt;BR /&gt;hptest1131:/var/adm#last -f /var/adm/wtmp&lt;BR /&gt;zaopsman pts/3        Thu Jan  1 02:00   still logged in&lt;BR /&gt;pid exceeds MAXPID: wtmp file corrupted&lt;BR /&gt;hptest1131:/var/adm#last -f /var/adm/wtmps&lt;BR /&gt;reboot                Thu Jan  1 02:00   still logged in&lt;BR /&gt;pid exceeds MAXPID: wtmp file corrupted&lt;BR /&gt;&lt;BR /&gt;I have tried all the standard fixes &lt;BR /&gt;(after making backup copies of the files of course)&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/utmpd stop&lt;BR /&gt;&amp;gt; /var/adm/wtmp&lt;BR /&gt;&amp;gt; /var/adm/wtmps&lt;BR /&gt;&amp;gt; /var/adm/btmp&lt;BR /&gt;&amp;gt; /var/adm/btmps&lt;BR /&gt;&lt;BR /&gt;then touch the files again.&lt;BR /&gt;/sbin/init.d/utmpd &lt;BR /&gt;&lt;BR /&gt;the first couple of times that I do a last -f /var/adm/wtmps it is fine.&lt;BR /&gt;After a minute or so the files show as corrupt again .&lt;BR /&gt;&lt;BR /&gt;However to confuse the issue the last command without the -f switch shows the correct data with no mention of corruption.&lt;BR /&gt;&lt;BR /&gt;I then tried some more desperate measures.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/utmpd stop&lt;BR /&gt;&amp;gt; /var/adm/wtmp&lt;BR /&gt;&amp;gt; /var/adm/wtmps&lt;BR /&gt;&amp;gt; /var/adm/btmp&lt;BR /&gt;&amp;gt; /var/adm/btmps&lt;BR /&gt;&amp;gt; /var/adm/wtmpx&lt;BR /&gt;rm /etc/utmp /etc/utmps /etc/utmpx&lt;BR /&gt;touch /etc/utmp /etc/utmps /etc/utmpx&lt;BR /&gt;/sbin/init.d/utmpd start&lt;BR /&gt;&lt;BR /&gt;same behaviour , fine for a minute or two , then the file shows as corrupt.&lt;BR /&gt;&lt;BR /&gt;the same behaviour results if you issue the last-f command against a copy of the file.&lt;BR /&gt;If I do a fuser against the copied file nothing as it open.&lt;BR /&gt;&lt;BR /&gt;I have also searched for patches for this issue , I could see none that applied.&lt;BR /&gt;&lt;BR /&gt;Any suggestions would be appreciated.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2010 13:11:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217650#M466193</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-07T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217651#M466194</link>
      <description>&amp;gt;pid exceeds MAXPID: wtmp file corrupted&lt;BR /&gt;&lt;BR /&gt;Any guesses as to why this might be happening?  What is MAXPID set to?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 07 Jan 2010 13:47:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217651#M466194</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-01-07T13:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217652#M466195</link>
      <description>William,&lt;BR /&gt;&lt;BR /&gt;Have a look at this thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1003618" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1003618&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 07 Jan 2010 14:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217652#M466195</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2010-01-07T14:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217653#M466196</link>
      <description>should be no higher than 30 000.&lt;BR /&gt;&lt;BR /&gt;hptest1131:/var/adm#kctune kctune process_id_max&lt;BR /&gt;Tunable         Value  Expression  Changes&lt;BR /&gt;process_id_max  30000  Default     Auto&lt;BR /&gt;hptest1131:/var/adm#kctune process_id_min&lt;BR /&gt;Tunable         Value  Expression  Changes&lt;BR /&gt;process_id_min      0  Default     Auto&lt;BR /&gt;hptest1131:/var/adm#kctune nproc&lt;BR /&gt;Tunable  Value  Expression  Changes&lt;BR /&gt;nproc    30000  30000       Immed&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2010 14:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217653#M466196</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-07T14:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217654#M466197</link>
      <description>I have tried converting the files to asci using fwtmp.&lt;BR /&gt;the files appear to be corrupt , as most of the entries have a date of Jan 1 1970&lt;BR /&gt;&lt;BR /&gt;username                       0  0 0000 0000 0 Jan  1 02:00:00 1970&lt;BR /&gt;&lt;BR /&gt;fwtmpfix , on a system with a large enough /tmp , breaks halfway through.&lt;BR /&gt;&lt;BR /&gt;Even if I wipe all the files and start from scratch , as per the entry above , the new file is corrupted within a minute.&lt;BR /&gt;&lt;BR /&gt;this is happening on 4 seperate hosts all running the same OS revision.&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2010 14:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217654#M466197</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-07T14:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217655#M466198</link>
      <description>MY apologies , the OS involved is HP-UX 11V3&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2010 14:19:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217655#M466198</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-07T14:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217656#M466199</link>
      <description>This could have been happening for a while as I quite rarely access the archived files.&lt;BR /&gt;&lt;BR /&gt;The issue would not be visible until you tried to access a old wtmps file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2010 14:22:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217656#M466199</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-07T14:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217657#M466200</link>
      <description>Below see the results of running the wtmpfix against one of the files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/acct/wtmpfix /STATIC/wtmpfiles/wtmps &amp;gt; wtmps.fixed&lt;BR /&gt;Unable to write record to output file. Exiting ...&lt;BR /&gt;&lt;BR /&gt;ll wtmps.fixed&lt;BR /&gt;-rw-r-----   1 root       sys        371714980 Jan  7 16:18 wtmps.fixed&lt;BR /&gt;&lt;BR /&gt;last -f STATIC/wtmpfiles&lt;BR /&gt;pid exceeds MAXPID: wtmp file corrupted&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2010 14:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217657#M466200</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-07T14:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217658#M466201</link>
      <description>&amp;gt;last -f /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;This should work but typically this file only has "system boot" in it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;last command without the -f switch&lt;BR /&gt;&lt;BR /&gt;There are three types of wtmp files.&lt;BR /&gt;last(1) looks at wtmps.  With -f it looks at wtmp.  And with -X wtmps.&lt;BR /&gt;&lt;BR /&gt;If you don't have the right options, the file will look corrupt.</description>
      <pubDate>Fri, 08 Jan 2010 09:30:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217658#M466201</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-08T09:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217659#M466202</link>
      <description>Thanks Dennis&lt;BR /&gt;&lt;BR /&gt;The -X option does not report corruption , but it also gives no data back.&lt;BR /&gt;&lt;BR /&gt;last -X /var/adm/wtmps&lt;BR /&gt;&lt;BR /&gt;WTMPS_FILE  begins at Sat Jan 12 22:27:43&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;when combined with -f it comes back with invalid record size.&lt;BR /&gt;last -f /SCRATCH/wtmpfx/wtmp -X /SCRATCH/wtmpfx/wtmps&lt;BR /&gt;Invalid record size. Unable to continue ...&lt;BR /&gt;&lt;BR /&gt;However If I replace the existing wtmps file with the restored one the last command reports on all the data as expected.&lt;BR /&gt;&lt;BR /&gt;That will suffice , as i can then restore the file to a test system, get the data  , and remove the old one once I have the data required.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jan 2010 10:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217659#M466202</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-08T10:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217660#M466203</link>
      <description>&amp;gt;The -X option does not report corruption, but it also gives no data back.&lt;BR /&gt;&lt;BR /&gt;You need to read last(1).  The syntax is:&lt;BR /&gt;last -X -f /SCRATCH/wtmpfx/wtmps</description>
      <pubDate>Fri, 08 Jan 2010 16:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217660#M466203</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-01-08T16:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217661#M466204</link>
      <description>Thank you VERY much Dennis.&lt;BR /&gt;That sorted it out.&lt;BR /&gt;&lt;BR /&gt;I misread the last man page, my Apologies for that.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2010 12:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217661#M466204</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-13T12:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11V3 Itanium and PARISC last -f /var/adm/wtmps fails</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217662#M466205</link>
      <description>The last -X -f filename works on the wtmps file format.&lt;BR /&gt;Thank you very much for the assistance</description>
      <pubDate>Wed, 13 Jan 2010 12:17:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11v3-itanium-and-parisc-last-f-var-adm-wtmps-fails/m-p/5217662#M466205</guid>
      <dc:creator>William Henry Andrews</dc:creator>
      <dc:date>2010-01-13T12:17:03Z</dc:date>
    </item>
  </channel>
</rss>

