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 ( [id://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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-19 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found