SDelFile

0 Likes

Installation:

Copy the NLM file to a directory of choice, SYS:SYSTEM would be a good choice.

Create the log file directory: SYS:ETC\SDELFILE

Note: this is hardcoded in the NLM, it won't run without!

A logfile will be created with date stamp e.g. 20060627.log



Usage:




SDelFile <path> /o<days> /q /d

Where: <path> ... only this directory & its subdirs will be scanned.
Path must include volume name.
Q ... Does not show the directories scanned, this will make
SDelFile faster!!!!
D ... Dry run, so u can see which files will be erased.
O<days> ... age of file in days (>=0) to be purged. Default is 30.
Maximum age is 365.


Tested platforms:

NetWare 6.5SP5, OES 6.5Sp5 and NSBS 6.5SP5



Logfile:

If u would do a dry run, your log file would be looking like this:


If u would do a dry run, your log file would be looking like this:
2006-06-23 23:04:54 27 SALVAGE FILE AUDITSAV.CTL -> SYS:\ETC
2006-06-24 10:11:18 28 DELETED FILE AUDITSAV.CTL -> SYS:\ETC
WOULD ERASE FILE SYS:\ETC\AUDITSAV.CTL
2006-06-24 10:25:38 28 DELETED FILE AUDITSAV.CTL -> SYS:\ETC
WOULD ERASE FILE SYS:\ETC\AUDITSAV.CTL
2006-06-23 23:04:54 27 SALVAGE FILE AUDITSAV.LOG -> SYS:\ETC
2006-06-24 10:11:18 28 DELETED FILE AUDITSAV.LOG -> SYS:\ETC
WOULD ERASE FILE SYS:\ETC\AUDITSAV.LOG
2006-06-24 10:25:38 28 DELETED FILE AUDITSAV.LOG -> SYS:\ETC
WOULD ERASE FILE SYS:\ETC\AUDITSAV.LOG
2006-06-23 23:03:52 27 SALVAGE FILE CONSOLE.LOG -> SYS:\ETC
2006-06-24 10:10:02 28 DELETED FILE CONSOLE.LOG -> SYS:\ETC
WOULD ERASE FILE SYS:\ETC\CONSOLE.LOG
2006-06-24 10:24:24 28 DELETED FILE CONSOLE.LOG -> SYS:\ETC
WOULD ERASE FILE SYS:\ETC\CONSOLE.LOG
2006-06-23 23:07:26 27 SALVAGE FILE netware-release -> SYS:\ETC
2006-06-23 23:18:42 27 SALVAGE FILE svrclu.mib -> SYS:\ETC
2006-06-23 23:07:08 27 SALVAGE FILE vimrc -> SYS:\ETC
2006-06-23 23:07:26 27 SALVAGE FILE rcd-ca-bundle.pem -> SYS:\ETC\rcd
2006-06-23 23:07:26 27 SALVAGE FILE rcd.pem -> SYS:\ETC\rcd
2006-06-23 23:07:26 27 SALVAGE FILE rcd.conf -> SYS:\ETC\ximian


If u do a real run, your log file would be like this:


ERASED FILE 0 SYS:\ETC\AUDITSAV.CTL
ERASED FILE 0 SYS:\ETC\AUDITSAV.CTL
ERASED FILE 0 SYS:\ETC\AUDITSAV.LOG
ERASED FILE 0 SYS:\ETC\AUDITSAV.LOG
ERASED FILE 0 SYS:\ETC\CONSOLE.LOG
ERASED FILE 0 SYS:\ETC\CONSOLE.LOG


If the value behind ERASED FILE is not 0, then an error in purging
has happend.



1.01.00 Added detection of LibC version, due to an error in LibC



1.00.01 Erase option added to the code



1.00.01 First release of SDelFile

Labels:

Collateral
Comment List
Related
Recommended