An issue occured when an Apple iPad was previously enrolled in the Mobility Suite environment, and was removed and later re-enrolled as a DEP device. This caused a duplicate device to appear in the system.
Mobility Suite 5.5.x
Apple iOS 10.x
The duplicate entry was unable to be matched to the incoming device.
The record of the device was purged from the database, and DEP inventory initiated again.
Copy the attached .py file to your scripts directory. The default location is [/usr/local/nukona/appstore_cu/apps/appstore/scripts].
Run the script by going to a parent path, [/usr/local/nukona/appstore_cu] by default, and executing the following, which displays usage examples:
python manage.pyc scripts dep-cleanup --examples
To clean up duplicates of the device, and re-collect the inventory from Apple, run the following: