02-28-2009 11:57 PM
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?
Solved! Go to Solution.
03-01-2009 12:34 AM
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.
03-01-2009 12:34 AM
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.
03-01-2009 09:54 PM
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>
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: