NonStop Servlets for JavaServer Pages (5.0) System Administrator's Guide
Logs and Error Conditions
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-002
6-5
nsjsp_cleanlogs Syntax
nsjsp_cleanlogs Syntax 
nsjsp_cleanlogs Options
-d log_file_directory 
The -d option takes one argument, a string, which specifies the directory where 
the log files are located. The log file directory path given can be in relative or 
absolute format. $NSJSP_HOME/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 in this option are deleted. Files that are 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 specifies the directory where 
the log files are to be backed up. Prior to removing the files, nsjsp_cleanlogs 
copies all the files fitting the specified characteristics to the backup_directory 
specified. 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.
Recovery Procedure for Broadcast Error
The following section discusses how to recover from a broadcast error.
Broadcast 
A management related command sent by the nsjspadmin server (the frontend) to all of 
the running SERVLET ServerClass processes (the backend) to invoke a management 
function or to gather status/statistics information. All broadcasts in the NSJSP are 
reliable broadcast, (i.e., a response is returned by every one of the running servers. 
nsjsp_cleanlogs [-d log_file_directory] [-n number_of_days] 
 [-x log_file_extension] [-b backup_directory] -s










