I'm new with OpenWrt and working on a task that will allow the list of connected device's details to the router to be sent to an email. I'm having trouble on how I will get the list and where am I going to put my code in the router's directory? or is there any existing tutorial/guide that I can easily follow.
This is great!!! Do you know how to also get the timestamp? Also, this might be a dumb question but where do I put in the code? do I have to put it in somewhere in the openwrt router directory/ is there any specific directory that I should put it?
Please bare with me I'm really new at this!
Thanks!!!
Thank you!!! will be trying this.
Also, I'm trying to get the IP address, timestamp, MAC address and the signal strength of the device then I'll send it to an email.
Please bare with me
I assumed the OP meant the connection timestamp of the connecting client; but yes, that will pull the device's current time when the script is ran.
From your statement, I'm guessing you haven't ran the command yet. Feel free to run the command and let us know if that works for you.
For IP, you could cross reference against arp -a using diffutils but I noticed the characters are capital letters there.
You put it where you want it saved. Files and folders under /etc are persistent, folders under /tmp are gone upon reboot. We can't guess where you want the file, not a dumb question; but one that only you would know. Obviously, the script must go to a folder that survives a reboot.