Community discussions

just joined
Topic Author
Posts: 1
Joined: Tue Jul 16, 2019 10:24 am

Ping MAC

Wed Jul 17, 2019 11:13 am

Hello, please help. I do a script to check the availability of equipment, by ping to the MAC address of the device. I can't ping directly since different IP addresses on local interfaces, and from the Internet to the equipment of access aren't present. But the script does not work, because it is necessary. What am I doing wrong?
:global mac XX:XX:XX:XX:XX:XX
:if ([:ping $mac count=10 interval < 0ms] < 5) do= {/tool fetch url=""}
just joined
Posts: 12
Joined: Tue Feb 09, 2016 10:57 am
Location: Poland, Katowice

Re: Ping MAC

Fri Aug 09, 2019 6:23 pm

You will not be able to ping MAC. I think you need to find corresponding IP with other script or fucntion using ip arp.
E.g store value of IP from ip arp print of matches particular MAC and than just ping IP.

I hope it will help a bit
Best Regards
Grzegorz Budny

Who is online

Users browsing this forum: No registered users and 6 guests