Custom Reporting for CrashPlan PRO using Python and the REST API
CrashPlan PRO has some nice reports but sometimes you just want to dump raw data so you can do your own thing with it.
Here's an example of how to use the CrashPlan PRO REST API to dump out tab-delimited columns of data. Output looks like this:
| Computer | User | GB | OS | IP | Server | Last Connect | |
|---|---|---|---|---|---|---|---|
| optiplex745 | Doe, Jane | 25 | jane@example.com | Windows 7 6.1 | 1.2.3.4:0 | 1 | 2011-01-18T09:29:27.332-06:00 |
| optiplex760 | Doe, John | 20 | john@example.com | Windows XP 5.1 | 1.2.3.5 | 1 | 2011-01-18T06:19:27.257-06:00 |
| macbookpro | Doe, Jenny | 81 | jenny@example.com | Mac OS X 10.6.6 | 1.2.3.6:0 | 1 | 2011-01-18T09:25:18.946-06:00 |
The script is attached below as a text file. To run it just use python scriptname at the command line on the CrashPlan server. It's just a modification of one of the examples at the CrashPlan API Architecture page. You can do much more with the API than this lowly querying and reporting.
I'm running on OS X 10.5.8 (we use old Macs for CrashPlan servers since it takes very little CPU) and I had to install Python 2.7.x using the PPC installer; the stock Python in 10.5 is ancient.
CrashPlan PRO and Java for Mac OS X 10.5 Update 7
I updated two servers using my normal upgrade process and all is well. My process:
- Stop CrashPlan
- Clone server using SuperDuper! with the Smart Update option
- Install update
- Restart server
- Start CrashPlan
- Verify that everything is working



