|
Phil Kestenbaum wrote:
9. Program to monitor Connectivity (Phil Kestenbaum) date: Wed, 27 Dec 2006 12:22:47 -0500 Anyone written a program that will make a simple connectivity check to windows Lan? Is RPG ILE acceptable language to write this in? The idea would be to either establish a never-ending job from Windows to Iseries, monitor that this is active on Iseries and if it takes a hit, program would then pump message queues and send e-mail or other type of alerts to Manager. Or if there is already a message group that would contain the Interruption-in-serice info then just monitor those error messages on the Iseries?
Phil:What you want _might_ partly be the NetServer 'status' that can be inferred from the info returned by the List Server Information (QZLSLSTI) API. See ( http://code.midrange.com/index.php?id=933ee1f1bf ) for a basic demo. Also see:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qzlslsti.htm or http://tinyurl.com/ygz94k ...for the API documentation. It's one of the Server Support APIs.Since the status of NetServer is pretty critical to whether or not Windows shares are accessible, this might be a sample of one of the procs you might use for your need. However, 'connectivity' isn't quite the same as 'accessibility' or some other term.
That is, you might execute a ping to determine that a network route exists; but that won't say if Windows shares can be accessed. You might also actually start a sockets connection to the OS/400 host server mapper -- that would tell you more than a ping but still might not give enough info. Further, depending on various firewall/router configurations, some communication might be allowed to travel towards your AS/400 but not back the opposite direction, or vice versa.
You might need to elaborate on exactly what you want/need. Tom Liotta
As an Amazon Associate we earn from qualifying purchases.
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.