I mentioned having some exposure to a startup crypto mining farm… there’s actually a bit of a connection to my job I didn’t elaborate on. So this is sort of applies…
There are many separate machines on the network there.
I wrote a little program to poll the network for all MAC, IP, ip type, is pingable?, link to each machines login pages, save text nicknames linked to MAC… Stuff like that.
So i did this:
AIR app (of course )
Run .bat file, output to a text file
Ping broadcast address
arp -a | Find “5c-d9-98” (reverse lookup if needed)
Import text file, parse the raw text in as3 in to a fancy chart, do pings from there etc.
It does work as I wrote it to, so that’s good…but I happen to run a 3rd party IP scanner the day I started messing with arp commands. Because of this, I had a very full arp cache. Stupidly, I didn’t realize after the machine is rebooted, the arp cache is gone. This is where i tried adding pinging the broadcast address, from what I read its supposed to trickle down and get a response from all the devices… It did not work for me though.
So I end up still needing to fill the arp cache somehow by either sending a ping to every possible IP (too many), or knowing the IP before hand (I do actually but it defeats my purpose as a blind “scanner” like I wanted).
The admin ended up finding some really nice management software online, so I didn’t bother to develop it further, but it was nice for a day or so.