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

Re-direct log files

Is there a way to redirect all of the log files that CiscoWorks Generate? For instance the syslog.log seems to be my biggest problem in that the shear size of it is very large and it takes up all 21 GB of free disk space then crashes my server. I then have to stop all services and relocate the file and restart everything.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Re-direct log files

If you want to change the syslog file location you can use the perl script NMSROOT/bin/syslogConf.pl to do so.

More information is available here:

http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_resource_manager_essentials/4.2/user/guide/cwcli.html#wp1314640

5 REPLIES
Hall of Fame Super Silver

Re: Re-direct log files

The log file cannot be redirected to an alternate location or volume, but you can and should use the log rotation script (logrot.pl) to manage it. Search the online help for "logrot" to get more details

You can also purge old records, if you like. (Resource Manager Essentials > Admin > Syslog > Set Purge Policy) Immediate purges are also an option.

In the broader sense, you may want to track down the source of the syslog messages. Often, a few configuration errors are responsible for a high volume of messages. A proactive network operations staff may be able to track down these prblems and correct them, reducing the syslog messages to a more manageable number. Reduction of the volume of syslog messages attributable to configuration errors can be a useful metric to measure the effectiveness of the network operations staff.

Hope this helps. Please rate helpful posts.

New Member

Re: Re-direct log files

Thank you for the reply. I have a script that does the logrot.pl each day in order to archive the logs off the system. I have also configured the Purge Policy accordingly and that is working.

I agree with your broader sense of things. This issue began when an outside individual began a report on a unit for more the 30 days. That report had been gathering syslog information on that unit and the data was overwhelming the server. Since this report has stopped the growth of the syslog.log is of normal size and no longer a factor.

Now just have to work on the security of the box to not allow this outside influence. Thanks.

Re: Re-direct log files

If you want to change the syslog file location you can use the perl script NMSROOT/bin/syslogConf.pl to do so.

More information is available here:

http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_resource_manager_essentials/4.2/user/guide/cwcli.html#wp1314640

New Member

Re: Re-direct log files

Thank you this will help me.

Hall of Fame Super Silver

Re: Re-direct log files

Thanks for the catch , Martin. My mistake in my earlier response is noted. That feature is now reinforced in my memory. :)

288
Views
0
Helpful
5
Replies
CreatePlease login to create content