How to Trim log file size

Unanswered Question
Jul 22nd, 2008
User Badges:

how do i resolve below Problem from my Critical Message Window Portlet


Processes DFMCTMStartup, DataPurge are down

Log files CVDeviceSelector.log.*, psu.log.* exceeded the recommended size limit


i have run

perl logBackup.pl -force -dir D:\LMSBackups


but the file size for PSU.log* is 4000

while CVDeviceSelector.log* is 10240

These numbers stay the same after running the perl script

what am i doing wrong

thanks



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Tue, 07/22/2008 - 11:51
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You want to use logrot.pl. Logrot is documented in the CiscoWorks online help (search for logrot). Essentially, run NMSROOT/bin/perl NMSROOT/bin/logrot.pl -c to configure it. Once you have it setup, you can run NMSROOT/bin/perl NMSROOT/bin/logrot.pl without any arguments to rotate the logs, or schedule this rotation using your system's command scheduler.


That said, the recommended limits are quite low, and we often see these flagged in the GUI. In addition to log file rotation, you can adjust the limits in NMSROOT/conf/logstat.conf.

Actions

This Discussion