15 pts.
 How to check whether a port of a system from AS400?
hi there, I have AS400 and another system in which the call to an .exe is made thru AS400. I need to know that the other system is active particularly an .exe in the system thru as400, i could only write a CL to ping the server but not to check whether the .exe is up and running. ta, Kalyan

Software/Hardware used:
ASKED: November 25, 2007  12:33 AM
UPDATED: March 1, 2010  6:19 AM

Answer Wiki:
HI Kaylan You try to check it using 'Netstat *cnn' Find the ip of your pc that started the exe file, if the list contain the IP and the status is established. Then I think your exe is running Br ==================================================== Other than issuing a remote call across the system to some program that can tell you if the .EXE is active or opening a socket to the .EXE to see if it responds, there is no way. Those are the ways it is done. Neither is particularly appropriate for CL. Note that V5R4 ILE CL is technically capable of sockets. But if you're good enough with sockets to do it in CL, other labguages are far better choices. A RUNRMTCMD command might be applicable for a remote program call, and it's CL. Of course, there has to be something that can be called on the other end. If it happens to be the .EXE and it can return an appropriate "I am ready" acknowledgment, that would be enough. Tom
Last Wiki Answer Submitted:  March 1, 2010  6:19 am  by  TG   50 pts.
All Answer Wiki Contributors:  TG   50 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

What is this other system?

 85 pts.

 

the other system is a server of a client.server system, basically a dedicated DESKTOP server.

 15 pts.