I created a new client from scratch: newclient.example.com
The newclient.example.com.ini contains the following
Code: Alles auswählen
[info]
created = 2013-03-21 13:40:12
description =
hardwareaddress = aa:bb:cc:dd:ee:ff
inventorynumber =
ipaddress = 192.168.50.254
lastseen = 2013-03-21 13:40:12
notes =
[generalconfig]
clientconfig.depot.id = ["opsi.example.com"]
[localboot_product_states]
7zip = not_installed:setup
videolan.vlc = not_installed:setup
when I run:
Code: Alles auswählen
opsi-admin -d method getProductActionRequests_listOfHashes newclientexample.com
I get no output
when I run the command you last suggested I get an error message:
Code: Alles auswählen
root@opsi:~# opsi-admin -d method productOnClient_getObjects '[]' '{"newclient.example.com"}'
[2] Traceback: (Logger.py|742)
[2] line 1569 in '<module>' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 304 in 'main' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 672 in 'execute' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] ==>>> Failed to execute 'method productOnClient_getObjects [] {"newclient.example.com"}': Expecting : delimiter: line 1 column 19 (char 19) (opsi-admin|1579)
if i just run the command:
Code: Alles auswählen
opsi-admin -d method productOnClient_getObjects '[]'|grep newclient.example.com
I don't get any output.
If I then manually assign the 7zip package to newclient.example.com and run the command:
Code: Alles auswählen
opsi-admin -d method productOnClient_getObjects '[]'|more
I get (among other clients off course) this output:
Code: Alles auswählen
{
"ident" : "7zip;LocalbootProduct;newclient.example.com",
"actionProgress" : null,
"actionResult" : null,
"clientId" : "newclient.example.com",
"modificationTime" : "2013-03-21 13:49:11",
"actionRequest" : "setup",
"targetConfiguration" : null,
"productVersion" : null,
"productType" : "LocalbootProduct",
"lastAction" : null,
"packageVersion" : null,
"actionSequence" : -1,
"type" : "ProductOnClient",
"installationStatus" : "not_installed",
"productId" : "7zip"
},
and if I run
opsi-admin -d method getProductActionRequests_listOfHashes newclient.example.com again I get:
Code: Alles auswählen
[
{
"actionRequest" : "setup",
"productId" : "7zip"
}
]
cheers,
Ritch