Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

LMS 2.6 Utility to rotate log files

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.

thanks

3 REPLIES
Cisco Employee

Re: LMS 2.6 Utility to rotate log files

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.

Community Member

Re: LMS 2.6 Utility to rotate log files

You can also use Solaris logadm tool. Its config is in /etc/logadm.conf.

Cisco Employee

Re: LMS 2.6 Utility to rotate log files

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.

140
Views
0
Helpful
3
Replies
CreatePlease to create content