1827482 Members
2046 Online
109965 Solutions
New Discussion

How to restart EMS?

 
yyghp
Super Advisor

How to restart EMS?

What's the right wait to restart EMS agent? EMS in the hardware monitor in OnlineDiag.
Thanks!
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: How to restart EMS?

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


Pete

Pete
yyghp
Super Advisor

Re: How to restart EMS?

So, I shouldn't use:

/sbin/init.d/ems stop
/sbin/init.d/ems start

is that right?
Thanks!
Robert-Jan Goossens
Honored Contributor

Re: How to restart EMS?

Hi,

To stop all EMS monitors while the system is running:

# /etc/opt/resmon/lbin/monconfig
(choose "k" from menu to stop EMS)

To start EMS monitors while the system is running:
(same but choose "e" to enable EMS)

Regards,
Robert-Jan
yyghp
Super Advisor

Re: How to restart EMS?

Hi Robert,

I tried to use "/etc/opt/resmon/lbin/monconfig"

But I noticed that the emsagent was still there after I use "K":

# ps -ef | grep ems
root 1382 1 0 Mar 12 ? 0:23 /etc/opt/resmon/lbin/emsagent

Thanks!
yyghp
Super Advisor

Re: How to restart EMS?

if I shutdown "diagnostic" with "/sbin/init.d/diagnostic stop", I noticed the following process was gone:

/usr/sbin/stm/uut/bin/sys/diagmond

So, which daemon is for EMS?
/usr/sbin/stm/uut/bin/sys/diagmond? or /etc/opt/resmon/lbin/emsagent? or other?

Thanks!
Pete Randall
Outstanding Contributor

Re: How to restart EMS?

Well, I was hoping that "/sbin/init.d/diagnostic stop" would do it because, if you look at the /sbin/init.d/ems script, it says right in there "'stop_msg')
# Should never occur: there is no K-link
echo "Stopping Event Monitoring Service"
;;"

The fact that there is no K-link would mean that it is not going to shut anything down. The fact that the ems entries exist in /etc/inittab with a respawn option also tell me that you may well not be able to shut them down with out going to run level 1 or 2.


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: How to restart EMS?

Hi,

The correct way to stop ems AND diagnostics is:

# /etc/opt/resmon/lbin/monconfig
use K to kill

# /sbin/init.d/diagnostic stop

Use "kill -9" to terminate any stray OnlineDiag process if there are any.

# /sbin/init.d/diagnostic start

# /etc/opt/resmon/lbin/monconfig
use E to enable

Regards,
Robert-Jan
Andrew Merritt_2
Honored Contributor

Re: How to restart EMS?

What is it exactly that you want to restart, and why? Is it the EMS agent, the EMS Hardware Monitors, or something else?

To expand on the answers above:

The 'K'ill option to monconfig will stop the EMS Hardware Monitors (part of the OnlineDiags; disk_em, dm_corehw/ia64_corehw, etc.), and the 'E'nable option will restart them.

/sbin/init.d/diagnostic controls the OnlineDiags daemons (diaglogd, diagmond, memlogd, cclogd, etc., not all of which run on all hardware).

You can also stop and start the OnlineDiags daemons using STM.

You can restart the EMS agent (emsagent), which communicates with SNMP, by using 'stop' and 'start' with /sbin/init.d/emsa, but the man page recommends starting via the snmpd startup script ('man emsagent').

Andrew