Seite 1 von 1

How to get a List of installed Products without Commandline

Verfasst: 30 Jul 2024, 09:49
von Jules
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.

Re: How to get a List of installed Products without Commandline

Verfasst: 02 Aug 2024, 13:34
von n.doerrer
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:

Code: Alles auswählen

opsi-cli --output-format=table --attributes=productId,productVersion jsonrpc execute productOnClient_getObjects [] '{"installationStatus": "installed", "clientId":"<client id>"}'
but you could also execute a service call in RPC-interface of your admin page (or via curl etc...).

Re: How to get a List of installed Products without Commandline

Verfasst: 02 Aug 2024, 15:01
von SisterOfMercy
In opsiscript you can do this:

Code: Alles auswählen

set $ResultList$ = getReturnListFromSection('opsiservicecall_getInstalledProductIds_list')

[opsiServiceCall_getInstalledProductIds_list]
"method": "getInstalledProductIds_list"
"params": [
           "%HostID%"
          ]

Re: How to get a List of installed Products without Commandline

Verfasst: 02 Aug 2024, 16:51
von Jules
That worked. Thank you very much!