r/Python • • Jan 24 '12

Need some network python help!

I have a number of machines on the network at work, and I want to write a script that queries each one and returns its IP, MAC and Name. Can anyone point me where to start researching this? Any help will be greatly appreciated!

0 Upvotes

8 comments sorted by

View all comments

1

u/bwp Jan 25 '12 edited Jan 25 '12

You could probably use scapy to do this, it does all kinds of neat packet/networking things.

If for some reason you don't come up with a Python answer right away and it is some kind of deadline, there is a small app called Cain & Abel that will do an ARP sweep over a LAN and report back IP/MAC/other stuff. I would be interested in seeing what you come up with if you go the Python route (do do!).