The basic command is of this form:
#curl --data "key=$KEY&hash=$HASH&action=info&ipaddr=true&mem=true&hdd=true&bw=true" $SERVERURL/api/client/command.php
This returns data of the form:
In script form:
First define variables:
KEY="LNAQP-ZEWDZ-3EKFR" HASH="076dffc30f43cc3a134666a04afba78932212b3323e" ACTION="info&ipaddr=true&mem=true&hdd=true&bw=true" URL="https://manage.cloud.com"
Then execute it from bash:
curl --data "key=$KEY&hash=$HASH&action=$ACTION" "$URL/api/client/command.php"
View the Complete documentation here.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.