Dropbox, Box.net & Google Drive - Custom Inventories and Reports
A somewhat minor update, I have now added support for Box.net and Google Drive clients, same functionality as before (path, directory created date and the size of the directory). I have also taken the excellent advice offered previously and exported the data classes for each custom inventory so that the scripts do not need to be modified at all.
Many folks, including myself, are avid users of Dropbox for syncing my personal files between my computers and mobile devices. While it is definitely a great service, it is also a legitimate security concern with respect to corporate data being synced to "the cloud". In order to hopefully gain some insight into how prevalent Dropbox is in your environment, I have created a report and two scripts to run a custom inventory on both Mac and Windows Computers. The script essentially populates 3 custom data-classes; the Directory Path of dropbox, the Directory Size and the Last Modified date (which still needs a little bit of fine-tuning). Before getting right to it, here are a few caveats/instructions that need to be taken into account:
- Before running the script, please configure the custom data class first and update the Windows script (read on for more detail).
- The report, in its current form, has an OR filter applied to only display Windows and Mac systems that have reported Dropbox as being installed via a software inventory (thus requires that the machines be running inventory solution).
- Once imported, you MUST update the Windows script to the GUID of the Dropbox custom data class (edit the line that starts with "set objDCInstance = nse.AddDataClass"). You can get the GUID of the dataclass by going to Settings>All Settings, then Notification Server>Resource and Dataclass Settings>Data Classes>Inventory>Custom>Dropbox. Right-click and select properties to get the GUID.
- Double check after importing the Windows script that it is set to run as currently logged in user.
- Double check after importing the Mac script that it is set to run as the Symantec Management Agent
- The directory size is reported in bytes
- When creating the custom data class, please name it Dropbox and the attributes are: Directory_Path, Directory_Date, Directory_Size - ORDER DOES MATTER. Please see the attached screen shot (DB_Data_Class.PNG) for how the dataclass should be created.
Couple of planned enhancements are:
- Fine-tune the scripts (comments/requests are welcome)
- Add support for Linux (simple enough, just need some time)
- Add support for Mobile devices (only report on which devices have Dropbox installed) - if there is enough demand for it (requires SMM)
Of course feel free to send over any changes/fixes or requests as well.
The attached ZIP file should contain the following:
Data classes for Dropbox, Box.net & Google Drive (importable XML)
Scripts for Dropbox, Box.net & Google Drive - both Mac and Windows (importable XML)
Reports for Dropbox, Box.net & Google Drive (importable XML)