Operating System - OpenVMS
1748282 Members
4033 Online
108761 Solutions
New Discussion юеВ

Re: Writting all login request to a file

 
SOLVED
Go to solution
Art Dantonio
Occasional Contributor

Writting all login request to a file

Need to keep a log of all logins not just unsuccessful attempts. Would like to write them to a file.
11 REPLIES 11
Ian Miller.
Honored Contributor
Solution

Re: Writting all login request to a file

use auditing
SET AUDIT/AUDIT/ENABLE=LOGIN=INTERACTIVE

(this will record all interactive logins. You can select more if you wish e.g BATCH, SUBPROCESS, NETWORK etc)

then use
ANAL/AUDIT to generate reports.
____________________
Purely Personal Opinion
Martin P.J. Zinser
Honored Contributor

Re: Writting all login request to a file

Hi,

Ian's approach is the clean solution. If you insist to do your own, you could instrument sylogin.com to capture this information.

Greetings, Martin
Antoniov.
Honored Contributor

Re: Writting all login request to a file

Hi,
Ian posted right.
If you will see succesfull entries you can use account command too.

@Antoniov
Antonio Maria Vigliotti
Jan van den Ende
Honored Contributor

Re: Writting all login request to a file

And one step further:
from the accounting info we extract session durations to produce management info.
Why they need it I don't know, but they were really enthousiastic when we were able to satisfy their request. I don't even know if they still use them, but WE do every once in a while if some questions come up.
It really shocks them if you can produce that kind of statistic from over a year ago!


hth


Jan
Don't rust yours pelled jacker to fine doll missed aches.
Ian Miller.
Honored Contributor

Re: Writting all login request to a file

You can monitor logouts too
SET AUDIT/AUDIT/ENABLE=LOGOUT=INTERACTIVE
then generate reports.

Although I find accounting best for the reports (when do people generally login, logout, how long do they stay connected etc) that management seem to find interesting.
____________________
Purely Personal Opinion
Art Dantonio
Occasional Contributor

Re: Writting all login request to a file

The system does not accept the word interactive.
v7.3.
Ian Miller.
Honored Contributor

Re: Writting all login request to a file

Slight mistoke. See
HELP SET AUDIT /ENABLE

/ENABLE=LOGIN=(keyword,...)

ALL BATCH
DETACHED DIALUP
LOCAL NETWORK
REMOTE SUBPROCESS
____________________
Purely Personal Opinion
Antoniov.
Honored Contributor

Re: Writting all login request to a file

I think Ian would post
SET AUDIT/AUDIT/ENABLE=LOGOUT=LOCAL

@Antoniov
Antonio Maria Vigliotti
Ian Miller.
Honored Contributor

Re: Writting all login request to a file

not many local login/logout nowadays. Mostly network
____________________
Purely Personal Opinion