[ANN] macaddr-0.0.1

D

darren kirby

quoth the ara.t.howard:
NAME

macaddr

DESCRIPTION

cross platform mac address determination for ruby

This is too perfect, I was just going to start looking for some code to find
MAC addresses for a project I plan to start. Thanks!

-d
 
X

X1

Thanks Ara..

Quick question, what does first mean?

Do you look at interface metrics or weights, or just the first
alphabetic interface? Thx
 
A

ara.t.howard

Quick question, what does first mean?

Do you look at interface metrics or weights, or just the first
alphabetic interface? Thx

programs like 'ifconfig' dump out mac addrs in some order - i have no
idea what that order is nor have made any effort to do so, esp on
other platforms.

basically the 'macaddr' gem just knows how to shell out and parse the
output of the appropriate networking status command on various
platforms and scrapes the output for macaddr looking tokens.

so

Mac.addr #=> the first address seen in the output
Mac.addr.list #=> all mac addrs seen in the output (Array)
Mac.addr.list.first #=> the first one, same as Mac.addr

so far my uses of determining mac addr have simply been to get a
unique id for things like encryption so i haven't cared *which* mac
addr i found, only that i found *an* address.

answer your question?

kind regards.

a @ http://drawohara.com/
 
P

Peña, Botp

From: ara.t.howard [mailto:[email protected]]=20
# Mac.addr #=3D> the first address seen in the output
# Mac.addr.list #=3D> all mac addrs seen in the output (Array)
# Mac.addr.list.first #=3D> the first one, same as Mac.addr

do you have plans to get macaddr on remote pc?

kind regards -botp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

[ANN] macaddr-1.0.0 4
[ANN] threadify-0.0.1 18
[ANN] raptcha-0.0.1 0
[ANN] forkoff-0.0.1 0
[ANN] search-0.0.1 13
[ANN] punch-0.0.1 4
[ANN] openobject-0.0.1 12
[ANN] dike-0.0.1 - a memory leak detector 18

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top