cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
661
Views
0
Helpful
5
Replies

Re-direct log files

scott.lorenzen
Level 1
Level 1

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

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

View solution in original post

5 Replies 5

Marvin Rhoads
Hall of Fame
Hall of Fame

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.

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.

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

Thank you this will help me.

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: