This wonderful script have a lack; we need python, dex and pymongo.
As this is not possible on production environments, I have mongoexported the system.profile collection, but I cannot mongoimport it with the same name, as it's a system collection.
Thu Oct 3 11:29:20 [conn1] ERROR: attempt to insert in system namespace UserConcurrentControl.system.profile
I restored it as a collecion "profile", but dex is unable to look at other collection to find the same data. As I know enough python, I modified the dex.py module, and I succeeded.
It would be nice to have this collection name as an optional parameter, so anyone could benefit from it.
Thanks for this request! I'm also encouraged that you were able to tweak Dex for your own needs. Definitely going to consider this issue.