cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
535
Views
0
Helpful
4
Replies

logrot problem

a.perrichon
Level 1
Level 1

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

4 Replies 4

Joe Clarke
Cisco Employee
Cisco Employee

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?

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.

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.

Ok thanks Joe, I will try offline with -s.