I have searched for an identifier and I tried to find mac address for any connected device on my server but the problem is that the output returns empty for example
a = os.popen("arp -a 192.168.6.150 | awk '{print $4}'").readlines()
a is empty
I'm working on captive portal page for untangle. I want to get the mac address from ip of device on network. This code runs on Apache server.
from mod_python import apache
from mod_python import util