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.

Silver

huge log files in cw LMS

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

Re: huge log files in cw LMS

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.

2 REPLIES
Cisco Employee

Re: huge log files in cw LMS

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.

Silver

Re: huge log files in cw LMS

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>

574
Views
0
Helpful
2
Replies
CreatePlease to create content