<?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: wtmpx in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243237#M470076</link>
    <description>You can use below script to trim it :&lt;BR /&gt;&lt;BR /&gt;Triming a log file :&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;# trimlog&lt;BR /&gt;filesize=`cat $1|wc -l`&lt;BR /&gt;trim=`expr $filesize - $2`&lt;BR /&gt;if [ $trim -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;sed "1,$trim d" $1 &amp;gt; /tmp/$1&lt;BR /&gt;mv /tmp/$1 $1&lt;BR /&gt;echo $1 trimmed by $trim lines&lt;BR /&gt;fi &lt;BR /&gt;&lt;BR /&gt;sysntax :&lt;BR /&gt;# trimlog oracle_listener.log 10000</description>
    <pubDate>Thu, 10 Jun 2010 12:28:52 GMT</pubDate>
    <dc:creator>singh sanjeev</dc:creator>
    <dc:date>2010-06-10T12:28:52Z</dc:date>
    <item>
      <title>wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243232#M470071</link>
      <description>Attempting to trim wtmpx. Any ideas? Thanks!</description>
      <pubDate>Thu, 10 Jun 2010 11:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243232#M470071</guid>
      <dc:creator>DW1234</dc:creator>
      <dc:date>2010-06-10T11:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243233#M470072</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Define "trim".  Do you want to truncate the whole file or save some portion?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 10 Jun 2010 11:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243233#M470072</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-10T11:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243234#M470073</link>
      <description>this command will not effect your system, but you will loss all the information of user who logged in your server before</description>
      <pubDate>Thu, 10 Jun 2010 11:59:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243234#M470073</guid>
      <dc:creator>singh sanjeev</dc:creator>
      <dc:date>2010-06-10T11:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243235#M470074</link>
      <description>I would like to save some portion</description>
      <pubDate>Thu, 10 Jun 2010 12:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243235#M470074</guid>
      <dc:creator>DW1234</dc:creator>
      <dc:date>2010-06-10T12:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243236#M470075</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;To keep only some of the data you will need to do:&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmps &amp;gt; /tmp/wtmps&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/wtmps &amp;gt; /var/adm/wtmps&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 10 Jun 2010 12:13:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243236#M470075</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-10T12:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243237#M470076</link>
      <description>You can use below script to trim it :&lt;BR /&gt;&lt;BR /&gt;Triming a log file :&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;# trimlog&lt;BR /&gt;filesize=`cat $1|wc -l`&lt;BR /&gt;trim=`expr $filesize - $2`&lt;BR /&gt;if [ $trim -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;sed "1,$trim d" $1 &amp;gt; /tmp/$1&lt;BR /&gt;mv /tmp/$1 $1&lt;BR /&gt;echo $1 trimmed by $trim lines&lt;BR /&gt;fi &lt;BR /&gt;&lt;BR /&gt;sysntax :&lt;BR /&gt;# trimlog oracle_listener.log 10000</description>
      <pubDate>Thu, 10 Jun 2010 12:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243237#M470076</guid>
      <dc:creator>singh sanjeev</dc:creator>
      <dc:date>2010-06-10T12:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243238#M470077</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;@ Singh:  You can't trim the 'wtmp*' files using tools like 'sed'.  They are binary files, not text files.  Other than using tools that understand their structure (notably 'fwtmp') you would need to roll-you-own with something like Perl.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 10 Jun 2010 12:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243238#M470077</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-10T12:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243239#M470078</link>
      <description>thanks JRF...for valuable information.</description>
      <pubDate>Thu, 10 Jun 2010 14:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243239#M470078</guid>
      <dc:creator>singh sanjeev</dc:creator>
      <dc:date>2010-06-10T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243240#M470079</link>
      <description>Thanks Everyone! Been a great help!</description>
      <pubDate>Thu, 10 Jun 2010 17:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243240#M470079</guid>
      <dc:creator>DW1234</dc:creator>
      <dc:date>2010-06-10T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243241#M470080</link>
      <description>Thanks Everyone!</description>
      <pubDate>Thu, 10 Jun 2010 17:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243241#M470080</guid>
      <dc:creator>DW1234</dc:creator>
      <dc:date>2010-06-10T17:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: wtmpx</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243242#M470081</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Thanks Everyone!&lt;BR /&gt;&lt;BR /&gt;If you are satisfied with the answers you received, please read:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/publicProfile.do?userId=WW423716&amp;amp;forumId=1" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/publicProfile.do?userId=WW423716&amp;amp;forumId=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can find your questions with their unassigned points here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/pageList.do?userId=WW423716&amp;amp;listType=unassigned&amp;amp;forumId=1" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/pageList.do?userId=WW423716&amp;amp;listType=unassigned&amp;amp;forumId=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 10 Jun 2010 17:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/wtmpx/m-p/5243242#M470081</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-10T17:39:30Z</dc:date>
    </item>
  </channel>
</rss>

