Community discussions

MikroTik App
 
bridgh20
newbie
Topic Author
Posts: 29
Joined: Sat Sep 27, 2008 7:55 pm
Location: South Texas

Monitor Ethernet port

Fri Nov 02, 2018 9:02 pm

We have a device that pulls a DHCP IP but is not SNMP capable. So we thought a work around might we could monitor the ethernet port on a Mikrotik router to make sure it is active with the device connected. If the connected device losses power we would want to know that it is no longer connected.Is this a viable solution or is there some other work around we're not thinking of?

Thanks
 
vasilaos
Member Candidate
Member Candidate
Posts: 120
Joined: Tue Aug 04, 2009 9:50 am

Re: Monitor Ethernet port

Sat Nov 03, 2018 12:10 am

Have you thought of using ping to monitor if the device is active or not?

Also if the device is directly connected to an interface of mikrotik you can check with a script if the interface on witch the device is attached is running or not with the command:
 /interface ethernet get "interface_name" running
if the result turns true it means that the device is active
 
bridgh20
newbie
Topic Author
Posts: 29
Joined: Sat Sep 27, 2008 7:55 pm
Location: South Texas

Re: Monitor Ethernet port

Sat Nov 03, 2018 2:30 pm

Have you thought of using ping to monitor if the device is active or not?

Also if the device is directly connected to an interface of mikrotik you can check with a script if the interface on witch the device is attached is running or not with the command:
 /interface ethernet get "interface_name" running
if the result turns true it means that the device is active
Sorry, should have included that we have tried a ping but it does not respond.
 
User avatar
vecernik87
Forum Veteran
Forum Veteran
Posts: 882
Joined: Fri Nov 10, 2017 8:19 am

Re: Monitor Ethernet port

Mon Nov 05, 2018 11:57 pm

Another approach would be ARP request. Ping (ICMP echo) is often blocked but with ARP you have better chances (although, I already met few devices which were blocking ARP as well, due to power saving)

Who is online

Users browsing this forum: No registered users and 18 guests