ich probiere mich aktuell (grob an folgenden Thread angelehnt viewtopic.php?t=11243) daran, ein Paket zu schreiben um Clients von einem Configserver auf einen anderen umzuziehen.
Grundsätzlich hab ich bereits alle Befehle auf dem Ziel-Configserver getestet. Jetzt muss ich dir nur als OpsiServiceCall im OPSI-Skript verpacken. Aktuell sieht das wie folgt aus:
Code: Alles auswählen
opsiservicecall_test /serviceurl "*FQDN*" /user "username" /password "password"
[opsiservicecall_test]
"method": "host_createOpsiClient"
"params": [
"%FQDN%"
]
Code: Alles auswählen
[6] [2023-09-05 15:02:59.722] [] "method": "host_createOpsiClient"
[6] [2023-09-05 15:03:15.822] [] Lib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[7] [2023-09-05 15:03:15.836] [] SLLVersion : TLSv1.2
[7] [2023-09-05 15:03:15.843] [] Loaded: ssl_openssl
[7] [2023-09-05 15:03:15.851] [] HTTPSender.Sock.SSL.LibVersion: OpenSSL 1.0.2u 20 Dec 2019
[8] [2023-09-05 15:03:15.858] [] HTTPSender.Sock.GetLocalSinIP :
[6] [2023-09-05 15:03:15.867] [] SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[3] [2023-09-05 15:03:17.993] [] HTTPSender Post failed
[3] [2023-09-05 15:03:18.001] [] HTTPSender result: 500 msg:
[8] [2023-09-05 15:03:18.009] [] Exception in retrieveJSONObject0: POST /rpc HTTP/1.1
[6] [2023-09-05 15:03:18.017] [] Retry with communicationmode: 1
[6] [2023-09-05 15:03:18.025] [] SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[3] [2023-09-05 15:03:20.179] [] HTTPSender Post failed
[3] [2023-09-05 15:03:20.189] [] HTTPSender result: 500 msg:
[8] [2023-09-05 15:03:20.201] [] Exception in retrieveJSONObject0: POST /rpc HTTP/1.1
[6] [2023-09-05 15:03:20.210] [] Retry with communicationmode: 2
[6] [2023-09-05 15:03:20.219] [] SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[3] [2023-09-05 15:03:22.342] [] HTTPSender Post failed
[3] [2023-09-05 15:03:22.346] [] HTTPSender result: 500 msg:
[8] [2023-09-05 15:03:22.349] [] Exception in retrieveJSONObject0: POST /rpc HTTP/1.1
[5] [2023-09-05 15:03:22.352] [] opsi Server Version :
[6] [2023-09-05 15:03:22.496] [] Lib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[7] [2023-09-05 15:03:22.499] [] SLLVersion : TLSv1.2
[7] [2023-09-05 15:03:22.502] [] Loaded: ssl_openssl
[7] [2023-09-05 15:03:22.506] [] HTTPSender.Sock.SSL.LibVersion: OpenSSL 1.0.2u 20 Dec 2019
[8] [2023-09-05 15:03:22.510] [] HTTPSender.Sock.GetLocalSinIP :
[6] [2023-09-05 15:03:22.513] [] SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[3] [2023-09-05 15:03:24.658] [] HTTPSender Post failed
[3] [2023-09-05 15:03:24.663] [] HTTPSender result: 500 msg:
[8] [2023-09-05 15:03:24.667] [] Exception in retrieveJSONObject0: POST /rpc HTTP/1.1
[6] [2023-09-05 15:03:24.669] [] Retry with communicationmode: 1
[6] [2023-09-05 15:03:24.672] [] SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[3] [2023-09-05 15:03:26.802] [] HTTPSender Post failed
[3] [2023-09-05 15:03:26.806] [] HTTPSender result: 500 msg:
[8] [2023-09-05 15:03:26.809] [] Exception in retrieveJSONObject0: POST /rpc HTTP/1.1
[6] [2023-09-05 15:03:26.812] [] Retry with communicationmode: 2
[6] [2023-09-05 15:03:26.815] [] SslLib should be: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
[3] [2023-09-05 15:03:28.943] [] HTTPSender Post failed
[3] [2023-09-05 15:03:28.948] [] HTTPSender result: 500 msg:
[8] [2023-09-05 15:03:28.958] [] Exception in retrieveJSONObject0: POST /rpc HTTP/1.1
[3] [2023-09-05 15:03:35.983] [] Error: Cancelled by user
[3] [2023-09-05 15:03:36.006] [] Error: no connection to service