Opening and closing TCP/IP ports on an i-Series

23730 pts.
Tags:
Network management
Networking
OS/400
TCP/IP
Hi, I have been asked to create something to open and close TCP/IP ports on an i-Series. Has anybody had any experience with something like this? The idea is that a server will constantly poll a specific port on the i-series to see whether it is available or not and we need to be able to control whether the port is open to indicate the availability of the machine. For example, we could set the port out to indicate that the machine is busy running night batches or unavailable due to servicing. So, can anyone can tell me how to define ports and open and close them? Thanks in advance, Martin Gilbert.

Answer Wiki

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

http://www.mcpressonline.com/application-software/microsoft/aspnet-to-iseries-socket-server.html

This is a link to an example of a socket program, aka port listener. Since you will not want to use any of the IBM defined ports, you should be able to write a pretty simplistic socket pgm that will listen to whatever unused port you select, and the attempt to connect to the port will only work if the listener program is active for that port, or in a state to accept a socket connection attempt for whatever type of connection you use. So you could either cause the socket to reject an attempt once some switch is ‘flipped’, or kill it then have it resubmit when you want it to show active.

Discuss This Question: 1  Reply

 
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
  • Gilly400
    Thanks, I'll give it a try. Regards, Martin Gilbert.
    23,730 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