Deleting old information in the LAST file
Problem Description :
The "last" file will need to be cleaned up on old data from time to time. When it gets too large, the "last" and "last10" commands can be very slow.
Resolution :
The last file is a text file in directory n:\inv\invfiles that the network logon script adds to each time a user logs onto network/domain. To remove/purge old data, do the following:
1 - Open DOS prompt
2 - Go to N: drive
3 - CD to n:\inv directory
4 - Execute command "lastcln yyyy mm" where yyyy is a 4 digit year and mm is a 2 digit month to remove from the file.
As the lastcln runs, it creates an archive file in the n:\inv\invfiles named last_mm_yyyy. Normally try to keep 6 months to 1 yr active in last.
Revision Date : 3/4/2011