I am running Landscape On-Premises (version 16.06) on Ubuntu Server 16.04. When I connect to the server via the web interface, everything is working as expected. Additionally I installed and configured the landscape-api package to manage the server via ssh. When I use landscape-api as described in the Landscape API documentation, nothing usable returns from given commands :
source /home/cl/landscape-api.rc
landscape-api get-activities
No JSON object could be decoded
landscape-api get-computers
No JSON object could be decoded
landscape-api get-event-log
No JSON object could be decoded
landscape-api --json get-activities
Query API Service
landscape-api --json get-computers
Query API Service
landscape-api --json get-event-log
Query API Service
The rc file you sourced is probably incorrect, or the api service isn't running. Did you copy and paste from what landscape offered you in your user settings page?
Check the process listing on the landscape server and look for the api process. Also check the server logs in
/var/log/landscape-server/
.