Re-Enrolling Devices to Change Naming Convention

PB
Patrick B
CDS Logistics

Hello,

I was wondering if anyone on the forum had success re-enrolling devices using a script in order to rename the devices.  We started enrolling some new Android barcode scanners and went about our testing and now we need to get them all to use the same naming convention:  A%AUTONUM% 

We have 80 devices and I would prefer to not have to manually change the device names on each and everyone.

Thanks,

Patrick

7 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
7 years ago

I don't think this is possible with any of the exposed configuration options or through scripting. You might be able to rename them all through the DB but for that level of effort its likely faster to just manually rename them through the console if its just 80 devices. 

RC
Raymond Chan Diamond Contributor
7 years ago

It probably takes less than 10 seconds to rename a device according to pattern A00001, A0002, ... A00080  on the web console.  So, a total of less than 15 minutes to complete renaming of all 80 devices.

 I just can't understand why one should re-enroll 80 devices for the sake of renaming them.   It takes much much more time to complete an enrollment, re-pushing all policies and package/data contents to each device from scratch, thus consuming unnecessary data bandwidth. 

If you have the right software and skills to use MobiControl REST API, then you might be able to perform the renaming automatically.

PB
Patrick B
7 years ago

I already have an open ticket with SOTI Support concerning the API, but that is another topic. The idea is to continue using our asset tracking software to move devices to different facilities which would place them in different groups depending on the packages/profiles they require. 

It may be a moot point because I enrolled one device, it took the name A00001, manually renamed a second device A00002 and re-enrolled a third which also took A00002.  So the Auto Increment feature is not aware of manuall added devices. If this is a value stored in a table, I could renamed everything and then update the auto-increment value to go to the next highest once our new devices are enrolled.

Thoughts?

PB
Patrick B
7 years ago

Ok, I found what I needed in the [Sequences] table.  The rule name was Android specific so it had AN_ as the prefix.  I un-enrolled and re-enrolled a device and the seq # incremented by one.  We will manually rename and then update the sequence number.

Hi Patrick, 


This sounds like you have a solution for renaming 80 of your devices now.  Renaming devices VIA scripts works with our available Macro's.  Unfortunately to automate the renaming of all devices, your solution seems to the only viable one, albeit manual, but a solution nonetheless. 

Using the %Autonum% also makes it a lot easier as you do not have to input the new name on each device, just the macro and MobiControl will do the rest of the work for you.

Would you like me to mark your resolution as is solution?