Dell OpenManage and their TTY logs

Chris Davies Chris.Davies at manheimeurope.com
Wed Oct 22 06:25:00 CDT 2008


> If upgrading to 5.5 is not an option then one workaround would be to 
> edit the cron table to run a delete every day.
> Below is an example of using cron table to delete the file:

> crontab -e
> 21 15 * * * rm -f /var/log/TTY_*

> crontab -l # edit activity can be seen


For those with logrotate on Debian, the following works for me:

cat >/etc/logrotate.d/omsa-tty <<xx
# Housekeeping for DELL OMSA log files
# http://www.planetmy.com/blog/how-to-logrotate-omsa-tty-log-file-on-linux/
#
/var/log/TTY_00000000.log /var/log/TTY_00000001.log {
     daily
     notifempty
     missingok
     rotate 7
     compress
     delaycompress
     sharedscripts
     postrotate
         /usr/sbin/invoke-rc.d dsm_om_shrsvc restart >/dev/null 2>&1 || true
     endscript
}
xx


And the result:

$ cd /var/log; ls -l *TTY*
-rw-rw-r-- 1 root root 10133552 2008-10-22 12:15 TTY_00000000.log
-rw-rw-r-- 1 root root 41110398 2008-10-22 06:24 TTY_00000000.log.1
-rw-rw-r-- 1 root root  5110813 2008-10-21 06:19 TTY_00000000.log.2.gz
-rw-rw-r-- 1 root root  5101472 2008-10-20 06:21 TTY_00000000.log.3.gz
-rw-rw-r-- 1 root root  5078471 2008-10-19 06:22 TTY_00000000.log.4.gz
-rw-rw-r-- 1 root root  4952923 2008-10-18 06:18 TTY_00000000.log.5.gz
-rw-rw-r-- 1 root root  4942841 2008-10-17 06:20 TTY_00000000.log.6.gz
-rw-rw-r-- 1 root root  4959352 2008-10-16 06:22 TTY_00000000.log.7.gz

Chris

----------------------------------------------------------------------------- 
Registered In: England
Registered Number: 448761
Registered Office: Manheim Auctions Limited, Central House, Leeds Road, Rothwell, Leeds, LS26 0JE

This e-mail and any attachments may be confidential and/or legally privileged. 
The view of the author may not necessarily reflect those of the Company. 
If you have received this e-mail and are not a named addressee, 
then you must not use, disclose, copy, print or rely on this e-mail. 
Manheim makes no representation or warranty as to the absence of viruses in this e-mail or any attachments 

Visit our website at www.manheim.co.uk 
----------------------------------------------------------------------------- 



More information about the Linux-PowerEdge mailing list