× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Le 03/03/2023 à 11:04, Patrik Schindler a écrit :
When the gateway becomes reachable, remaining of 999 packets will be sent quickly, and the ping command will end. You can, immediately after, start QSPL subsystem and start the writers with QSYS/QWCSWTRS program and start your applications.
I'd have expected ping to exit with an error immediately if TCP/IP isn't started. So this is a very interesting approach!! Need to tinker around with that idea! Thanks a lot for that!
The behavior of ping according to TCP/IP status might differ depending on the version. You can easily test it when running a restricted state for your save 21, as TCP/IP is (normally) ended.

There are API to help (for instance Retrieve TCP status), but a lot of them were introduced with V5R1.
Probably need to have a look. To not hard code any values, it would be nice to obtain the default gateway address but that's for sure contained in a PF. 😄

Check-out QUSRSYS/QATOCRTE PF. This is not documented but a lot of QUSRSYS/QATO* physical files contain TCP/IP configuration and services data. Some of them, depending on the versions, are also in /QIBM/UserData/OS400/TCPIP IFS directory, like VPN and packets rules setup. This is not documented so to be used with caution.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.