All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
I'm looking for a way to count active TCP connections on a remote computer.
Of course I could run "netstat -a > result.txt" on the remote computer and count the number of lines in "result.txt" minus 5 for header and blank line, but that would be my last resort.
A more sophisticated approach, maybe through WMI, would be more desirable...
You may use SNMP GET test and query OID: 1.3.6.1.2.1.6.9.0
It shows the number of TCP connections for which the current state is either ESTABLISHED or CLOSE-WAIT.
Please note: SNMP Service should be configured properly and started on target system.