<?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 11.31 wtmp/wtmpfix mysteries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-wtmp-wtmpfix-musteries/m-p/5481449#M477765</link>
    <description>&lt;P&gt;&amp;gt;can anyone explain to me the current files used in 11.31 when it comes down to where account info is logged etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The man pages seem to say it is written out to wtmps and btmps.&amp;nbsp; And for the currently logged on info, it is in utmpd(1m).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;-proper way to go about fixing corruption&amp;nbsp; (wtmpfix may not be answer anymore)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corruption in what file(s)?&amp;nbsp; wtmps(4)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;-can I get a clear definition of what updates what and if version level dictate what files are involved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume utmpd(1m) updates utmps(4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;-utmpd is still the main process?&amp;nbsp; (stop then fix file? what file? then restart)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You fix utmps(4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;1. test wtmpfix/fwtmp -X behavior on test box and then use it to fix any corruption on production box, explain to sec team that the corruption has to be addressed by using HP commands on these files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What corruption?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;2. wait for next reboot and zero out all those files in single user to clear any corruption&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think you need to wait.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Example of error fix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see any errors?&amp;nbsp; x.log seem fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;with an client that wants me to read the manpages for them, and I have but still a bit muddy for myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the problem?&amp;nbsp; Does last(1) or lastb(1) show any problems?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2012 05:13:09 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2012-01-12T05:13:09Z</dc:date>
    <item>
      <title>HP UX 11.31 wtmp/wtmpfix musteries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-wtmp-wtmpfix-musteries/m-p/5481063#M477763</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am perplexed as to what exactly is current with 11.31 and have mixed responses from peers and research.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone explain to me the current files used in 11.31 when it comes down to where account info is logged etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;client info:&lt;/P&gt;&lt;P&gt;CONFIGURATION&lt;/P&gt;&lt;P&gt;Server model (model): ia64 hp server rx8640&lt;/P&gt;&lt;P&gt;Operating system (uname -a):HP-UX B.11.31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;client claims not updating as far as finger/last/who being in sync.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is normal and have heard of a patch coming to help soon.&lt;/P&gt;&lt;P&gt;But I am confused as to :&lt;/P&gt;&lt;P&gt;-what files are actually in scope (being updated)&lt;/P&gt;&lt;P&gt;-proper way to go about fixing corruption&amp;nbsp; (wtmpfix may not be answer anymore)&lt;/P&gt;&lt;P&gt;-can I get a clear definition of what updates what and if version level dictate what files are involved.&lt;/P&gt;&lt;P&gt;-patches for 11.31?&lt;/P&gt;&lt;P&gt;-utmpd is still the main process?&amp;nbsp; (stop then fix file? what file? then restart)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what we have tried so far:&lt;/P&gt;&lt;P&gt;Here are our options as I see them.&lt;/P&gt;&lt;P&gt;1. test wtmpfix/fwtmp -X behavior on test box and then use it to fix any corruption on production box, explain to sec team that the corruption has to be addressed by using hp commands on these files&lt;/P&gt;&lt;P&gt;2. wait for next reboot and zero out all those files in single user to clear any corruption&lt;/P&gt;&lt;P&gt;3. leave the files as they are and don't use accounting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of error fix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hputairl:/tmp# mkdir /tmp/wtmptest&lt;/P&gt;&lt;P&gt;hputairl:/tmp# cd /tmp/wtmptest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hputairl:/tmp/wtmptest# uname -a&lt;/P&gt;&lt;P&gt;HP-UX hputairl B.11.31 U ia64 2249887032 unlimited-user license&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hputairl:/tmp/wtmptest# cp /var/adm/wtmps .&lt;/P&gt;&lt;P&gt;hputairl:/tmp/wtmptest# ll&lt;/P&gt;&lt;P&gt;total 5776&lt;/P&gt;&lt;P&gt;-rw-rw-r--&amp;nbsp;&amp;nbsp; 1 root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2952908 Mar 18 12:36 wtmps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hputairl:/tmp/wtmptest# cat wtmps | /usr/sbin/acct/fwtmp -X &amp;gt; x.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hputairl:/tmp/wtmptest# head -3 x.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;system boot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 2 0000 0000 1227700828 0 Nov 26 20:00:28 2008 0&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;run-level 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1 0063 0123 1227700828 0 Nov 26 20:00:28 2008 0&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vxenable vxen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 145&amp;nbsp; 5 0000 0000 1227700828 0 Nov 26 20:00:28 2008 0&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hputairl:/tmp/wtmptest# tail -3 x.log&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; td&amp;nbsp;&amp;nbsp; pts/td&amp;nbsp;&amp;nbsp;&amp;nbsp; 24665&amp;nbsp; 8 0000 0000 1268881158 0 Mar 18 10:59:18 2010 0&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOGIN&amp;nbsp;&amp;nbsp;&amp;nbsp; td&amp;nbsp;&amp;nbsp; pts/td&amp;nbsp;&amp;nbsp;&amp;nbsp; 25761&amp;nbsp; 6 0000 0000 1268886532 0 Mar 18 12:28:52 2010 0 16.157.167.114 fantasia.asiapacific.hpqcorp.net&lt;/P&gt;&lt;P&gt;root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; td&amp;nbsp;&amp;nbsp; pts/td&amp;nbsp;&amp;nbsp;&amp;nbsp; 25761&amp;nbsp; 7 0000 0003 1268886537 0 Mar 18 12:28:57 2010 0 16.157.167.114 fantasia.asiapacific.hpqcorp.net&lt;/P&gt;&lt;P&gt;hputairl:/tmp/wtmptest# exit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if confused I am very sorry but someboby with knowledge probebly knows the headache I am going through with an client that wants me to read the manpages for them,&amp;nbsp; and I have but still a bit muddy for myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2012 23:00:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-wtmp-wtmpfix-musteries/m-p/5481063#M477763</guid>
      <dc:creator>gr8_lkr</dc:creator>
      <dc:date>2012-01-11T23:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX 11.31 wtmp/wtmpfix mysteries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-wtmp-wtmpfix-musteries/m-p/5481449#M477765</link>
      <description>&lt;P&gt;&amp;gt;can anyone explain to me the current files used in 11.31 when it comes down to where account info is logged etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The man pages seem to say it is written out to wtmps and btmps.&amp;nbsp; And for the currently logged on info, it is in utmpd(1m).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;-proper way to go about fixing corruption&amp;nbsp; (wtmpfix may not be answer anymore)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corruption in what file(s)?&amp;nbsp; wtmps(4)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;-can I get a clear definition of what updates what and if version level dictate what files are involved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume utmpd(1m) updates utmps(4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;-utmpd is still the main process?&amp;nbsp; (stop then fix file? what file? then restart)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You fix utmps(4).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;1. test wtmpfix/fwtmp -X behavior on test box and then use it to fix any corruption on production box, explain to sec team that the corruption has to be addressed by using HP commands on these files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What corruption?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;2. wait for next reboot and zero out all those files in single user to clear any corruption&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think you need to wait.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;Example of error fix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see any errors?&amp;nbsp; x.log seem fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;with an client that wants me to read the manpages for them, and I have but still a bit muddy for myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the problem?&amp;nbsp; Does last(1) or lastb(1) show any problems?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2012 05:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-11-31-wtmp-wtmpfix-musteries/m-p/5481449#M477765</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2012-01-12T05:13:09Z</dc:date>
    </item>
  </channel>
</rss>

