Home/Support/Support Forum/Use Python RCI library to get MAC address of WR44
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Use Python RCI library to get MAC address of WR44

0 votes
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?
asked Jan 21, 2014 in 3rd Party Python and API development in other Languages by jackcosgrove New to the Community (0 points)

Please log in or register to answer this question.

2 Answers

0 votes
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.
answered Apr 4, 2014 by kjensen8 Veteran of the Digi Community (623 points)
0 votes
Something along these lines works for me...
Code:
import sarcli cli = sarcli.open() cli.write('ati5') infoString = cli.read() macStrPos = infoString.find('MAC:') macStr = infoString[macStrPos+3:macStrPos+12+4].replace(':','')
answered Jul 2, 2014 by radix07 New to the Community (26 points)
...