MAC-PING

Hello,

is it possible to use mac-ping in an script. I can’t see the command in the terminal

Tom

yes, it will work like an IP pinging. For example, we will write in logs “Down” when MAC=00:00:B4:C6:7D:C6 is down:

if ([/ping 00:00:B4:C6:7D:C6 count=5]=0) do={:log message= down}

Edgars

I tested this before cause I had the same idear … I will check again

This works. Must be a mistake before in my command

What’s wrong?
Every mac-addres I use (radio or ethernet) is timeout.

ETH1 = 00:0C:42:1C:19:C2
WLAN1 = 00:0C:42:05:E5:50

[admin@Sabotino] > ping 00:0C:42:05:e5:50 count=5
00:0C:42:05:E5:50 ping timeout
00:0C:42:05:E5:50 ping timeout
00:0C:42:05:E5:50 ping timeout
00:0C:42:05:E5:50 ping timeout
00:0C:42:05:E5:50 ping timeout
5 packets transmitted, 0 packets received, 100% packet loss
[admin@Sabotino] >>

Then, “log message=hello” makes syntax error and no effect when I run it into a script.

From the manual:

Only neighbour MikroTik RouterOS routers with MAC-ping feature enabled can be ‘pinged’ by MAC address.

http://www.mikrotik.com/testdocs/ros/2.9/root/ping.php

The syntax for the logging command has changed in the last 4 years:

:log debug "test"

does not work at all! I can ping a mac using the gui’s tool ping, but the command ping does not want to ping a mac-address and neither does the script work for me

to ping MAC address you have to have other host in the same Ethernet domain as one you are pinging from. Other requirement is that the host has to know what to do with that packet, so it has to have mac-ping server enabled, to be able to answer, and that is only available to devices running RouterOS.

also see up to date manual:
http://wiki.mikrotik.com/wiki/Manual:Tools/Ping