# Use Python RCI library to get MAC address of WR44

**URL:** <https://forums.digi.com/t/use-python-rci-library-to-get-mac-address-of-wr44/12420>\
**Category:** Python\
**Tags:** mac-address, transport, rci, python\
**Created:** [January 21, 2014, 8:13am UTC](https://forums.digi.com/t/use-python-rci-library-to-get-mac-address-of-wr44/12420 "2014-01-21T08:13:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackcosgrove](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jackcosgrove](https://forums.digi.com/u/jackcosgrove)\
**Post date:** [January 21, 2014, 8:13am UTC](https://forums.digi.com/t/use-python-rci-library-to-get-mac-address-of-wr44/12420/1 "2014-01-21T08:13:12Z")

</div>

I am porting a Python application from a ConnectPort to a TransPort WR44. The program uses the digicli library to get the device’s MAC address, but this library is not included with the WR44. What is the XML for an RCI request to get the MAC address of a WR44?

---

<div class="post-metadata">

**Author:** ![kjensen8](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@kjensen8](https://forums.digi.com/u/kjensen8)\
**Post date:** [April 4, 2014, 4:27pm UTC](https://forums.digi.com/t/use-python-rci-library-to-get-mac-address-of-wr44/12420/2 "2014-04-04T16:27:22Z")

</div>

digicli won’t work on the transport. You need to use sarcli library to pass the ati5 command. Then parse the response to get the MAC address.

---

<div class="post-metadata">

**Author:** ![radix07](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@radix07](https://forums.digi.com/u/radix07)\
**Post date:** [July 2, 2014, 10:52am UTC](https://forums.digi.com/t/use-python-rci-library-to-get-mac-address-of-wr44/12420/3 "2014-07-02T10:52:33Z")

</div>

Something along these lines works for me…

```auto
import sarcli
cli = sarcli.open()
cli.write('ati5')
infoString = cli.read()
macStrPos = infoString.find('MAC:')
macStr = infoString[macStrPos+3:macStrPos+12+4].replace(':','')

```
