Alles klar, vielen Dank.
"Gelöst" durch ein einfaches Python Script:
import os
productId = [
"acroread11",
"7zip"
]
for product in productId:
command = "opsi-admin -d method setProductInstallationStatus \"" +product+ "\" \"host1a.bla.de\" \"installed\""
print(command)
os.system(command)
Die Suche ergab 2 Treffer
- 15 Okt 2015, 15:55
- Forum: Freier Support
- Thema: Mehrere productID Argumente an Methode setProductInstallationStatus übergeben
- Antworten: 3
- Zugriffe: 1511
- 14 Okt 2015, 16:51
- Forum: Freier Support
- Thema: Mehrere productID Argumente an Methode setProductInstallationStatus übergeben
- Antworten: 3
- Zugriffe: 1511
Mehrere productID Argumente an Methode setProductInstallationStatus übergeben
Hallo, ich versuche der Methode setProductInstallationStatus eine Liste an productID Variablen zu übergeben, was allerdings nicht klarppt
Einzelnes Argument :
/# opsi-admin -d method setProductInstallationStatus "7zip" "host.bla.de" "installed"
funktioniert wundebar. Eine JSON Liste an productIDs ...
Einzelnes Argument :
/# opsi-admin -d method setProductInstallationStatus "7zip" "host.bla.de" "installed"
funktioniert wundebar. Eine JSON Liste an productIDs ...