Operating System - HP-UX
1833543 Members
2832 Online
110061 Solutions
New Discussion

Re: Unable to stop EMS in hpux 11.11 with /sbin/init.d/ems stop

 
SOLVED
Go to solution
Prasanth Vattoly
Frequent Advisor

Unable to stop EMS in hpux 11.11 with /sbin/init.d/ems stop

HI all

I want to stop EMS in one hpux 11.11 server to unmount “/etc/opt/resmon/persistence”.
I am unable to stop the EMS by /sbin/init.d/ems stop command. Getting this error …


=> sudo /sbin/init.d/ems stop
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
You can ignore this message in /etc/rc.log and /etc/rc.log.old

Please suggest some other methods to stop EMS .



Thanks in advance
Prasanth



prasanth.v.a
5 REPLIES 5
Luk Vandenbussche
Honored Contributor
Solution

Re: Unable to stop EMS in hpux 11.11 with /sbin/init.d/ems stop

Steven E. Protter
Exalted Contributor

Re: Unable to stop EMS in hpux 11.11 with /sbin/init.d/ems stop

Shalom,

sudo probably won't work here.

You need root access or to have root grant restricted SAM access to your user id.

Then you should be able to use SAM to shut off EMS.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Krastev
Honored Contributor

Re: Unable to stop EMS in hpux 11.11 with /sbin/init.d/ems stop

To stop diagnostics while the system is running:

/sbin/init.d/diagnostic stop

You must be root of course.

regards,
ivan
whiteknight
Honored Contributor

Re: Unable to stop EMS in hpux 11.11 with /sbin/init.d/ems stop

Hi,

Those start up script such as /sbin/init.d/ it is advisable not to use assign sudo to execute it.

Further Sudo is an opensource tool, you may consider RBAC which is HP equivalent of Sudo

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=AccessControl

WK
Problem never ends, you must know how to fix it
Prasanth Vattoly
Frequent Advisor

Re: Unable to stop EMS in hpux 11.11 with /sbin/init.d/ems stop

Hi all..


its not still solved. This is the "action case" in /sbin/init.d/ems for stop option. As per my knowlegde , /sbin/init.d/ems stop will not stop the service.

=============================================
'stop')
print "This script does not stop the EMS Services"
if [ -d /var/stm/data/tools/monitor ]
then
print "Do not run this script manually from the command line prompt."
print "EMS monitors may not behave as expected."
print "If you have performed this action already, execute the command"
print "/usr/bin/rm -f /var/stm/data/tools/monitor/.system_shutdown_ems"
print "You can ignore this message in /etc/rc.log and /etc/rc.log.old"

/usr/bin/touch /var/stm/data/tools/monitor/.system_shutdown_ems
/usr/bin/chmod 444 /var/stm/data/tools/monitor/.system_shutdown_ems
fi
exitval=$SUCCESS # No-op
;;

=============================================


This script is unable to stop EMS eventhough i am giving the stop command from root user. So i want so other method to stop EMS.


Thanks in advance
Prasanth
prasanth.v.a