in reply to Re: Re: Accessing NIC/mac address ?
in thread Accessing NIC/mac address ?
arp -a is not that good as you get the entire arp cache. ipconfig /all is much better as it allows you to parse data per interface.
I guess this is TIMTOWTDI, but using ipconfig /all allows you to write a reusable sub that returns all of the parsed data for you, and allows you to pick and choose which of that data you want to use. I guess I'm lazy and just do all the work up front and never have to deal with it again :)
"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
I guess this is TIMTOWTDI, but using ipconfig /all allows you to write a reusable sub that returns all of the parsed data for you, and allows you to pick and choose which of that data you want to use. I guess I'm lazy and just do all the work up front and never have to deal with it again :)
"Nothing is sure but death and taxes" I say combine the two and its death to all taxes!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Accessing NIC/mac address ?
by earthboundmisfit (Chaplain) on Feb 14, 2002 at 18:19 UTC |
In Section
Seekers of Perl Wisdom