Operating System - HP-UX
1862935 Members
1869 Online
110446 Solutions
New Discussion

Re: Support Tool Manager (STM)

 
Graham_54
New Member

Support Tool Manager (STM)

My root filesystem is /95 percent full. I have removed a enormous activity_log file generated by stm, however the filesystem is still 95 percent.

Q. How can I stop and restart stm ?
10 REPLIES 10
Bharat Katkar
Honored Contributor

Re: Support Tool Manager (STM)

You can stop it by:

# /sbin/init.d/diagnostic stop
# /sbin/init.d/ems stop

Also if you want to stop them for next reboot then modify these files accordingly.

/etc/rc.config.d/ems
/etc/rc.config.d/emsagtconf
/etc/rc.config.d/diagnostic

Regards,
You need to know a lot to actually know how little you know
Alessandro Pilati
Esteemed Contributor

Re: Support Tool Manager (STM)

Stop STM
/sbin/init.d/diagnostic stop
Restart STM
/sbin/init.d/diagnostic start

Remember that STM has a parent process, diagmond that launches diaglogd and memlogd.

So verify the correct restarting by
ps -eaf|egrep "diaglogd|memlogd".

Regards,
Alex
if you don't try, you'll never know if you are able to
Jannik
Honored Contributor

Re: Support Tool Manager (STM)

It is the : /usr/sbin/stm/uut/bin/sys/diagmond you want to restart it is done like this:
/sbin/init.d/diagnostic stop
/sbin/init.d/diagnostic start
jaton
Cem Tugrul
Esteemed Contributor

Re: Support Tool Manager (STM)

STM stop&start;

/sbin/init.d/diagnostic stop
/sbin/init.d/diagnostic start

Good Luck,

Our greatest duty in this life is to help others. And please, if you can't
Graham_54
New Member

Re: Support Tool Manager (STM)

When I try to stop/restart ems I get the following

This script does not stop the EMS Services
Do not run this script manually from the command line prompt.
EMS monitors may not behave as expected.
If you have performed this action already, execute the command
/usr/bin/rm -f /var/stm/data/tools/monitor/.system_shutdown_ems

EMS VERSION
reslog.html: Monitor Version.....: B.01.05
reslog.html: Client Configuration File Version...: A.01.00
reslog.html: OS Version......................: B.11.00
reslog.html: System Firmware Version.........: 39.11
reslog.html: EMS Version.....................: A.03.20
reslog.html: STM Version.....................: A.29.00
reslog.html: Firmware Version........: AN00
reslog.html: Monitor Version.....: B.01.05
reslog.html: Client Configuration File Version...: A.01.00
reslog.html: OS Version......................: B.11.00
reslog.html: System Firmware Version.........: 39.43
reslog.html: EMS Version.....................: A.03.20
reslog.html: STM Version.....................: A.29.00


Bharat Katkar
Honored Contributor

Re: Support Tool Manager (STM)

HI,
If reboot is possible then the best way to do it is to modify the files i specified above in /etc/rc.config.d and simply reboot the server.
That shoudl help/.
Regards,
You need to know a lot to actually know how little you know
Andrew Merritt_2
Honored Contributor

Re: Support Tool Manager (STM)

If the problem is caused by the large activity_log file, then you may need to restart the process that has it open (if a process has a file open when the file is deleted (with 'rm'), the disk space will not be freed until it is closed by the process).

The instructions above to restart STM should do this:
/sbin/init.d/diagnostic stop
/sbin/init.d/diagnostic start


You shouldn't need to reboot, and I wouldn't recommend disabling the OnlineDiags.

I would also recommend upgrading the OnlineDiags to the last release for 11.00. You currently have A.29.00 installed, which is the December 2001 release, and this does have a known problem leading to large activity_log files. You need to upgrade to the latest version, which is A.44.00, March 2004 for 11.00, and also install PHSS_32921 which is the latest patch for that version. This should stop the problem happening in future.

Andrew
Marlou Everson
Trusted Contributor

Re: Support Tool Manager (STM)

Next time you may want to try clearing the activity_log through stm itself. You can select System Activity Log from the System menu. It will convert the raw file and then there is an option to clear it.

I have had stm fail to convert really large log files. I don't remember if I could still clear or remove them from stm. I think I could. Anyway, if stm removes it, then the space should really get freed up.

Marlou
Bill Hassell
Honored Contributor

Re: Support Tool Manager (STM)

Did you look at the log? How about syslog.log? The large file may indicate a possible hardware problem is occurring.


Bill Hassell, sysadmin
Graham_54
New Member

Re: Support Tool Manager (STM)

Hi Thanks to all the replies.

I found the problem which actually wasn't related to the actitity log file.

After bringing the system to single user mode

shutdown 0

and unmounting all filesystem

umount -a

I found data in one directory which was consuming space. I removed this and mounted the file systems again, / now 16 percent

Thanks,

Graham.