System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the purpose of "/var/stm/logs/os" in HPUX

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

What is the purpose of "/var/stm/logs/os" in HPUX

Hi All,

I am new to HPUX.

What is the purpose of the directory "/var/stm/logs/os" in HPUX.

Shall I delete all the files availble with in this directory.
6 REPLIES
Hakki Aydin Ucar
Honored Contributor
Solution

Re: What is the purpose of "/var/stm/logs/os" in HPUX

this is about STM , (=Support Tool Manager) logs. it is very good tool to be inform about your hardware and problems related with any hardware like from CPU to fans..
if you delete them I think, you can lose history of at least cc boot logs,
are you really need to delete them OR why do you need it ?
Pete Randall
Outstanding Contributor

Re: What is the purpose of "/var/stm/logs/os" in HPUX

> Shall I delete all the files availble with in this directory.

No, not a good idea.


Pete

Pete
senthil_kumar_1
Super Advisor

Re: What is the purpose of "/var/stm/logs/os" in HPUX

Hi All,

As I need space in /var, I would like to delete.

1)Will the server not function if we are deleting those files?


2)Will the server come up if we restart the server after deleting those files?
Dennis Handly
Acclaimed Contributor

Re: What is the purpose of "/var/stm/logs/os" in HPUX

>I need space in /var, I would like to delete.

How many are there? How big and how old?
You could archive all but the latest few elsewhere.
Robert_Jewell
Honored Contributor

Re: What is the purpose of "/var/stm/logs/os" in HPUX

As mentioned these files are used by the STM logging subsystem. These logs are in the format of "log.x.raw", "log.x.raw.cur", and "memlog".

Also, depending on the server type, you may also find within this directory files such as "fpl.log.xxx", "ccbootlog", and "ccerrlog". These files are copied logs from the MP/GSP subsystem.

If you have many of these logs its an indicator that a problem has been occurring. With many log.x.raw files, this is typically a problem with an I/O device or controller. However the problem could have occurred years ago.

Before deleting anything its advised to view the logs first to see if they still apply:
To view the log.x.raw files, use STM:
#cstm --> ru --> logtool

This link will give more information regarding using logtool:
http://docs.hp.com/en/diag/archive/log_data.htm


If you are certain the logs are no longer useful they can be safely removed. However the following should NOT be removed:

memlog
log.X.raw.cur
ccbootlog and ccerrlog (if present)

If there are many FPL logs then check the dates on those. Again, if there are many logs created recently, you should check for a problem elsewhere. FPL logs can be most easily viewed using the MP Event Log viewer.

Again, if the logs are found to be out of date, they can be removed. Just do not remove the latest of these logs as it is the active one.

-Bob
----------------
Was this helpful? Like this post by giving me a thumbs up below!
Bill Hassell
Honored Contributor

Re: What is the purpose of "/var/stm/logs/os" in HPUX

/var/stm/logs/os normally uses a few megabytes or when there are serious problems, several dozen megabytes. If you have more than 20 MB in that directory (hint: du -k /var/stm/logs/os), then you probably have a serious hardware failure going on. You need to get your server fixed.

As far as /var filling up, start by finding the biggest directories:

bdf /var
du -kx /var | sort -rn | head -20

Post the results and we can point out where space can be recovered.


Bill Hassell, sysadmin