IMC
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I stop all iMC processes with command line ?

SOLVED
Go to solution
Alain WINKEL
Advisor

How can I stop all iMC processes with command line ?

Hello,

 

We are using currently HP iMC Plat 5.2 Enterprise (E0401P05 and iMC NTA 5.2 E0401P02).

 

My question is : how can I stop all iMC processes with command line (before server shutdown/reboot), like with console "HP Deployment Monitoring Agent" ?

 

Thanks by advance.

 

Regards.

 

Alain

 


--
¡ No hablo francés ! ¿ Es qué la informática ? ¿ Es qué un ordenador ?
--
6 REPLIES
LindsayHill
Honored Contributor
Solution

Re: How can I stop all iMC processes with command line ?

In <IMC>/client/bin, there's startup.bat and shutdown.bat scripts you can run. Or startup.sh/shutdown.sh on Linux.

 

[EDIT] - actually this needs a little more testing - I'm seeing some mixed results with this.

Alain WINKEL
Advisor

Re: How can I stop all iMC processes with command line ?

OK,

 

I'll test it as soon as possible.

 

Many thanks.


--
¡ No hablo francés ! ¿ Es qué la informática ? ¿ Es qué un ordenador ?
--
Alain WINKEL
Advisor

Re: How can I stop all iMC processes with command line ?

Hi,

 

Actually the shutdown is not working properly. The process "JServer" stops him alone but then immediately restarts alone. All other processes are started.

So I close this discussion at the moment.

Thanks again for your help.

 

@+


--
¡ No hablo francés ! ¿ Es qué la informática ? ¿ Es qué un ordenador ?
--
FI-PH
Occasional Contributor

Re: How can I stop all iMC processes with command line ?

Hi nothlandboy,

iwould like to reopen the discussion about stopping/starting imc! The discussion is 4 years old and i thing that somthing has happend inbetween! If not so close again, else it would be graet to get actual informtion about that thema.

1605
Occasional Contributor

Re: How can I stop all iMC processes with command line ?

I think this is a interesting question.

I found a lot of "startup.sh/bat" files. It seems as you have to start them separate if you want to start the services by shell.

Maybe somebody has an idea where you can find one skript to get all this services started. On the otherhand if you find all scripts for the services you can make your own script.

Does anybody know something about starting all the services with one script?

 

1605
Occasional Contributor

Re: How can I stop all iMC processes with command line ?

Meanwhile I made a script to start and stop the iMC services by shell. (It's for linux only, but maybe it can help to make such a script for windows.)

 

#!/bin/bash
# Start/stop the iMC Services
 iMCdir= /opt/iMC
 
echo $1
if [ $1 == "start" ]
 then
  echo start services
  cd $iMCdir/server/bin/
  sh start_server.sh
  cd $iMCdir/seplat/client/bin/
  sh startup.sh
  cd $iMCdir/client/bin/
  sh startup.sh
  cd $iMCdir/euplat/client/bin/
  sh startup.sh
elif [ $1 == "stop" ]
 then
  echo stop services
  cd $iMCdir/server/bin/
  sh stop_server.sh
  cd $iMCdir/seplat/client/bin/
  sh shutdown.sh
  cd $iMCdir/client/bin/
  sh shutdown.sh
  cd $iMCdir/euplat/client/bin/
  sh shutdown.sh
 else
  echo Error - Please use the option "start" or "stop" to use this script.
fi