Stan writes:
> You can "roll your own" last-logon-date by doing:
>
> 1) create a group called LASTLOGN in the accounts you're interested in.
>
> 2) add an account-wide logon UDC (or add to the existing one):
>
> CONTINUE
> /SYS/HPBIN/TOUCH ../LASTLOGN/!HPUSER
>
> Then, you can later do:
>
> LISTF @.LASTLOGN, 3
Oooh, I *like* this!
I was thinking of a logon UDC that would append a string to a file,
or even selecting the logon entries in the system log files, but I
like this much better!
The only drawback is that it doesn't keep the logon history, but that
wasn't a requirement in the first place.
The best part (aside from being free ;) is that it's so simple.
It's also easily extended. For instance, while the solution
as presented builds an MPE file, it doesn't have to. (If you want
to build the file as !hpaccount.!hpuser though, be aware that files
in MPE groups have a 16-character limit.)
Plus, you can :listfile,6 to put the names in a file (already sorted),
and compare it with last month's list (using, say, Robelle's very nice
COMPARE, or the POSIX utility 'diff').
Nice going, Stan!
--Glenn "wondering if ! in var evaluations or .sigs apply to my ! quota" Cole
Software al dente, Inc.
[log in to unmask]
.......................................................................
Item Subject: cc:Mail Text
|