<?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: viewing all the users loggedin in last 6 months in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414450#M353453</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The /var/adm/wtmp file contains the information.&lt;BR /&gt;&lt;BR /&gt;It tends to get quite big and most sysadmins trim it to reduce its size.&lt;BR /&gt;&lt;BR /&gt;But if its there the last command will parse it.&lt;BR /&gt;&lt;BR /&gt;The wtmp file is the data repo and last is the way to access it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Wed, 06 May 2009 17:27:26 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2009-05-06T17:27:26Z</dc:date>
    <item>
      <title>viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414447#M353450</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt; I am using HP-UX 10.20, 11.00, 11.11.&lt;BR /&gt;&lt;BR /&gt; I want to create a rport of all logged in users for last 3 months.&lt;BR /&gt;&lt;BR /&gt; I am able to get this month report only using "last".&lt;BR /&gt;&lt;BR /&gt; How to do this.</description>
      <pubDate>Wed, 06 May 2009 16:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414447#M353450</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-05-06T16:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414448#M353451</link>
      <description>Not clear what exactly you need but the last command does not have any data options so you have to sent the output of the last command to a file and then edit that file and delete all the lines that are older than 3 months. Then it depends what exactly you need, for a simple list of usernames you can cut the first coulmn of the file that contains the usernames and do a unique sort.&lt;BR /&gt;1. last &amp;gt; users.txt&lt;BR /&gt;2. edit users.txt and delete all lines older than 3 months&lt;BR /&gt;3. awk '{print $1}' users.txt | sort -u &lt;BR /&gt;&lt;BR /&gt;If you have may servers, you can combine the users.txt files from each server and run the 3rd command on the cumulative file.&lt;BR /&gt;&lt;BR /&gt;If you need more information as the number of logins and which server it is a lot more involved.</description>
      <pubDate>Wed, 06 May 2009 17:23:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414448#M353451</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-05-06T17:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414449#M353452</link>
      <description>hi&lt;BR /&gt;   The last command searches backwards through the file /var/adm/wtmp.Sometimes this file may be trimmed since its size will increase on every login.Check in your crontab file, is there any command is doing the same. &lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 17:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414449#M353452</guid>
      <dc:creator>Bijeesh</dc:creator>
      <dc:date>2009-05-06T17:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414450#M353453</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The /var/adm/wtmp file contains the information.&lt;BR /&gt;&lt;BR /&gt;It tends to get quite big and most sysadmins trim it to reduce its size.&lt;BR /&gt;&lt;BR /&gt;But if its there the last command will parse it.&lt;BR /&gt;&lt;BR /&gt;The wtmp file is the data repo and last is the way to access it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 06 May 2009 17:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414450#M353453</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-06T17:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414451#M353454</link>
      <description>output of the last command is sorted chronologically in reverse order, i.e., newest login is located on top. So if you run &lt;BR /&gt;&lt;BR /&gt;last &amp;gt; /tmp/login_report&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;vi /tmp/login_report&lt;BR /&gt;&lt;BR /&gt;you can scroll down to a place where you will see the date and time of 3 months ago (you need to manually figure this out) and delete the lines from this point to the end, you will end up with last 3 months' worth of login report.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;If you want to do this with a script, please look for Clay Stephenson's caljd script (available in POSIX and perl script forms on the web, just google) and you have to experiment with the last utility combined with Clay's script for date calculation and sed command to come up with the report in the way you exactly want.</description>
      <pubDate>Wed, 06 May 2009 17:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414451#M353454</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-05-06T17:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414452#M353455</link>
      <description>If your sys admins have already trimmed the wtmp files on your systems so they only contains the last month's worth of data, then your sys admins have prevented you from completing this task.</description>
      <pubDate>Wed, 06 May 2009 18:10:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414452#M353455</guid>
      <dc:creator>Michael Mike Reaser</dc:creator>
      <dc:date>2009-05-06T18:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414453#M353456</link>
      <description>Yes i am able to see only the details from May 1 2009 using last command.&lt;BR /&gt;&lt;BR /&gt;But i am not able to see before May like April, March, Feb.&lt;BR /&gt;&lt;BR /&gt;At this situation, how we can get the details of user logged in for last 3 months.</description>
      <pubDate>Thu, 07 May 2009 12:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414453#M353456</guid>
      <dc:creator>senthil_kumar_1</dc:creator>
      <dc:date>2009-05-07T12:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414454#M353457</link>
      <description>Dear,&lt;BR /&gt;if you are provided with a putty tool to login into the server post a session with saved output&lt;BR /&gt;&lt;BR /&gt;and run the command last -R -&lt;REQUIRED no="" of="" outputs=""&gt; &lt;NAME of="" the="" user="" for="" which="" you="" want="" to="" collect="" the="" information=""&gt;&lt;BR /&gt;&lt;BR /&gt;eg last -R -20 root&lt;BR /&gt;&lt;BR /&gt;will give last 20 login attempts with the ip used&lt;BR /&gt;may this help you...&lt;BR /&gt;&lt;BR /&gt;normally sys admin will trim the wtmp file as to create the excessive filling of /var file system according to the need.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/NAME&gt;&lt;/REQUIRED&gt;</description>
      <pubDate>Thu, 07 May 2009 13:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414454#M353457</guid>
      <dc:creator>Jestin John Chacko</dc:creator>
      <dc:date>2009-05-07T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414455#M353458</link>
      <description>senthil&amp;gt; At this situation, how we can get the details of user logged in for last 3 months.&lt;BR /&gt;&lt;BR /&gt;You can't.  Your system administrators have erased from your systems the data you require to complete this task.&lt;BR /&gt;&lt;BR /&gt;If you need to retrieve this information for a 3-month period, your sys admins need to leave 3 months' worth of data in your wtmp files.  They have not done so, and thus you cannot get this data.  &lt;BR /&gt;&lt;BR /&gt;It's gone.  Your system administrators made it go away.</description>
      <pubDate>Thu, 07 May 2009 13:00:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414455#M353458</guid>
      <dc:creator>Michael Mike Reaser</dc:creator>
      <dc:date>2009-05-07T13:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414456#M353459</link>
      <description>Hi Senthilkumar,&lt;BR /&gt;&lt;BR /&gt;/var/adm/wtmp is only file which keeps informations about user login and logouts. If this file is wiped out or trimmed due to some reason, then you will not ba able to get the details.&lt;BR /&gt;&lt;BR /&gt;If you have any other tools like powerbroker then you may get the desired data.</description>
      <pubDate>Thu, 07 May 2009 13:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414456#M353459</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-07T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: viewing all the users loggedin in last 6 months</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414457#M353460</link>
      <description>/var/adm/wtmp is the file you need to look for login and logout report. The date till which you can extract data depends on the when the maintanence was done on your wtmp file.</description>
      <pubDate>Thu, 07 May 2009 15:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/viewing-all-the-users-loggedin-in-last-6-months/m-p/4414457#M353460</guid>
      <dc:creator>UVK</dc:creator>
      <dc:date>2009-05-07T15:45:52Z</dc:date>
    </item>
  </channel>
</rss>

