cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1464
Views
0
Helpful
4
Replies

c:\Program files\CSCOpx\bin\logrot.pl for windows.

Hi folks!

I would like to use the logrot.pl utility in windows environment!

Is it possible?

TKS!

Leonardo

4 Replies 4

derek.sizeland
Level 1
Level 1

Yes it is possible.

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

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 .

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?

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.

Review Cisco Networking for a $25 gift card