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


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

    Founding Member

You want to use Logrot is documented in the CiscoWorks online help (search for logrot). Essentially, run NMSROOT/bin/perl NMSROOT/bin/ -c to configure it. Once you have it setup, you can run NMSROOT/bin/perl NMSROOT/bin/ 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.


This Discussion