Get list of devices and http post to server

Which command can I use in console to get a list of currently connected devices and their respective MAC address?

Additionally, I'd like to run this command line every 2 seconds and relay its output to a PHP server over Curl. Can someone help me out? Thanks!


Welcome to the forum.
Your question looks easy, just as any linux platform use on command line: arp -a
With web GUI you can schedule commands via System / Scheduled Tasks, although every 2 seconds is kinda 'fast', crontab works on minutes:


1 Like