<?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: Managing /var/adm/wtmp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439575#M6828</link>
    <description>I think the fwtmp command may be the one to use here&lt;BR /&gt;do man fwtmp&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Aug 2000 13:50:47 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2000-08-24T13:50:47Z</dc:date>
    <item>
      <title>Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439572#M6825</link>
      <description>What's the best way to delete records from /var/adm/wtmp?  I know I can delete the whole file but I want to keep about a month of data and purge the rest.</description>
      <pubDate>Thu, 24 Aug 2000 13:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439572#M6825</guid>
      <dc:creator>Patrick Bridwell</dc:creator>
      <dc:date>2000-08-24T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439573#M6826</link>
      <description>cat /dev/null &amp;gt; /var/adm/wtmp&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2000 13:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439573#M6826</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-08-24T13:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439574#M6827</link>
      <description>Note that zeroing /var/adm/wtmp on a running&lt;BR /&gt;system may cause errors to be reported from the who command.  These errors&lt;BR /&gt;are caused by who not finding the users currently logged in.  The best way to&lt;BR /&gt;trim /var/adm/wtmp is to do it in single user mode.  Do not zero the&lt;BR /&gt;/etc/utmp...this is done automatically</description>
      <pubDate>Thu, 24 Aug 2000 13:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439574#M6827</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-08-24T13:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439575#M6828</link>
      <description>I think the fwtmp command may be the one to use here&lt;BR /&gt;do man fwtmp&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2000 13:50:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439575#M6828</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2000-08-24T13:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439576#M6829</link>
      <description>Using SAM; Routine Tasks - can trim the file to the recommended size.</description>
      <pubDate>Thu, 24 Aug 2000 13:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439576#M6829</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-24T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439577#M6830</link>
      <description>SAM, to my knowledge, does not allow trimming of binary files. &lt;BR /&gt;&lt;BR /&gt;Assigning /dev/null to the file would wipe out the whole file...I want to keep a months worth of data.&lt;BR /&gt;&lt;BR /&gt;I read the man page on fwtmp but it is not clear on what I should do.</description>
      <pubDate>Thu, 24 Aug 2000 13:59:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439577#M6830</guid>
      <dc:creator>Patrick Bridwell</dc:creator>
      <dc:date>2000-08-24T13:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439578#M6831</link>
      <description>You could do:&lt;BR /&gt;&lt;BR /&gt;cat /var/adm/wtmp | /usr/sbin/acct/fwtmp &amp;gt; /tmp/ascii_wtmp&lt;BR /&gt;&lt;BR /&gt;vi /tmp/ascii_wtp to delete the records you want.&lt;BR /&gt;&lt;BR /&gt;cat /tmp/ascii_wtmp | /usr/sbin/acct/fwtmp -ic &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;I've done this and it works quite well.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Aug 2000 14:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439578#M6831</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2000-08-24T14:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439579#M6832</link>
      <description>Pat:&lt;BR /&gt;&lt;BR /&gt;You might try using fwtmp to convert the current wtmp file to an ASCII file that you can further manuipulate with a script of your own which trims the contents down.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 24 Aug 2000 14:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439579#M6832</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-08-24T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439580#M6833</link>
      <description>If you want to see wtmp contains, run last (see man last). To clean up wtmp, I'm using #&amp;gt;0 (or if you are not lazy to type, same thing as Alex said: #cat /dev/null &amp;gt;/var/adm/wtmp.</description>
      <pubDate>Thu, 24 Aug 2000 14:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439580#M6833</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-24T14:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439581#M6834</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;Tom Danzig's answer hit the nail on the head.&lt;BR /&gt;&lt;BR /&gt;I appreciate all of your replies.</description>
      <pubDate>Thu, 24 Aug 2000 14:38:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439581#M6834</guid>
      <dc:creator>Patrick Bridwell</dc:creator>
      <dc:date>2000-08-24T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Managing /var/adm/wtmp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439582#M6835</link>
      <description>Patrick,&lt;BR /&gt;&lt;BR /&gt;It will be a great work to put the line commands in cron file. Example:&lt;BR /&gt;0 22 1 6,12 * /var/adm/wtmp | /usr/sbin/acct/fwtmp &amp;gt; /tmp/ascii_wtmp&lt;BR /&gt;5 22 1 6,12 * /tmp/ascii_wtmp | /usr/sbin/acct/fwtmp &amp;gt; /var/adm/wtmp&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 24 Aug 2000 16:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-var-adm-wtmp/m-p/2439582#M6835</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-08-24T16:33:44Z</dc:date>
    </item>
  </channel>
</rss>

