Is there a way to get a List of installed Products on a Client without using the Commandline?
I have tried it with opsiservicecall but haven't been successful yet.
How to get a List of installed Products without Commandline
Re: How to get a List of installed Products without Commandline
You can use opsi-configed or opsi-webgui if you want a graphical interface (just sort the list by installation status).
Alternatively you can use opsi servicecall "productOnClient_getObjects" with a filter like
{"installationStatus": "installed", "clientId":"<client id>"}
I would suggest doing it via opsi-cli (command line!), like so:
but you could also execute a service call in RPC-interface of your admin page (or via curl etc...).
Alternatively you can use opsi servicecall "productOnClient_getObjects" with a filter like
{"installationStatus": "installed", "clientId":"<client id>"}
I would suggest doing it via opsi-cli (command line!), like so:
Code: Alles auswählen
opsi-cli --output-format=table --attributes=productId,productVersion jsonrpc execute productOnClient_getObjects [] '{"installationStatus": "installed", "clientId":"<client id>"}'
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: How to get a List of installed Products without Commandline
In opsiscript you can do this:
Code: Alles auswählen
set $ResultList$ = getReturnListFromSection('opsiservicecall_getInstalledProductIds_list')
[opsiServiceCall_getInstalledProductIds_list]
"method": "getInstalledProductIds_list"
"params": [
"%HostID%"
]
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: How to get a List of installed Products without Commandline
That worked. Thank you very much!