How to get a List of installed Products without Commandline

Antworten
Jules
Beiträge: 2
Registriert: 30 Jul 2024, 09:46

How to get a List of installed Products without Commandline

Beitrag 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.
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 298
Registriert: 23 Okt 2020, 16:11

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

Beitrag 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...).
Benutzeravatar
SisterOfMercy
Beiträge: 1552
Registriert: 22 Jun 2012, 19:18

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

Beitrag 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%"
          ]
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Jules
Beiträge: 2
Registriert: 30 Jul 2024, 09:46

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

Beitrag von Jules »

That worked. Thank you very much!
Antworten