How to check whether a port of a system from AS400?

15 pts.
Tags:
AS/400
CL programs
Port
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BillyMolintas
    What is this other system?
    85 pointsBadges:
    report
  • Kalmili
    the other system is a server of a client.server system, basically a dedicated DESKTOP server.
    15 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following