Quote:
Originally Posted by kkhan
can we delete .trc files and old error log files from /var/adm/ras directory in order to free up /var. Also what to delete from /var/tmp ?
|
Hey,
You can develop a small script and schedule it under cron for removing the errlogs which are too older.
You can use
Code:
Quote:
errclear
# To delete all entries in the error log classified as software errors, enter:
errclear -d S 0
# To clear all entries from the alternate error-log file /var/adm/ras/errlog.alternate, enter:
errclear -i /var/adm/ras/errlog.alternate 0
# To clear all hardware entries from the alternate error-log file /var/adm/ras/errlog.alternate, enter:
errclear -i /var/adm/ras/errlog.alternate -d H 0
|
Or run a simple script for .trc using rm and schedule it under cron if needed.