Community discussions

MikroTik App
 
kuzynek
just joined
Topic Author
Posts: 2
Joined: Sun Sep 27, 2015 4:01 am

TCP open ports

Sun Sep 27, 2015 4:18 am

Hi,
I want to check if some port are open in my remote host.

I try :

probe->TCP->port 3389->Connect only

but status is always OK.. even if service is down and port is close. Please help

Dude v3.5
Dude v3.6
Dude v4.0beta3


PS. I also try it but not working for me:

I try witch
"<snmpOid>1.3.6.1.2.1.2.2.1.8.3389</snmpOid>"
"<snmpOid>3389</snmpOid>"
<snmpOid>1.3.6.1.2.1.2.2.1.8.3.3.8.9</snmpOid>


This probe is universal for any device, including switches, routers, Windows servers or workstations:

Code: Select all

<?xml version="1.0" ?>
<dude version="4.0beta3">
<Probe>
<sys-type>13</sys-type>
<sys-id>20853</sys-id>
<sys-name>interfaces port status port 01</sys-name>
<typeID>5</typeID>
<snmpProfileID>10001</snmpProfileID>
<snmpOid>1.3.6.1.2.1.2.2.1.8.1</snmpOid>
<snmpOidType>integer</snmpOidType>
<snmpCompareMethod>==</snmpCompareMethod>
<snmpValueNumber>1</snmpValueNumber>
<functionAvailable></functionAvailable>
<functionError></functionError>
<functionValue></functionValue>
</Probe>
</dude>

Just change SNMP OID from 1.3.6.1.2.1.2.2.1.8.1 (this one is for first port in system) to number of port you need.

On Windows Severs this number can be high (like 65530), so don't be surprised if you see something like that in SMNP Walker. :)

If port is up, then value is 1. If down, value is 2 and alarm raised.

Probe from original post is to check if some service (and 465 is Secure SMTP) running on device. This is not related to interface port on device.

Who is online

Users browsing this forum: No registered users and 61 guests