Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

logrot problem

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
Cisco Employee

Re: logrot problem

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?

New Member

Re: logrot problem

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.

Cisco Employee

Re: logrot problem

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.

New Member

Re: logrot problem

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

156
Views
0
Helpful
4
Replies