# How can i kill them ?

**URL:** <https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [November 30, 2004, 7:40pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061 "2004-11-30T19:40:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sedo](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sedo](https://techcommunity.softwareag.com/u/Sedo)\
**Post date:** [November 30, 2004, 7:40pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/1 "2004-11-30T19:40:10Z")

</div>

Dear Friends, 🙂  
  
we must create for Veritas Cluster some   
shell-scripts on SOLARIS.  
  
But it is very difficult to kill servers specifically.  
  
i can kill the services specifically with control-center, too, with rigth mouse button and shutdown !   
  
I want to do it with command-line , too.  
  
  
It is the difficult way :  
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
  
First i must find the USER-IDs !  
  
etbinfo -b -d -n -c -s -p -f  
  
it means for our environment :  
  
  
etbinfo -bETBXXX -dSERVER -nUPEBXXX -cRPC   
-sCALLNAT -pserver.pro -f"%P-USER-ID"  
  
For example our Server has 2 Services, because of these we have now 2 USER-IDs.  
  
30344E6F7620372D3233313734352D3030303030312D303030303445  
  
30344E6F7620372D3233313734352D3030303030312D303030303446  
  
  
Now i can kill this Server in two steps :  
  
kkksag =\>etbcmd -bETBXXX -dSERVER -cSHUTDOWN -oIMMED -p30344E6F7620372D3233313734352D3030303030312D303030303445   
kkk55sag =\>etbcmd -bETBXXX -dSERVER -cSHUTDOWN -oIMMED -p30344E6F7620372D3233313734352D3030303030312D303030303446  
  
  
is there any other way to do this ?  
  
thank you in advance !  
  
kind Regards,  
  
Sedo :rolleyes:

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [December 1, 2004, 8:52pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/2 "2004-12-01T20:52:25Z")

</div>

Dear Sedo,  
  
there is an alternative way: you can also use the RPC Terminate Server command.  
There is an example which includes the C source code, on the Windows installation you find it in the folder …\EntireX\Examples\Broker RPC\client (client.c, client.exe).  
As far as I know this is also available in the Unix installation.  
  
Kind regards,  
Rolf

---

<div class="post-metadata">

**Author:** ![Sedo](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sedo](https://techcommunity.softwareag.com/u/Sedo)\
**Post date:** [December 2, 2004, 6:21pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/3 "2004-12-02T18:21:38Z")

</div>

Dear Rolf,  
  
  
We have gnu C-Compiler gcc, because of this i couldn’t compile   
  
our ./exx/v711/examples/broker\_rpc/client.c !   
  
If you explain me, how i can change the client.c for gcc , then i can try it again …  
  
thank you in advance  
  
kind Regards,  
  
Sedo 😕

---

<div class="post-metadata">

**Author:** ![Rolf\_Bahlke](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/rolf_bahlke/32/109_2.png) [@Rolf\_Bahlke](https://techcommunity.softwareag.com/u/Rolf_Bahlke)\
**Post date:** [December 2, 2004, 7:28pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/4 "2004-12-02T19:28:14Z")

</div>

Sorry, I can’t help I’m not a Unix guru.  
  
Maybe you can just use the delivered executable for the example and redirect the standard input. Then you don’t need a recompile.  
  
Kind regards,  
Rolf

---

<div class="post-metadata">

**Author:** ![Sedo](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sedo](https://techcommunity.softwareag.com/u/Sedo)\
**Post date:** [December 2, 2004, 7:58pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/5 "2004-12-02T19:58:47Z")

</div>

Dear Rolf,  
  
in the same directory i haven’t delivered executable for the example. But in other directory i have one delivered executable, but i receive error-message if i start it !  
  
anut25:sag =\> pwd  
/usr/SAG/exx/v711/examples/bin  
  
anut25:sag =\> ls  
bcoc bcos client client\_mt  
  
anut25:sag =\> client  
  
ld.so.1: client: fatal: liberx.so: open failed: No such file or directory  
Killed  
  
Thank you …  
  
have a nice day !  
  
  
kind Regards,  
  
Sedo

---

<div class="post-metadata">

**Author:** ![Erwin\_Barth](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@Erwin\_Barth](https://techcommunity.softwareag.com/u/Erwin_Barth)\
**Post date:** [December 6, 2004, 10:25pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/6 "2004-12-06T22:25:06Z")

</div>

Hi Sedo.  
Seems your EntireX Solaris installation is not ready. Please (manually) change LD\_LIBRARY\_PATH to include the EntireX lib path.  
Start the RPC client with:  
… client broker-id RPC servername CALLNAT  
In the selection menu choose T=Terminate. The other menu items are RPC specific and might not work in this context.  
If this kind of termination is OK, the simples way might be to call the client via shell-script (and T in some input file) …  
Please let me know.  
Kind regards, Erwin

---

<div class="post-metadata">

**Author:** ![Sedo](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@Sedo](https://techcommunity.softwareag.com/u/Sedo)\
**Post date:** [December 9, 2004, 5:43pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/7 "2004-12-09T17:43:34Z")

</div>

Our Environment setting was :  
  
----------------  
env !  
----------------  
  
LD\_LIBRARY\_PATH=/esag/common/lib:/esag/common/arg/lib:/esag/common/lib:/esag/exx/v711/lib:/esag/exx/v711/examples/lib  
  
LOGNAME=esag  
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
  
ETB200 is defined !  
  
anupXX:esag =\> cd etb  
anupXX:esag =\> ls  
ETBXXX  
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
  
client ETBXXX RPC UTBXXX CALLNAT  
  
Going to Server UTEBNZRX at ETBXXX  
  
CMD Function  
------------------------------------------  
P RPC POWER function  
C RPC CALCULATOR function  
H RPC HELLO procedure  
I Ping the running server  
T Terminate the running server  
. Exit  
------------------------------------------  
Please select: P  
  
Calling POWER: 25 \*\*2 =  
ERX error 10010016 occurred!  
Severity = Error, Class = 1001, Returncode = 16  
Message = Callee not found.  
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
  
Please select: I  
  
  
 → EntireX Java RPC Server 7.1.1.0 SunOS 5.9 sparc  
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
  
Please select: H  
  
Calling HELLO: This is the Client  
 Hello ERX-USER  
  
ERX error 10010016 occurred!  
Severity = Error, Class = 1001, Returncode = 16  
Message = Callee not found.  
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
  
Please select: T  
  
Are you sure? (y/n)y  
  
 → SHUTDOWN in progress…  
  
 → Termination in progress.  
  
Press Enter to quit.  
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  
  
  
OK ! Thanks a lot !   
  
I try to write now a shell-script for this functionality .   
  
  
kind Regards, Sedo 😉

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/how-can-i-kill-them/59061/8 "2021-04-02T14:39:38Z")

</div>


