1833053 Members
2538 Online
110049 Solutions
New Discussion

sam error message

 
augusto cossa
Frequent Advisor

sam error message

Good day,

I would like to trim some files using SAM but here is an error message below:

"an error occured after the trim while trying to save the remaining log information to the file "/var/adm/syslog/mail.logSAMTRM" you should examine this file to see if its contents are correct.

What to do, because I have examined this files and seems to be good.

avice

Augusto
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: sam error message


To get more info on the error SAM received when it was trying to trim this file take a look at the bottom of the sam logfile, /var/sam/log/samlog
Im from Palmerston North, New Zealand, but somehow ended up in London...
Victor BERRIDGE
Honored Contributor

Re: sam error message

Since you seem to thick the countents of the file is correct, dont bother about SAM's message,
If you are later in trouble, I would synchronize by hand this tome the syslog and mail.log files:
cd /var/adm/syslog
mv mail.log OLDmail.log
mv syslog.log syslog.log.OLD

And restart syslogd:
cd /sbin/init.d
./syslogd stop
./syslogd start

Good luck
CHRIS_ANORUO
Honored Contributor

Re: sam error message

Hi Augusto,

The error occured because the file was being written to while the trim command was executing. Ignore it, trim files when system is less busy.

Cheers!
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Rick Garland
Honored Contributor

Re: sam error message

The file you are trying to trim is open and being written to.

There will be differences is the files because of the newly written info.