derek.sizeland Thu, 01/24/2008 - 05:05
User Badges:

Yes it is possible.

Copy the command into a .bat file and then add it to scheduled tasks.

Joe Clarke Thu, 01/24/2008 - 07:17
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You don't even need to create a batch file. You can schedule logrot.pl directly. For example, to run logrot.pl every day at 1:00 am:


at 01:00 /every:M,T,W,Th,F,S,Su C:\progra~1\CSCOpx\bin\perl.exe C:\progra~1\CSCOpx\bin\logrot.pl


For on using logrot can be found in the Common Services online help at http://server/help/cmf/logrot.html .

Leonardo Roberto Sun, 02/03/2008 - 11:49
User Badges:

This mean...

after configured logrot files, size, path, etc.., with NMSROOT\bin\perl.exe NMSROOT\bin\logrot.pl -c, I need to run it by scheduled task, like you esplained?


Only shedule logrot, I will have applied the configurated log rotation?


Joe Clarke Sun, 02/03/2008 - 11:55
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Yes, you must run logrot.pl periodically without the -c argument to get it to rotate the logs. The rotation will be done based on the configuration set when running logrot.pl -c. This config file is stored in NMSROOT/objects/logrot.

Actions

This Discussion