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:
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
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
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
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
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
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