<?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: Trace user activity in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022419#M491002</link>
    <description>&lt;P&gt;Did you zero out the existing files or delete them and recreate them?&lt;/P&gt;&lt;P&gt;If recreated, the ownership and permissions must be restored. For 11.31, they should look like this:&lt;/P&gt;&lt;P&gt;-rw------- 1 root other 288 Oct 5 2015 /var/adm/btmp&lt;BR /&gt;-rw------- 1 root other 456400 Mar 6 2018 /var/adm/btmps&lt;BR /&gt;-rw-rw-r-- 1 adm adm 1368828 Oct 15 12:22 /var/adm/wtmp&lt;BR /&gt;-rw-rw-r-- 1 adm adm 22411848 Oct 19 10:48 /var/adm/wtmps&lt;BR /&gt;-rw-r--r-- 1 root root 280 Feb 24 2015 /var/adm/wtmpx&lt;/P&gt;&lt;P&gt;Look in ./var/adm/syslog/syslog.log for any messages about logging.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 15:11:50 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2018-10-19T15:11:50Z</dc:date>
    <item>
      <title>Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7021970#M490997</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have one billing system that comprises a two server&amp;nbsp; hp-ux serviceguard cluster running oracle rac, and the billing application. But before users log into the billing application, there is a server called F5, running linux, that I beleived does user load balancing (I am not familiar with this), them they go through a web server running windows .&lt;/P&gt;&lt;P&gt;What I would like to know, is how to trace a user/IP that logs into the billing system, because in logs of the actual database servers (/var/adm/syslog/syslog.log) its not possible to view who logged in and out, what IP has connected.&lt;/P&gt;&lt;P&gt;I wonder if&amp;nbsp; it is possible to get this information.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 06:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7021970#M490997</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2018-10-16T06:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022090#M490998</link>
      <description>&lt;P&gt;You can see each login/logout with IP address with the &lt;STRONG&gt;last&lt;/STRONG&gt; command.&amp;nbsp;&lt;BR /&gt;Use it like this:&lt;/P&gt;&lt;PRE&gt;# last -R -100 &lt;/PRE&gt;&lt;P&gt;You can also see failed logins with the &lt;STRONG&gt;lastb&lt;/STRONG&gt; command.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 21:48:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022090#M490998</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2018-10-16T21:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022127#M490999</link>
      <description>&lt;P&gt;I have followed the advice in which I had to run "last -R -100" then I got an error:&lt;/P&gt;&lt;PRE&gt;last -R -100
Invalid record size. Unable to continue ...&lt;/PRE&gt;&lt;P&gt;then I try to repair it using the following comands:&lt;/P&gt;&lt;P&gt;/usr/sbin/acct/fwtmp &amp;lt; /var/adm/wtmp &amp;gt; /tmp/wtmp&lt;/P&gt;&lt;P&gt;tail /tmp/wtmp&lt;BR /&gt;init.css h2 4508 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;init.crs h3 4510 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;iocdsfd cdsf 4511 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;clu_dsf_ cdin 4515 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;cimserve cim1 4518 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;sh ems3 4523 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;sh ems3 4523 8 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;p_client ems4 4533 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;icapd icap 4541 5 0000 0000 1533457331 Aug 5 10:22:11 2018&lt;BR /&gt;clu_dsf_ cdin 4515 8 0000 0001 1533457397 Aug 5 10:23:17 2018&lt;/P&gt;&lt;P&gt;last -R -100&lt;BR /&gt;Invalid record size. Unable to continue ...&lt;/P&gt;&lt;P&gt;/usr/sbin/acct/fwtmp -ic &amp;lt; /tmp/wtmp &amp;gt; /var/adm/wtmp&lt;/P&gt;&lt;P&gt;last -R -100&lt;BR /&gt;Invalid record size. Unable to continue ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be fair to say that I have a corrupted data on my wtmp file, so the only option I have is to empty the contents of the file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 08:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022127#M490999</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2018-10-17T08:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022172#M491000</link>
      <description>&lt;P&gt;Yes, the wtmp file is apparently corrupted, so you'll need to zero out the contents like this:&lt;/P&gt;&lt;PRE&gt;# cat /dev/null &amp;gt; /var/adm/wtmp

or

# &amp;gt; /var/adm/wtmp&lt;/PRE&gt;&lt;P&gt;The wtmp (and /var/adm/btmp) files grow without bounds. You'll need regularly trim these files.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022172#M491000</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2018-10-17T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022249#M491001</link>
      <description>&lt;P&gt;that cleared files wtmps, btmps and wtmp, but so far those files have not been populated since I cleared them yesterday.&lt;/P&gt;&lt;P&gt;Shouldn´t I have data on them right now?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 06:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022249#M491001</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2018-10-18T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022419#M491002</link>
      <description>&lt;P&gt;Did you zero out the existing files or delete them and recreate them?&lt;/P&gt;&lt;P&gt;If recreated, the ownership and permissions must be restored. For 11.31, they should look like this:&lt;/P&gt;&lt;P&gt;-rw------- 1 root other 288 Oct 5 2015 /var/adm/btmp&lt;BR /&gt;-rw------- 1 root other 456400 Mar 6 2018 /var/adm/btmps&lt;BR /&gt;-rw-rw-r-- 1 adm adm 1368828 Oct 15 12:22 /var/adm/wtmp&lt;BR /&gt;-rw-rw-r-- 1 adm adm 22411848 Oct 19 10:48 /var/adm/wtmps&lt;BR /&gt;-rw-r--r-- 1 root root 280 Feb 24 2015 /var/adm/wtmpx&lt;/P&gt;&lt;P&gt;Look in ./var/adm/syslog/syslog.log for any messages about logging.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 15:11:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022419#M491002</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2018-10-19T15:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022532#M491003</link>
      <description>&lt;P&gt;&amp;gt; Would be fair to say that I have a corrupted data on my wtmp file, so the only option I have is to empty the contents of the file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How valuable is the data in wtmp?&amp;nbsp; If you look at some other posts on wtmp, you might be able to fix it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hpe.com/t5/tag/wtmps/tg-p" target="_blank"&gt;https://community.hpe.com/t5/tag/wtmps/tg-p&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hpe.com/t5/tag/fwtmp/tg-p" target="_blank"&gt;https://community.hpe.com/t5/tag/fwtmp/tg-p&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2018 02:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022532#M491003</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2018-10-21T02:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022622#M491004</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I did was :&lt;/P&gt;&lt;PRE&gt;cat /dev/null &amp;gt; /var/adm/wtmps
cat /dev/null &amp;gt; /var/adm/wtmp
cat /dev/null &amp;gt; /var/adm/btmps&lt;/PRE&gt;&lt;P&gt;But the only file not populated is:&lt;/P&gt;&lt;P&gt;/var/adm/wtmp&lt;/P&gt;&lt;PRE&gt;dbnode0[467]/var/adm #ls -lrt | tail
drwx------   2 root       root            96 Aug  5 10:22 cluster_dsf
-rw-rw-r--   1 root       sys          18660 Aug  5 10:26 ps_data
drwxr-xr-x  12 bin        bin           8192 Aug  5 10:27 cmcluster
-rw-r--r--   1 root       root        297016 Aug  8 18:37 nettl.LOG000
-rw-rw-r--   1 adm        adm              0 Oct 17 17:09 wtmp
drwxr-xr-x   3 root       root          8192 Oct 18 11:13 crash
-rw-------   1 root       other          652 Oct 19 16:21 btmps
-rw-rw-r--   1 adm        adm           3912 Oct 19 16:49 wtmps
-rw-------   1 root       root         22014 Oct 21 17:01 sulog
dr-xr-xr-x   2 bin        bin           8192 Oct 22 07:48 util
dbnode0[468]/var/adm #&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 05:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022622#M491004</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2018-10-22T05:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022624#M491005</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the reply, what I am trying to establish is what IP addresses (os user pc´s) have connected to the system in the month of July 2018, by having a look on the wtmps file&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 05:57:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022624#M491005</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2018-10-22T05:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022734#M491006</link>
      <description>&lt;P&gt;&amp;gt; I am trying to establish is what IP addresses (os user PCs) have connected to the system in the month of July 2018, by having a look on the wtmps file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a backup of the corrupted file?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 18:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022734#M491006</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2018-10-22T18:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022814#M491007</link>
      <description>&lt;P&gt;Yes I do have a backup of the file&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 06:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022814#M491007</guid>
      <dc:creator>NDO</dc:creator>
      <dc:date>2018-10-23T06:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trace user activity</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022908#M491008</link>
      <description>&lt;P&gt;Do you have a way to provide it?&amp;nbsp; You can send me a private message about the location.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:19:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-user-activity/m-p/7022908#M491008</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2018-10-23T16:19:24Z</dc:date>
    </item>
  </channel>
</rss>

