Remote mac address
Frank Stutzman
stutzman at skywagon.kjsl.com
Mon Apr 14 11:17:14 EDT 2008
Matias Surdi <matiassurdi at gmail.com> wrote:
> Anyone knows how having the IP address of a host on the lan could I get
> the mac address of that hosr?
> p/d: Parsing the output of arp -a is not an option.
What kind of system?
On linux and probably several other unix-like systems you could (if
you had permission) parse the /proc/net/arp file. Granted this isn't
terribly far off from parsing the output of 'arp -a', but at least
it keeps you from spawning a shell to run the 'arp -a' in.
--
Frank Stutzman
More information about the Python-list
mailing list