Hello Folks,
I am working on few socket programs and I would like to know, if there is a way to determine how many jobs are actively running in a particular Port at any given point of time.
There is a command NETSTAT on OS/400 which can give few details regarding this.
Run the command NETSTAT, take option 3 - which will list down the TCP/IP Connection Status / Ports that are active in the System. Taking F11 will display the number of bytes of data being transferred and F10 key will display the Active opens and Passive opens.
But, I would like to be able to retrieve the number of jobs details from a CL program using some system commands or if there is an API to help me do this on RPG.
Once I accomplish this, I would like to programmatically control the job submission in Sockets.
I mean - if the number of active jobs in a Port has reached a certain number / limit - I would like to know if there is a way to divert the job to a different port with less number of jobs running in it.
Your answers would be of great help.
Thanks,
Yagneswar.
I am working on few socket programs and I would like to know, if there is a way to determine how many jobs are actively running in a particular Port at any given point of time.
There is a command NETSTAT on OS/400 which can give few details regarding this.
Run the command NETSTAT, take option 3 - which will list down the TCP/IP Connection Status / Ports that are active in the System. Taking F11 will display the number of bytes of data being transferred and F10 key will display the Active opens and Passive opens.
But, I would like to be able to retrieve the number of jobs details from a CL program using some system commands or if there is an API to help me do this on RPG.
Once I accomplish this, I would like to programmatically control the job submission in Sockets.
I mean - if the number of active jobs in a Port has reached a certain number / limit - I would like to know if there is a way to divert the job to a different port with less number of jobs running in it.
Your answers would be of great help.
Thanks,
Yagneswar.
Comment