cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
785
Views
0
Helpful
3
Replies

LMS 2.6 Utility to rotate log files

ttrinh73349
Level 1
Level 1

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 3

Joe Clarke
Cisco Employee
Cisco Employee

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.

andrzej.kolman
Level 1
Level 1

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

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.