10-07-2008 01:56 AM
Hi,
I am trying to execute logrot script in order to delete some log files.
The problem is that nothing happened when I execute the script.
The configuration :
C:\Program Files\CSCOpx\bin>C:\Progra~1\CSCOpx\bin\perl.exe C:\Progra~1\CSCOpx\b
in\logrot.pl -c
Read config successfully.
Logrot Configuration Menu
-------------------------
1. Edit variables
2. Edit log files
3. Quit and save changes
4. Quit without saving changes
Logrot Configuration Menu
-------------------------
1. Edit variables
2. Edit log files
3. Quit and save changes
4. Quit without saving changes
Enter option: 1
Number Variable Name [Variable Value]
---------------------------------------------------------
1. Backup Directory [D:\backuplog]
2. Restart Delay [60]
q. Go back
Enter variable number to change: q
Logrot Configuration Menu
-------------------------
1. Edit variables
2. Edit log files
3. Quit and save changes
4. Quit without saving changes
Enter option: 2
Number Logfile Name Number of Archives Max Size Compress
-----------------------------------------------------------------------------
1. C:\Progra~1\CSCOpx\log\utm.log 0 100
a. Add logfile(s)
d. Delete logfile(s)
q. Go back
10-07-2008 07:04 AM
According to this, you are only configuring one log for rotation (utm.log). Please post the output of logrot.pl -v. What version of Common Services is this?
10-08-2008 12:13 AM
Yes, I have a problem with utm.log which grows too fast ... No debug is activated.
Anyway, I just want to delete periodicaly this file.
Below the logrot.pl -v :
C:\Program Files\CSCOpx\bin>
C:\Program Files\CSCOpx\bin>C:\Progra~1\CSCOpx\bin\perl.exe C:\Progra~1\CSCOpx\b
in\logrot.pl -v
Wed Oct 8 10:10:23 2008: INFO: Read variable backup_dir --> D:\backuplog
Wed Oct 8 10:10:23 2008: INFO: Logfile = C:\Progra~1\CSCOpx\log\utm.log, Backup
File = D:\backuplog\utm.log
Wed Oct 8 10:10:23 2008: INFO: Archiving C:\Progra~1\CSCOpx\log\utm.log (file s
ize = 75517670, conf size = 2048000)
Wed Oct 8 10:10:23 2008: INFO: Rotating C:\Progra~1\CSCOpx\log\utm.log.
10-08-2008 07:19 AM
According to this, utm.log was rotated. If the file size reverts to the previous file size, then this log file cannot be rotated while dmgtd is running. You will need to do an offline log rotation. To do that, pass the -s option to logrot.pl. This will shutdown dmgtd, rotate the log files, then restart dmgtd.
10-09-2008 07:13 AM
Ok thanks Joe, I will try offline with -s.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide