WiFi MAC address

T
Theun
Mobicoach BV (MSP Account)

Hello everybody,

Is there a script with which we can find the WiFi MAC address of a device (or preferably a group of devices), without having to connect to WiFi?

We're dealing with a large number of Zebra TC75x devices running on Android 6.0.1 which need to be updated to Android 7.1.2. To do that, we'd like MobiControl to push that OS update to them but only when the device is connected using WiFi (because of the large file size). Sadly, the devices are being kept in an area with highlt restricted WiFi access. A new WiFi access point will be setup, secured to only allow specific devices to be connected. It needs the WiFi MAC address to differentiate between devices.

MobiControl has a column for MAC Address. But since a large number of devices has been staged using ethernet, and has never been connected to WiFi afterwards, the wrong MAC address is being shown.

Is there a script that shows the WiFi MAC address, preferably of all enrolled devices? Can MobiControl tell the difference between an ethernet MAC address and a WiFi MAC address?

Zebra TC75x
Android 6.0.1
MobiControl 13.3.0.3454
Agent version 13.3.2.1014

7 years ago
Android
ANSWERS
S
SMod@Soti
7 years ago

Hi Theun,

Provided that these devices have never been connected to Wifi, MobiControl agent might not be reading accurate Wifi information.

I believe the following file /sys/class/net/wlan0/address on the Android devices contains the Wifi MAC address of the device. You can use the copy <source> <destination>  script to copy this file to a different location (eg /sdcard/Download) and then play around with it. Please do not modify the original file as it may cause your device(s) to offline.

MobiControl Custom Data collection only supports XML and INI files so reading it using a Custom Data does not seem like an option in this case. You should be able to use FileSync rule to collect this file from all the devices and use the 'Created Sub-folders via DeviceID' option to store these files separately for devices depending on the device ID and then use custom attributes to import this data.
Our Professional Services (a billable service) team can assist you with this process if any assistance is required.

Thanks,

M
Majid
7 years ago

Data Collection rule also supports WiFi MACs.