cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
858
Views
0
Helpful
1
Replies

How to Trim log file size

dmamattah
Level 1
Level 1

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 1

Joe Clarke
Cisco Employee
Cisco Employee

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.

Review Cisco Networking for a $25 gift card