How to use curl to execute a RPC

If you want to execute a RPC from the command line on your host system, then you should use the following commands.

# Login
curl --request POST --cookie-jar cookies.txt --data '{"service":"session","method":"login","params":{"username":"admin","password":"<PASSWORD>"}}' <URL>/rpc.php
# Execute the RPC
curl --request POST --cookie cookies.txt --data '{"service":"<NAME>","method":"<NAME>","params":null}' <URL>/rpc.php
# Logout
curl --request POST --cookie cookies.txt --data '{"service":"session","method":"logout","params":null}' <URL>/rpc.php

Example:

curl --request POST --cookie cookies.txt --data '{"service":"system","method":"noop","params":null}' <URL>/rpc.php

Results from SUSE Hack Week

Here are the final results from the SUSE Hack Week 2017:

  • Finished the omv-confdbadm CLI tool to administrate the configuration database.
  • PHP and Python unit tests have been implemented. Some bugs were found and fixed in OMV3.
  • The PHP5-PAM Debian package has been adapted to PHP7.
  • OMV4 has been adapted to Debian 9 (Stretch). OMV is working, but there are still issues to be adapted.
  • ExtJS6 is used in OMV4.
  • Bugfixes in the OMV4 WebUI has been backported to OMV3.

The release name of OMV4 will be Arrakis. The work on OMV4 will be stopped or slowed down now because the main priority is the release of OMV3 as soon as possible. Please don’t expect OMV4 before Debian 9.1 is released. For example it is currently not possible to cross build required Debian packages with pbuilder for other platforms except AMD64 and i386. Hopefully this will be fixed with the final Debian 9.

Finally here are some screenshots from the OMV4 WebUI.

SUSE Hack Week

Because of the SUSE hack week i will have a look on the following issues for the openmediavault project:

  • Finish the omv-confadm CLI tool
  • Add more PHP and Python unit tests
  • Create php7-pam package
  • Start adapting OMV4 to Debian 9 (Stretch)
  • Have a look on Sencha ExtJS 6
  • Evaluate WebUI unit test frameworks

New failover package repository

A new OMV package repository has been established as failover. It is already enabled in OMV3, but you can use it in previous versions if you add

deb https://openmediavault.github.io/packages/ DISTRIBUTION main

to the file /etc/apt/sources.list.d/openmediavault.list. Replace DISTRIBUTION with the name of the OMV version, e.g. erasmus, sardaukar, …