Search
Filters
Close
Thursday, August 5, 2021 9:10:48 AM

SNMP GET function to get a application listen state

6 years ago
#31 Quote
I would like to see a SNMP GET function. Example, check to see if port 8044 is in a listen state without having to do a TCPOpen function.

The function would do this SNMP GET of an OID:

tcpConnState.0.0.0.0.8044.0.0.0.0.0

If 8044 is listening you get back something like this:

tcpConnState.0.0.0.0.8044.0.0.0.0.0 = listen

for a true state. If not listening you may get back like this:

tcpConnState.0.0.0.0.8044.0.0.0.0.0 = No Such Instance currently exists at this OID

as a false state.

The reason for doing a SNMP to get the listen state is that some applications get upset when you do a TCPOpen and then go away. That is messages start appearing on the console or in their logs.

Thanks

Mainframe Infrastructure Engineering Consultant
0
6 years ago
#33 Quote
BTW, this looks like a good resource to look at if you need a start:

http://www.naterice.com/articles/4

It does require that the customer to have SNMPGET.exe installed which you can get from SourceForge.

0
6 years ago
#35 Quote
Thank you for the suggestion Mark.  Your request has merit and we do have SNMP functions on the map. I can not disclose the estimated release of the SNMP functions here at this time. Hint - SNMP data is also good for drawing charts.  

The OpenTCP function does close a port if it opens.  A SYN SYN/ACK ACK is closed with FIN.
0