TS, thanks for sharing. A short write-up on how to setup your CLI tool would be much appreciated.
this cli tool is self-explanatory.. you should just have the module curl of php and php5 CLI installed on your system, and run the script for the explanation of features:
$./pulse.php
Usage: pulse.php OPTIONS [host[:port]]
host hostname or ip target, default: pulse
port port number for host, default: 80
-p,--p2p[=on|off] get or set p2p client state
-c,--p2p-clear clear p2p complete list
-l,--p2p-limit[=down[,up]] get or set p2p speed limit, unlimit: -1
-D,--download[=url] list or add url in http downloader
-C,--download-clear clear complete http downloads list
-t,--temp get temperature inside
-T,--time get date and time of nas
-f,--fan[=off|low|high] get or set fan mode
-u,--ups get ups state
-d,--disks get disks usage
-s,--shutdown power off the system
-r,--restart restart the system
-h,--help print this help
like any other linux command