Subject: | |
From: | |
Reply To: | |
Date: | Wed, 17 May 2000 13:55:23 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Jeff Vance writes:
-----Original Message-----
From: VANCE,JEFF (HP-Cupertino,ex1) [mailto:[log in to unmask]]
Sent: Wednesday, May 17, 2000 1:14 PM
To: [log in to unmask]
Subject: Re: Last time user logged on
...
> knew of any easy way to find out the last time a user logged on to MPE
The first time I read this question I was thinking you want to
show the user that is now logging on when s/he LAST logged on.
This is somewhat valuable as it lets the user know if their
logon was used more recently that they expected to see. There
is not a built-in, automated way to get this info in MPE, but I
am sure there are 3rd party products that provide this feature,
and I don't think it would be too difficult to craft a solution
yourself via logon UDCs.
> I have a feeling that I have some very inactive users,
> and would like to boot them off the system. Thanks!
BOUNCER was already mentioned as a way to log off inactive
users, and there may be other tools that do this. Plain MPE
does not support this capability, but you can write a fairly
simple script that sorts the SHOWJOB output by INTRODUCED date.
Or, you can combine the new JOBCNT and JINFO functions (if you are
on MPE/iX release 6.0) to output just the jobs that are older than
X days. There is a version of such a script on our Jazz Webserver
at: http://jazz.external.hp.com/src/scripts/jcnt.txt
HTH,
Jeff Vance, CSY
-------------------------------------------------------------
Why go to any trouble at all. Assuming that either the jobname or user name
is unique, then the low tech solution could be done.
In a logon udc for each user you want to track:
:PURGE !HPUSER or !HPJOBNAME
:BUILD !HPUSER or !HPJOBNAME
When any one wants to see the last time a user worked just do this:
:SETVAR LASTWORK FINFO("user or jobname","CREATED")+FINFO("user or
jobname","CREATETIME")
:ECHO !LASTWORK
Mike Berkowitz
Guess? Inc.
|
|
|