% VAX-11 Librarian V04-00̻;ʖ 9h;ʖ!5 LAST  9h;ʖ1 LASTH The LAST utility gives the time a user last logged in to the system. DThe utility also provides the Group in which that user resides, how Hmany days from the present day it has been since the last time the user Flogged into the system and whether the user account is DISUSER'd. If Bthe user has never logged into the system, the program strips the Dcreation date from the user's default directory (it is assumed that Bthe directory was created at the same time as th e user account). .SYSPRV privilege is needed to use the utility.2 parameters I The only parameter is the supplying of a username or a file with a listHof users to check (input may be a logical). When a username is suppliedHto the utility, all qualifiers are ignored except the /OUTPUT qualifier. i.e. $ LAST JBAKERC JBAKER GROUPNAME No 10-JAN-1990 4 DAYS.HThis means that if the program were run on 14-JAN-1990, the output wouldlook as it d oes above.2 qualifiers 3 /ABOUT - Tells some information about LAST.G /ALL_GROUPS - Allows the output to be broken up by group, displaying them all.H /ALL_USERS - Displays the status of all users in alphabetical order.G /DAYS - Allows you to specify to report on users that have notB logged in within so many days. The default is 0.: /GROUP - Allows you to single out a certain group.= /HELP - Displays the  HELP text for the LAST utility.D /LIST - Allows you to use a database created using the LIST utility.F /OUTPUT - This qualifier allows you to write to an output file of your choice.2 logical_names I The input of a user may be specified as a logical. LAST will translateEthe logical searching through PROCESS, JOB, GROUP and SYSTEM logical tables in that order.H A logical is required to setup a list of users which is complian t with9VMS standards. The logical should be defined as follows:A $ DEFINE LIST_OF_USERS @DUA0:[SOME_DIRECTORY]USERS.LISKWhen specifying this file for LAST, you need only to specify LIST_OF_USERS.KThe file's format should be one user per line with no spaces preceeding the#username. Blank lines are ignored.2 /ABOUT) Displays information concerning LAST.2 /ALL_GROUPS D Allows the output to be broken up by group, displaying them all.2 /ALL_USERS ; Displays the status of all users in alphabetical order.2 /DAYS  /DAYS=integerE Allows you to specify to report on users that have not logged in + within so many days. The default is 0. 2 /GROUP  /GROUP=groupname8 Allows you to single out a certain group for diplay.2 /HELP0 Displays the HELP text for the LAST utility.2 /LIST /LIST=phone.fileF Allows you to specify a database file created by the LIST utility.F Using this qualifier will display the user that is assigned to theG username and their phone number. (LIST file must have been created using LIST 2.0 or higher.) 2 /OUTPUT /OUTPUT=output.fileH This qualifier allows you to write to an output file of your choice. 2 examplesK The following are some examples of the LAST utility using the qualifiers. $ LAST /ALL_USERSL LAST LOGIN RESULTS FOR THE UNCLASSIFIED CLUSTER ON THE DAY 16-JAN-1990.K THE FOLLOWING USERS HAVE NOT US ED THEIR ACCOUNTS FOR AT LEAST 0 DAYS:= Lastlogin/ Days@ User Group Disusr Creation Date Since Used@ ---- ----- ------ ------------- ----------< AAA PC-GROUP Yes 10-JAN-1990 6 DAYSK AAA3 NERD_GROUP No 10-DEC-1989 37 DAYS **NEVER USED**7 . . . .7 . . . .7 .  . . .H This will display to the screen the loggin status of all the users in G alphabetical order. (Note: **NEVER USED** means what it says. The9 date used, is the date the user directory was created.)6 $ LAST /DAYS=90 /GROUP="SOME GROUP" /OUTPUT=LAST.TXT- The output file, LAST.TXT looks as follows:L LAST LOGIN RESULTS FOR THE UNCLASSIFIED CLUSTER ON THE DAY 16-JAN-1990.K THE FOLLOWING USERS HAVE NOT USED THEIR ACCOUNTS FOR AT  LEAST 90 DAYS:= Lastlogin/ Days@ User Group Disusr Creation Date Since Used@ ---- ----- ------ ------------- ----------3 AUSER user directory does not match UAF file.; STUDENT SOME GROUP No 12-OCT-1989 96 DAYSJ ZAMFIR SOME GROUP Yes 3-NOV-1988 439 DAYS **NEVER USED**7 . . . .7 . . . .7 . . . .J The list for the specified group is displayed. This is the same for theF qualifier /ALL_GROUPS, except no other groups will be tallied. The G message displayed for AUSER is to note that the user has never loggedK in and that the attempt to open up the directory file was not successful.G This should mean that SYSUAF.DAT contains the wrong directory as the  user's default.wwy;ʖ SYSTEM_JB LAST