cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
893
Views
0
Helpful
2
Replies

huge log files in cw LMS

ohassairi
Level 5
Level 5

hello

Today in ciscoworks LMS, I found that c:\ drive is almost full.

I found 2 huge files :

-c:\program files\ CSCOpx\log\ConfigMgmtServer.log 2 Giga

- c:\program files\ CSCOpx\MDC\tomcat\logs\stdout.log 6 Giga

Can we limit the size of these 2 log files so that the C drive will not be full in the future?

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

Yes. You can configure logrot.pl to rotate these logs periodically when they reach a certain size. Search the Common Services online help for "logrot" for more information on how to configure this.

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

Yes. You can configure logrot.pl to rotate these logs periodically when they reach a certain size. Search the Common Services online help for "logrot" for more information on how to configure this.

thanks jclarke for the infos

here is the procedure:

C:\Program Files\CSCOpx\bin>perl.exe 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

Enter option: 1

Number Variable Name [Variable Value]

---------------------------------------------------------

1. Backup Directory []

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

Warning: No logfiles found.

a. Add logfile(s)

d. Delete logfile(s)

q. Go back

Enter option or logfile number to edit: a

Enter logfile path []: c:\program files\ CSCOpx\log\ConfigMgmtServer.log

Enter number of archives to keep [0]: 3

Enter maximum file size (in kilobytes) [1024]: 5120

Compression extension (gz,Z,bz2): gz

Number Logfile Name Number of Archives Max Size Compress

-----------------------------------------------------------------------------

1. "c:\program files\ CSCOpx\log\ConfigMgmtServer.log " 3 5120 gz

a. Add logfile(s)

d. Delete logfile(s)

q. Go back

Enter option or logfile number to edit: a

Enter logfile path []: c:\program files\ CSCOpx\MDC\tomcat\logs\stdout.log

Enter number of archives to keep [0]: 3

Enter maximum file size (in kilobytes) [1024]: 5120

Compression extension (gz,Z,bz2): gz

Number Logfile Name Number of Archives Max Size Compress

-----------------------------------------------------------------------------

1. "c:\program files\ CSCOpx\log\ConfigMgmtServer.log " 3 5120 gz

2. "c:\program files\ CSCOpx\MDC\tomcat\logs\stdout.log " 3 5120 gz

a. Add logfile(s)

d. Delete logfile(s)

q. Go back

Enter option or logfile number to edit: q

Logrot Configuration Menu

-------------------------

1. Edit variables

2. Edit log files

3. Quit and save changes

4. Quit without saving changes

Enter option: 3

C:\Program Files\CSCOpx\bin>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: