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.

New Member

How to Trim log file size

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

Re: How to Trim log file size

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.

310
Views
0
Helpful
1
Replies