Generate Basic Reports

You're able to query our API to pull out your data, so we've created the following to allow you to create html reports for your servers. 

Install Dependencies

sudo apt-get install git php5-cli php5-curl 
git clone 
cd sd-php-wrapper 
curl -s | php 
php composer.phar install

Download PHP Scripts


Execute PHP Scripts

Now execute the PHP scripts, replacing YOUR_API_TOKEN and DEVICE_NAME where appropriate, to download your data from the API and to render the report. 

SDTOKEN="YOUR_API_TOKEN" php export_json.php "DEVICE_NAME" 
SDTOKEN="YOUR_API_TOKEN" php report_json.php > report.html

Example ReportScreenShot2016-03-22at16.06.00.png


The report is HTML so you can customize it as you please or change the styles with CSS. Feel free to edit the PHP scripts to your needs too.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.