Dumping IP addresses to a file
Is there a way to dump a list of all devices with IP and MAC address to a log file.
-
I was going to flash upgrade a new 16GB Card and start again, (already flashed but not installed) but Ive spent a while hunting down and renaming every device through various apps and login screens. Some are obvious, but a fair number are a little obscure, plus I have several devices from the same company. It would have been easier to dump out all mac addresses, ip's and names to a file so its easy to rename them again. What about through the SSH console, Im familiar with Linux..
-
Andy, see if you can do this:
1. ssh into your walla, username pi
2. password: find it in advanced -> ssh
3. When you are in this should get your the names of the devices
redis-cli keys "host:mac:*" | xargs -n 1 -I zzz redis-cli hget zzz name
And to get corresponding MAC
redis-cli keys "host:mac:*" | xargs -n 1 -I zzz redis-cli hget zzz mac
You can then match them up.
Please sign in to leave a comment.
Comments
5 comments