NonStop Servlets for JSP System Administrator's Guide
Logs and Error Conditions
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
5-4
nsjsp_cleanlogs Syntax
days with an extension matching the specified file extension (suffix) will be deleted.
Log file names in other formats are not checked or deleted.
This cleanup utility also provides an option to move log files to the specified directory
for safe-keeping, so you can decide later what to do with the saved log files.
nsjsp_cleanlogs Syntax
nsjsp_cleanlogs Options
-d log_file_directory
The -d option takes one argument, a string, which is used to specify the directory
where the log files are located. The log file directory path given can be in relative or
absolute format. iTPWS_INSTALL_DIR/servlet_jsp/logs is the default
directory
-n number_of_days
The -n option requires a number argument. Log files older than the number of
days specified with this option will be deleted. Files of the specified number of days
old are not deleted. By default, files with a date greater than 10 days in the past
are deleted.
-x log_file_extension
The -x option specifies a file extension other than the default, .log. If log files
should end in an extension other than .log, use this option to specify this.
-b backup_directory
The -b option takes one argument, a string, which is used to specify the directory
where the log files are to be backed up. Prior to removing the files,
nsjsp_cleanlogs copies all of the files fitting the specified characteristics to the
backup_directory specified with this option. There is no default backup
directory. If the directory specified does not exist, you are asked if it should be
created.
-s
The -s option suppresses the output generated by the nsjsp_cleanlogs
command. By default, nsjsp_cleanlogs runs in verbose mode.
nsjsp_cleanlogs [-d log_file_directory] [-n number_of_days]
[-x log_file_extension] [-b backup_directory] -s