How to use USRP device MAC address in python code

I am working with GNURadio 3.5, UHD_003.004.000-287958b and USRP N210
running WBX daughterboards. I need to access and use the device’s MAC
address from my python code. On browsing through the documentation, I
found
the following class usrp2_base in Gnuradio 3.4.2 has a method
*mac_addr()*to get the USRP2 hardware MAC address. Is there an
equivalent method in
UHD? If so, how can it be invoked from python code?

On Thu, Feb 9, 2012 at 4:43 PM, Dhrubojyoti R.
[email protected]wrote:

I am working with GNURadio 3.5, UHD_003.004.000-287958b and USRP N210
running WBX daughterboards. I need to access and use the device’s MAC
address from my python code. On browsing through the documentation, I found
the following class usrp2_base in Gnuradio 3.4.2 has a method *
mac_addr()* to get the USRP2 hardware MAC address. Is there an equivalent
method in UHD? If so, how can it be invoked from python code?

Use the “arp” utility, and parse the output.

[email protected]:~$ arp 192.168.10.2
Address HWtype HWaddress Flags Mask
Iface
192.168.10.1 ether 20:cf:30:ae:00:c1 C
wlan0

–n