Operating System - HP-UX
1847335 Members
1973 Online
110264 Solutions
New Discussion

Need to stop/start the EMS service on a HP-UX server.

 
S.J. Sarwar
Occasional Advisor

Need to stop/start the EMS service on a HP-UX server.

Hi,

I am currently automating some EMS job, which requires me to shutdown the EMS, perform the job, and then restart the EMS back.

Could anyone tell me, How to start/stop EMS from command Line.

Thanks,
Sarwar.
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Need to stop/start the EMS service on a HP-UX server.

/sbin/init.d/ems stop

/sbin/init.d/ems start
If it ain't broke, I can fix that.
Chan 007
Honored Contributor

Re: Need to stop/start the EMS service on a HP-UX server.

Hi,

/sbin/rc2.d/S900ems stop
/sbin/rc2.d/S900ems start

Chan
Chauhan Amit
Respected Contributor

Re: Need to stop/start the EMS service on a HP-UX server.

Correct way to start/stop ems service is:

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

-Amit
If you are not a part of solution , then you are a part of problem
Yogeeraj_1
Honored Contributor

Re: Need to stop/start the EMS service on a HP-UX server.

hi sarwar!

DO NOT use
/sbin/init.d/ems stop
or
/sbin/init.d/ems start

If you view the script /sbin/init.d/ems

it says:
This script does not stop the EMS Services

also if /var/stm/data/tools/monitor directory exists then

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_shutdo
wn_ems

You can ignore this message in /etc/rc.log and /etc/rc.log.old

to be in the safe side, just modify the line in /etc/rc.config.d/ems:
EMS_ENABLED=1
to
EMS_ENABLED=0

and restart the server.

After you finish, revert it back and restart the server again.

Hope you can afford the downtimes.

Am just being cautious!

hope this helps too!

kind regards
yogeeraj


No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Andrew Merritt_2
Honored Contributor

Re: Need to stop/start the EMS service on a HP-UX server.

To answer your question, we'd need to know smoe more details. What exactly do you mean by 'EMS'?

Do you mean the EMS (Event Monitoring Service) service itself, or just the EMS Hardware Monitors, or HA Monitors?

What job are you automating? When you do it by hand, how do you stop EMS?

Andrew