1826925 Members
2040 Online
109705 Solutions
New Discussion

Re: STM question

 
SOLVED
Go to solution
Matt Slane
Occasional Advisor

STM question

I was just looking at disk space on one of my servers. The /var/stm/logs/os directory is half a gb now, and I was wondering if there is a particular way to clear out some of these logs. I have gone into the xstm to verify that there is no problems, does anyone have any suggestions?

Thanks,
Matt
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: STM question

You can either delete them or "cat /dev/null> filename" them.

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: STM question

I should have urged "cat /dev/null >filename" and not delete, unless you do a fuser or lsof on the files to insure that they aren't open.


live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor

Re: STM question

The "clear log" function in stm should be able to clear it for you. I usually do ..
# cd /var/stm/logs/os
# mv memlog /tmp/oldlog/memlog.old
# cstm
CSTM>ssd
===> shutting down stm
CSTM>ssu
===> startup stm
The new log will be created in /var/stm/logs/os
Matt Slane
Occasional Advisor

Re: STM question

Thanks for all the quick responses. I have a couple of questions, first where is the clear log function in the stm? Second, are all these files completely useless, reporting in the STM after it creates the current log? Once again, thanks for all the quick responses, I will assign points quickly...

Matt
harry d brown jr
Honored Contributor
Solution

Re: STM question

S.K. Chan
Honored Contributor

Re: STM question

For the memlog example .. to clear the log ..

1) run stm
2) select memory (use spacebar to highlight)
3) use tab to go up the top menu
4) select tools->utility->run
5) select logtool
6) click OK
7) use tab to go up the top menu again
8) choose memory->clearlog

That will keep the latest run output and remove the rest.