Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Bulk collection of iOS device details for Enterprise deployment' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Bulk collection of iOS device details for Enterprise deployment
Authored by: timmy_pete on Apr 13, '11 04:16:27PM
I've edited the command a bit to make it not so iPad 2 centric and more Excel friendly. The below command will list all devices in the form Serial Model MAC (minus colons). The tabbing means you can paste direct into Excel.

grep -r -h -A 5 deviceSerialNumber ~/Library/MobileDevice/Devices | sed -n '/^$/!{s/<[^>]*>//g;p;}' | tr -d '\011' | sed 's/://g' | grep -v -e deviceSerialNumber -e deviceType -e deviceWiFiMACAddress -e -- | awk '{printf("%s%s", $0, (NR%3 ? "\t" : "\n"))}' | pbcopy

@Marook - that would have been my preferred solution but our infrastructure team couldn't implement it in enough time. We have a handout model and for junior school children. I'm also using VLOOKUP in Excel to merge this data with the rest I've collected: serials scanned by box barcode (remember to remove the leading S), asset tags, purchasing details, et cetera.

[ Reply to This | # ]

Bulk collection of iOS device details for Enterprise deployment
Authored by: donifar on Jul 12, '12 07:53:01AM

I tried running this script from terminal, but it is pasting nothing. I don't seem to have a file in \library\MobileDevice\Devices any help please?



[ Reply to This | # ]
Bulk collection of iOS device details for Enterprise deployment
Authored by: timmy_pete on Jul 12, '12 06:52:56PM
Do any files reside in the \library\MobileDevice\Devices folder for your user account? The Tilde (~) signifies a user account Library rather than the one at the root-level of your boot volume. Otherwise, what version of Mac OS X, iTunes and iPhone config utility are you using? I haven't needed this script for some time so am not sure how it behaves in Lion.

[ Reply to This | # ]
Bulk collection of iOS device details for Enterprise deployment
Authored by: donifar on Jul 23, '12 07:03:20AM

I was not using iPhone configuration tool. That was the problem. So I kept force quitting iTunes, and using the config util to register each device with the machine, and then your script ran like a charm. Thanks!



[ Reply to This | # ]