HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

want to know the no. of times interactive logins of any user.

 
Amit Phadnis
Advisor

want to know the no. of times interactive logins of any user.

Hi,

We have a plan to disable the login for the usernames who had not login into the server from last 3 months.

For that we want to get the data of all the usernames who had not login since 3 months.

is it possible to get such data? what is the procedure or commands for it?

waiting for your reply on this.

Thanks & Regards,
Amit Phadnis.
5 REPLIES
Kris Clippeleyr
Honored Contributor

Re: want to know the no. of times interactive logins of any user.

Amit,
In thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1155146
a similar question is put.
Yu might find a solution in the answers of my learned friends.
Regards,
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Karl Rohwedder
Honored Contributor

Re: want to know the no. of times interactive logins of any user.

The utility SCANUAF from the freeware CD V8
can do this, e.g.

$ MCR SCANUAF
SCANUAF>LOGINT<10-jan-2007
...

regards Kalle
The Brit
Honored Contributor

Re: want to know the no. of times interactive logins of any user.

You can use a "brute force" approach and parse a full listing of each users UAF account for the "Last Interactive Login" and "Last Non-Interactive Login" dates. You can then base your action on the most recent.

Dave
Robert Gezelter
Honored Contributor

Re: want to know the no. of times interactive logins of any user.

Amit,

The UAF contains information about the last logins for Last Login date/time (separately for interactive and non-interactive logins).

If the number of logins, rather than that a login has occurred (as implied by the subject of this post), it will be necessary to use the ACCOUNTING utility to extract the account history. This presumes, of course, that accounting is enabled. The Accounting facility is fully documented in the appropriate OpenVMS manual. The documentation set is available online via http://www.hp.com/go/openvms

- Bob Gezelter, http://www.rlgsc.com
Peter Zeiszler
Trusted Contributor

Re: want to know the no. of times interactive logins of any user.

Never tried SCANUAF - Guess I will have to pull that off the freeware CD to give it a go.

We use Getuai every month to check a lot of functions of accounts. Getting the last login date is just one of them.

The command file I have "lists" out the sysuaf. Then I read each record in, parse out the usename and then capture a bunch of stuff with GETUAI.

GETUAI is on the Freeware CD.