LMS 2.6 Utility to rotate log files

Unanswered Question
Jun 19th, 2008

I'm trying to backup Ciscoworks database and the backup job failed due to space issue. Is there a utility to help rotate /var/adm/CSCOpx/log log files? Or any utilities to help clean up the /var/adm/CSCOpx/ directory.


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Thu, 06/19/2008 - 11:13

Absolutely. We ship logrot.pl with LMS which can be configured to periodically rotate (and optionally archive) log files. The logrot.pl script is located in /opt/CSCOpx/bin, and you can find more details on how to configure it in the Common Services online help. Just search for logrot.

Joe Clarke Fri, 06/20/2008 - 08:04

Yes, you can. However, be very careful to use the -c option to logadm when rotating syslog_info as not doing this will change the inode number of the file requiring syslogd to be restarted before new syslog messages will show up.

Additionally, other log files (e.g. daemons.log) cannot be properly rotated by logadm when dmgtd is running.


This Discussion