<?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: Users accounting question in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326587#M92564</link>
    <description>&lt;BR /&gt;OUTPUT:&lt;BR /&gt;&lt;BR /&gt;From: 19-DEC-2008 00:00       VMS Accounting Report        To: 19-DEC-2008 14:48Process type Username         Total&lt;BR /&gt;                            Records&lt;BR /&gt;-----------------------------------&lt;BR /&gt;INTERACTIVE  SYSTEM               2&lt;BR /&gt;NETWORK      AECSYS             189&lt;BR /&gt;NETWORK      FAL$SERVER           1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, but I also need IP addresses...</description>
    <pubDate>Fri, 19 Dec 2008 14:05:21 GMT</pubDate>
    <dc:creator>Darijo</dc:creator>
    <dc:date>2008-12-19T14:05:21Z</dc:date>
    <item>
      <title>Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326583#M92560</link>
      <description>How or where can I see which users were logged on the machine lately? &lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Fri, 19 Dec 2008 12:54:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326583#M92560</guid>
      <dc:creator>Darijo</dc:creator>
      <dc:date>2008-12-19T12:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326584#M92561</link>
      <description>Presuming that ACCOUNTING is enabled for your system you could just choose your date and...&lt;BR /&gt;&lt;BR /&gt;$ ACCO/SUMM=(PROC,USER)/SINC=1-DEC-2008&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 13:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326584#M92561</guid>
      <dc:creator>Jim_McKinney</dc:creator>
      <dc:date>2008-12-19T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326585#M92562</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;  for individual queries you can go into the sysuaf and check for the last interactive login field&lt;BR /&gt;&lt;BR /&gt;$ set def sys$system&lt;BR /&gt;$ r authorize&lt;BR /&gt;&lt;BR /&gt;there are also ways of producing reports from the uaf using dcl some examples of which are on dcl.openvms.org (which i can't seem to get to at the moment)&lt;BR /&gt;&lt;BR /&gt;or if you have auditing enabled for login &lt;BR /&gt;then you can use anal/audit e.g&lt;BR /&gt;&lt;BR /&gt;$ anal/audit/event=login/full&lt;BR /&gt;&lt;BR /&gt;$ show audit (to see settings)&lt;BR /&gt;&lt;BR /&gt;$ set audit/audit/enable=(login=all)  (to change settings)&lt;BR /&gt;&lt;BR /&gt;there are also entries in the sys$manager:operator.log for telnet login etc&lt;BR /&gt;&lt;BR /&gt;take time to read the vms users , security and system managers essentials guides on the vms documentation site here to give you a good background on what is possible and the implications of using the various tools available :-&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/os83_index.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/os83_index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 13:39:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326585#M92562</guid>
      <dc:creator>marsh_1</dc:creator>
      <dc:date>2008-12-19T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326586#M92563</link>
      <description>&lt;!--!*#--&gt;Typically folks use the LAST_LOGIN time from SYSUAF to report who use the system.&lt;BR /&gt;&lt;BR /&gt;Just GOOGLE for +LAST_LOGIN +SYSUAF for several examples.&lt;BR /&gt;&lt;BR /&gt;Here is a starting point I wrote last year if you wanted to roll your own:&lt;BR /&gt;&lt;BR /&gt;$!&lt;BR /&gt;$! uaf_lastlogin.com    Hein van den Heuvel,August 2007.&lt;BR /&gt;$&lt;BR /&gt;$! List records from SYSUAF for which the Last Interactive Login is more&lt;BR /&gt;$! than 'p1' days ago (default 90).&lt;BR /&gt;$&lt;BR /&gt;$IF p1.eqs."" THEN p1 = "90"&lt;BR /&gt;$cutoff_date = f$cvtime("TODAY -''p1'-")&lt;BR /&gt;$!libr/extr=$uafdef/out=uafdef.tmp sys$library:lib.mlb&lt;BR /&gt;$!sea uafdef.tmp flag...&lt;BR /&gt;$!EQU    UAF$Q_LASTLOGIN_I       396&lt;BR /&gt;$!EQU    UAF$L_FLAGS     468&lt;BR /&gt;$!EQU    UAF$V_DISACNT   4&lt;BR /&gt;$&lt;BR /&gt;$!define sysuaf sys$disk:[]sysuaf.dat  ! Local copy for testting&lt;BR /&gt;$sysuaf = f$parse("SYSUAF","SYS$SYSTEM:.DAT",,,"SYNTAX_ONLY")&lt;BR /&gt;$open /read/share=write uaf 'sysuaf'&lt;BR /&gt;$loop:&lt;BR /&gt;$ read/end=done uaf rec&lt;BR /&gt;$ lastlogin_bin = F$EXTR(396,8,rec)&lt;BR /&gt;$ lastlogin_asc = F$FAO("!%D",f$cvui(32,32,f$fao("!AD",8,lastlogin_bin)))&lt;BR /&gt;$ IF f$cvtime(lastlogin_asc) .GTS. cutoff_date THEN GOTO loop&lt;BR /&gt;$ IF f$cvsi(468*8+4,1,rec) THEN GOTO loop ! disuser already?&lt;BR /&gt;$ username = F$EXTRACT(4,12,rec)&lt;BR /&gt;$ WRITE SYS$OUTPUT "MODIFY ''username' /FLAG=DISUSEER ! Last Login: ", lastlogin_asc&lt;BR /&gt;$ GOTO loop&lt;BR /&gt;$done:&lt;BR /&gt;$close uaf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 13:52:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326586#M92563</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-12-19T13:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326587#M92564</link>
      <description>&lt;BR /&gt;OUTPUT:&lt;BR /&gt;&lt;BR /&gt;From: 19-DEC-2008 00:00       VMS Accounting Report        To: 19-DEC-2008 14:48Process type Username         Total&lt;BR /&gt;                            Records&lt;BR /&gt;-----------------------------------&lt;BR /&gt;INTERACTIVE  SYSTEM               2&lt;BR /&gt;NETWORK      AECSYS             189&lt;BR /&gt;NETWORK      FAL$SERVER           1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, but I also need IP addresses...</description>
      <pubDate>Fri, 19 Dec 2008 14:05:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326587#M92564</guid>
      <dc:creator>Darijo</dc:creator>
      <dc:date>2008-12-19T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326588#M92565</link>
      <description>hi ,&lt;BR /&gt;&lt;BR /&gt;try &lt;BR /&gt;$ sear sys$manager:operator.log/win=(2,0)/out=nnn.tmp "login "&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;$ sear nnn.tmp/win=(0,2) "whatever date"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 14:13:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326588#M92565</guid>
      <dc:creator>marsh_1</dc:creator>
      <dc:date>2008-12-19T14:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326589#M92566</link>
      <description>" hi ,&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;$ sear sys$manager:operator.log/win=(2,0)/out=nnn.tmp "login "&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;$ sear nnn.tmp/win=(0,2) "whatever date"&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;THATS IT!&lt;BR /&gt;Thank you so much!&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 14:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326589#M92566</guid>
      <dc:creator>Darijo</dc:creator>
      <dc:date>2008-12-19T14:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326590#M92567</link>
      <description>&lt;BR /&gt;hi,&lt;BR /&gt;&lt;BR /&gt;unless all your users have static ip addresses what is the importance of the address as it would vary from day to day. also if there are multiple systems with decnet enabled the users could potentially be hopping anywhere in which case you would be better using one of the sysuaf dcl report examples such as the one hein has posted up ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 14:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326590#M92567</guid>
      <dc:creator>marsh_1</dc:creator>
      <dc:date>2008-12-19T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326591#M92568</link>
      <description>&amp;gt;&amp;gt; Thanks, but I also need IP addresses...&lt;BR /&gt;&lt;BR /&gt;I don't think you can get that from ACC/SUM&lt;BR /&gt;&lt;BR /&gt;You may need to write a program ro read and process the account file, or it's listing.&lt;BR /&gt;&lt;BR /&gt;For example this trivial PERL:&lt;BR /&gt;&lt;BR /&gt;$pipe ACCOUN/FULL/SINCE | perl -ane "$u=$F[1] if /^Us/; printf(qq(%12s %s\n),$u, $F[3]) if /^Remote f/"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And a little more elaborate, still just using 2 fields to report on see below.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------ access_summary.pl --------------&lt;BR /&gt;for (qx(ACCOUNT/FULL/SINCE=YES)){&lt;BR /&gt;   chomp;&lt;BR /&gt;#Remote node name:                    Pr&lt;BR /&gt;#0123456789012345678901234567890123456789&lt;BR /&gt;   $user = $1 if /^Us\S+\s+(\S+)/;&lt;BR /&gt;   $full = substr($_,18,27-18) if /^Remote node name:\s+(\S+)/;&lt;BR /&gt;   if (/^Remote full name:(.*)/) { # Last interesting line?&lt;BR /&gt;     $full = $1 if $1;   # anything there?&lt;BR /&gt;     $full =~ s/\s+/ /g; # trim whitespace some&lt;BR /&gt;     $access{ $user . ',' . $full }++;&lt;BR /&gt;   }&lt;BR /&gt;}&lt;BR /&gt;for (sort keys %access) {&lt;BR /&gt;   my ($user, $full) = split /,/;&lt;BR /&gt;   printf "%12s %5d %s\n", $user, $access{$_}, $full;&lt;BR /&gt;}&lt;BR /&gt;-------------------&lt;BR /&gt;&lt;BR /&gt;$perl access_summary.pl &lt;BR /&gt;     &lt;LOGIN&gt;     1&lt;BR /&gt;     &lt;LOGIN&gt;     1  RX1&lt;BR /&gt;     &lt;LOGIN&gt;     1  RX2&lt;BR /&gt;  FAL$SERVER     2  RX2&lt;BR /&gt;        HEIN    72&lt;BR /&gt;        HEIN     1  192.168.1.152&lt;BR /&gt;        HEIN     1  192.168.1.40&lt;BR /&gt;        HEIN     1  192.168.1.45&lt;BR /&gt;        HEIN     8  HEINPC&lt;BR /&gt;        HEIN     4  RX2&lt;BR /&gt;      SYSTEM   184&lt;BR /&gt;   TCPIP$FTP     2  0.0.0.0 Port: 000&lt;BR /&gt;&lt;/LOGIN&gt;&lt;/LOGIN&gt;&lt;/LOGIN&gt;</description>
      <pubDate>Fri, 19 Dec 2008 14:56:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326591#M92568</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-12-19T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326592#M92569</link>
      <description>No, all addresses in LAN are static, but machines are connected via WAN (ISDN) to other places. I just needed to know if someone has accessed the machine from non local-area-network.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 14:58:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326592#M92569</guid>
      <dc:creator>Darijo</dc:creator>
      <dc:date>2008-12-19T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326593#M92570</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt; anal/audit also gives ip address as well as decnet source if login audit is enabled.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2008 15:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326593#M92570</guid>
      <dc:creator>marsh_1</dc:creator>
      <dc:date>2008-12-19T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Users accounting question</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326594#M92571</link>
      <description>Depending on your definition of "accessed the machine from non local-area-network", there is nothing you can do from the VMS system to detect if the connection is originating off the local network.&lt;BR /&gt;&lt;BR /&gt;For example, if a user has some remote control software loaded on a PC that is on the local LAN, they can then use the PC as a proxy to make it appear that they are local.&lt;BR /&gt;&lt;BR /&gt;As far as the VMS system is concerned, the access will be coming from the PC.&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Fri, 19 Dec 2008 15:46:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/users-accounting-question/m-p/4326594#M92571</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2008-12-19T15:46:00Z</dc:date>
    </item>
  </channel>
</rss>

