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

Error Using Logrot.pl to rotate Syslog files

Hello, I am trying to use the logrot.pl on a CiscoWorks LMS 2.6 server running Windows 2000. I get this error message:

Failed to get a successful value back from C:\PROGRA~1\CSCOpx\bin\logrot_stat.exe, using Perl stat instead (note: this will f ail for files > 4 GB).

If I manually run the logrot_stat.exe command, I instantly get a value. Is there a way to fix or get around this error?

Thanks, Bob Schlifke

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Error Using Logrot.pl to rotate Syslog files

There is a bug in logrot that I recently fixed that could account for this. The fix has been rolled into LMS 3.0, but has not made it to 2.6 yet. As a workaround, use logrot_trunc.exe on the log files greater than 2 GB. Once they are less than 2 GB, logrot will be able to successfully rotate them going forward.

2 REPLIES
Cisco Employee

Re: Error Using Logrot.pl to rotate Syslog files

There is a bug in logrot that I recently fixed that could account for this. The fix has been rolled into LMS 3.0, but has not made it to 2.6 yet. As a workaround, use logrot_trunc.exe on the log files greater than 2 GB. Once they are less than 2 GB, logrot will be able to successfully rotate them going forward.

New Member

Re: Error Using Logrot.pl to rotate Syslog files

Thank you for your quick response.

146
Views
0
Helpful
2
Replies
CreatePlease login to create content