<?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: How do I identify/summarize active/inactive users? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048463#M136011</link>
    <description>See the man pages for last and wtmp&lt;BR /&gt;&lt;BR /&gt;mark</description>
    <pubDate>Wed, 13 Aug 2003 17:44:00 GMT</pubDate>
    <dc:creator>Mark Greene_1</dc:creator>
    <dc:date>2003-08-13T17:44:00Z</dc:date>
    <item>
      <title>How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048462#M136010</link>
      <description>hpux-admins:&lt;BR /&gt;&lt;BR /&gt;We are moving one old server's users and applications to another old server, to consolidate them on one server.&lt;BR /&gt;&lt;BR /&gt;How do I find out who uses the old system and who doesn't.&lt;BR /&gt;&lt;BR /&gt;I wrote a little script to "finger" each name in /etc/passwd:&lt;BR /&gt;&lt;BR /&gt; awk -F: '{print $1}' passwd | while read USER&lt;BR /&gt;        do&lt;BR /&gt;         finger $USER&lt;BR /&gt;     done&lt;BR /&gt;&lt;BR /&gt;but it just spits out raw info:&lt;BR /&gt;&lt;BR /&gt;Login name: lwwajeg                     In real life: Joe Gagor&lt;BR /&gt;Bldg: LPD Shippin&lt;BR /&gt;Directory: /home/lwwajeg                Shell: /usr/bin/ksh&lt;BR /&gt;Last login Fri Jul  5, 2002 on ttypd&lt;BR /&gt;No Plan.&lt;BR /&gt;&lt;BR /&gt;Login name: wiwakn                      In real life: Kumar Natarajan&lt;BR /&gt;Directory: /home/wiwakn                 Shell: /usr/bin/ksh&lt;BR /&gt;Never logged in.&lt;BR /&gt;No Plan.&lt;BR /&gt;&lt;BR /&gt;Login name: a334hep   &lt;BR /&gt;Directory: /home/a334hep                Shell: /usr/bin/ksh&lt;BR /&gt;Last login Fri Aug  8 07:20 on ttypb&lt;BR /&gt;No Plan.&lt;BR /&gt;&lt;BR /&gt;Can I summarize that somehow with "awk"?  &lt;BR /&gt;&lt;BR /&gt;What I want is something like, all on one line:&lt;BR /&gt;&lt;BR /&gt; username home directory Last login&lt;BR /&gt;&lt;BR /&gt;  Stuart&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2003 17:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048462#M136010</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-08-13T17:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048463#M136011</link>
      <description>See the man pages for last and wtmp&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Wed, 13 Aug 2003 17:44:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048463#M136011</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-08-13T17:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048464#M136012</link>
      <description>Hi Stuart:&lt;BR /&gt;&lt;BR /&gt;Since 'finger' yields information, you have a 'var'adm'wtmp' file of last logins.  A one-line summary analysis of last logings can be obtained with 'last'.  See the man pages for more information.&lt;BR /&gt;&lt;BR /&gt;# last &lt;BR /&gt;&lt;BR /&gt;# last jrf #...look specifically for user 'jrf'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 13 Aug 2003 17:46:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048464#M136012</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-08-13T17:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048465#M136013</link>
      <description>you can use this script:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2003 17:51:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048465#M136013</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-08-13T17:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048466#M136014</link>
      <description>you can use this script:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2003 17:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048466#M136014</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-08-13T17:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048467#M136015</link>
      <description>Stuart --&lt;BR /&gt;&lt;BR /&gt;Output your finger data to :  users.raw&lt;BR /&gt;Add this line to your script as well:&lt;BR /&gt;awk -f formatu.awk &amp;lt; users.raw &amp;gt; users.report&lt;BR /&gt;&lt;BR /&gt;vi a file called formatu.awk in whatever directory you are working and cut and paste the following awk script:&lt;BR /&gt;&lt;BR /&gt;/^Login / {daname=$3;next}&lt;BR /&gt;/^Directory/ {dadir=$2;next}&lt;BR /&gt;/^Never / {dalast="Never"&lt;BR /&gt;               printf("%-9s %-40s %-s \n", daname, dadir, dalast);&lt;BR /&gt;               next}&lt;BR /&gt;/^Last login/ {dalast=$3" "$4" "$5" "$6;&lt;BR /&gt;               printf("%-9s %-40s %-s \n", daname, dadir, dalast);&lt;BR /&gt;               next}                                               &lt;BR /&gt;Double check to make sure that the full printf lines are on one line in the file and that should do it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Aug 2003 18:55:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048467#M136015</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2003-08-13T18:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048468#M136016</link>
      <description>Hi Stuart&lt;BR /&gt;&lt;BR /&gt;# finger -s &lt;USERNAME&gt; &lt;BR /&gt;This gives you a summarised version &amp;amp; puts everything on one line.&lt;BR /&gt;&lt;BR /&gt;One other point is that often wmtp files are cycled, This can mean finger is unable to get any info on a particular user if that user has not logged in since the wtmp file was cycled. &lt;BR /&gt;If you have a trusted system /usr/lbin/getprpw &lt;USERNAME&gt; gives more reliable "login" information (look for "slogint" &amp;amp; "ulogint").&lt;BR /&gt;Unfortunately its a bit messing extracting the info you want.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con&lt;BR /&gt;&lt;/USERNAME&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Thu, 14 Aug 2003 01:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048468#M136016</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-08-14T01:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I identify/summarize active/inactive users?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048469#M136017</link>
      <description>Stuart,&lt;BR /&gt;&lt;BR /&gt;I hope this helps. Final output goes into the /tmp/UserStatus file.</description>
      <pubDate>Thu, 14 Aug 2003 11:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-do-i-identify-summarize-active-inactive-users/m-p/3048469#M136017</guid>
      <dc:creator>Doug Burton</dc:creator>
      <dc:date>2003-08-14T11:23:45Z</dc:date>
    </item>
  </channel>
</rss>

