Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Re: Accessing NIC/mac address ?

by earthboundmisfit (Chaplain)
on Feb 14, 2002 at 18:19 UTC ( #145523=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Accessing NIC/mac address ?
in thread Accessing NIC/mac address ?

I was not aware of the /all switch. Thanks! That's very useful.

Just to round out the thread:

#! Perl -w use strict; open (READ, "ipconfig /all|") or die "$!"; while (<READ>) { chomp; if (/Physical Address/) { my @pieces = split(/:/); print $pieces[1]; } } close READ;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://145523]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-08-17 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?