Seite 1 von 1

Réinstallation de opsi-client-agent

Verfasst: 05 Okt 2011, 17:13
von henry4
Bonjour,
Comme opsi-client-configed ne semble pas reconnaitre que l'un de mes client est "on", je me suis dit que ca venait de mon opsi-client-agent installé sur le client.
J'ai donc voulu le réinstaller en le telechargeant sur http://download.uib.de/opsi4.0/experime ... 7.2-1.opsi.

Je lance donc la réinstallation à partir de "service_setup.cmd".

Tout se passe bien jusqu'a l'instant ou une fenetre s'ouvre et me dit: "Could not ge: hostkey -aborting"

Voila
Je me mon log:
opsi-client-agent-log:
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Execution of opsiservicecall_createClient
[6] [05/10/2011 16:55:35] "method": "createClient"
[6] [05/10/2011 16:55:35] Calling opsi service at https://opsi.****.lan:4447
[6] [05/10/2011 16:55:35] JSON service request https://opsi.****.lan:4447/rpc createClient
[3] [05/10/2011 16:55:35] Error: retrieveJSONObject --- opsi service problem ---{"message":"Bad domain: '<dnsdomain>'","class":"ValueError"}
[3] [05/10/2011 16:55:35] Error: {"message":"Bad domain: '<dnsdomain>'","class":"ValueError"}
[6] [05/10/2011 16:55:35] retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35] (string 0){"message":"Bad domain: '<dnsdomain>'","class":"ValueError"}
[7] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] EndIf
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Set $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_getNetworkconfig_hash')
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Execution of opsiservicecall_getNetworkconfig_hash
[6] [05/10/2011 16:55:35] "method": "getNetworkConfig_hash"
[6] [05/10/2011 16:55:35] Calling opsi service at https://opsi.****.lan:4447
[6] [05/10/2011 16:55:35] JSON service request https://opsi.****.lan:4447/rpc getNetworkConfig_hash
[3] [05/10/2011 16:55:35] Error: retrieveJSONObject --- opsi service problem ---{"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[3] [05/10/2011 16:55:35] Error:
[6] [05/10/2011 16:55:35] retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Set $OCD_config_service.url$ = takestring(1, splitString(takeFirstStringContaining($INST_ServiceResult$,"nextBootServiceURL"), '='))
[6] [05/10/2011 16:55:35] retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35]
[6] [05/10/2011 16:55:35] retrieving strings from splitString [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35] (string 0)
[7] [05/10/2011 16:55:35]
[6] [05/10/2011 16:55:35] effective list index 1 not in bounds 0, 0
[6] [05/10/2011 16:55:35] The value of the variable "$OCD_config_service.url$" is now: ""
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] If
[5] [05/10/2011 16:55:35] $OCD_config_service.url$ = "" <<< result true
[5] [05/10/2011 16:55:35] Then
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Set $OCD_config_service.url$ = GetvalueFromInifile($INST_cfgini$, "opsiclientd", "config_service.url", "")
[6] [05/10/2011 16:55:35] reading the value to the key "config_service.url" in section "opsiclientd" from inifile "C:\tmp\opsi\cfg\config.ini", default value ""
[6] [05/10/2011 16:55:35] The value of the variable "$OCD_config_service.url$" is now: "https://<serverip>:4447"
[5] [05/10/2011 16:55:35] EndIf
[1] [05/10/2011 16:55:35] LogLevel was 7
[1] [05/10/2011 16:55:35] LogLevel set to 7
[6] [05/10/2011 16:55:35] Marked error number 8
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Set $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_getOpsiHostKey')
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Execution of opsiservicecall_getOpsiHostKey
[6] [05/10/2011 16:55:35] "method": "getOpsiHostKey"
[6] [05/10/2011 16:55:35] Calling opsi service at https://opsi.****.lan:4447
[6] [05/10/2011 16:55:35] JSON service request https://opsi.****.lan:4447/rpc getOpsiHostKey
[3] [05/10/2011 16:55:35] Error: retrieveJSONObject --- opsi service problem ---{"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[3] [05/10/2011 16:55:35] Error: {"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[6] [05/10/2011 16:55:35] retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35] (string 0){"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[7] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Set $SHI_pckey$ = takestring(0, $INST_ServiceResult$)
[6] [05/10/2011 16:55:35] retrieving strings from $INST_ServiceResult$ [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35] (string 0){"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[7] [05/10/2011 16:55:35]
[6] [05/10/2011 16:55:35] The value of the variable "$SHI_pckey$" is now: "{"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}"
[1] [05/10/2011 16:55:35] LogLevel was 7
[1] [05/10/2011 16:55:35] LogLevel set to 7
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] If
[5] [05/10/2011 16:55:35] errorsOccuredSinceMark > 0 <<< result true
[5] [05/10/2011 16:55:35] Then
[1] [05/10/2011 16:55:35] LogLevel was 7
[1] [05/10/2011 16:55:35] LogLevel set to 7
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Set $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_createClient')
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Execution of opsiservicecall_createClient
[6] [05/10/2011 16:55:35] "method": "createClient"
[6] [05/10/2011 16:55:35] Calling opsi service at https://opsi.****.lan:4447
[6] [05/10/2011 16:55:35] JSON service request https://opsi.****.lan:4447/rpc createClient
[3] [05/10/2011 16:55:35] Error: retrieveJSONObject --- opsi service problem ---{"message":"Bad domain: '<dnsdomain>'","class":"ValueError"}
[3] [05/10/2011 16:55:35] Error: {"message":"Bad domain: '<dnsdomain>'","class":"ValueError"}
[6] [05/10/2011 16:55:35] retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35] (string 0){"message":"Bad domain: '<dnsdomain>'","class":"ValueError"}
[7] [05/10/2011 16:55:35]
[6] [05/10/2011 16:55:35] Marked error number 12
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Set $INST_ServiceResult$ = getReturnListFromSection('opsiservicecall_getOpsiHostKey')
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] Execution of opsiservicecall_getOpsiHostKey
[6] [05/10/2011 16:55:35] "method": "getOpsiHostKey"
[6] [05/10/2011 16:55:35] Calling opsi service at https://opsi.****.lan:4447
[6] [05/10/2011 16:55:35] JSON service request https://opsi.****.lan:4447/rpc getOpsiHostKey
[3] [05/10/2011 16:55:35] Error: retrieveJSONObject --- opsi service problem ---{"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[3] [05/10/2011 16:55:35] Error: {"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[6] [05/10/2011 16:55:35] retrieving strings from getReturnListFromSection [switch to loglevel 7 for debugging]
[7] [05/10/2011 16:55:35] (string 0){"message":"Bad object id: 'opsi-client.<dnsdomain>'","class":"ValueError"}
[7] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35]
[5] [05/10/2011 16:55:35] If
[5] [05/10/2011 16:55:35] errorsOccuredSinceMark > 0 <<< result true
[5] [05/10/2011 16:55:35] Then
[3] [05/10/2011 16:55:35] Error: Could not get hostkey - aborting
[5] [05/10/2011 16:56:34] Error level set to fatal
[5] [05/10/2011 16:56:34] Process aborted
[6] [05/10/2011 16:56:34]
[6] [05/10/2011 16:56:34] ~~~~~~~ End Sub ~~~~~~~ sub_sub_create_client
[6] [05/10/2011 16:56:34]
[5] [05/10/2011 16:56:34] Process aborted
[6] [05/10/2011 16:56:34]
[6] [05/10/2011 16:56:34] ~~~~~~~ End Sub ~~~~~~~ sub_read_configuration
[6] [05/10/2011 16:56:34]
[5] [05/10/2011 16:56:34] Process aborted
[1] [05/10/2011 16:56:34] ___________________
[1] [05/10/2011 16:56:34] script finished
[1] [05/10/2011 16:56:34] 15 errors
[1] [05/10/2011 16:56:34] 0 warnings



Quelqu'un pourrait me dépanner s'il vous plait?

Merci

Re: Réinstallation de opsi-client-agent

Verfasst: 06 Okt 2011, 13:53
von Antoine GUEVARA
Bonjour,

Est ce qu'il te demande un nom d'utilisateur et mot de passe lorsque tu installe ton client ?

Re: Réinstallation de opsi-client-agent

Verfasst: 06 Okt 2011, 17:58
von henry4
Oui
j'utilise l'utilisateur pcpatch

Re: Réinstallation de opsi-client-agent

Verfasst: 07 Okt 2011, 09:44
von Antoine GUEVARA
Est ce que tu as fait cette commande ?

Code: Alles auswählen

opsi-admin -d task setPcpatchPassword
et par la meme occasion celle ci

Code: Alles auswählen

opsi-setup --set-right

Re: Réinstallation de opsi-client-agent

Verfasst: 07 Okt 2011, 11:48
von poterealpopolo
Bonjour,

le paquet pour opsi client agent (dans ca version experimentale) est http://download.uib.de/opsi4.0/experime ... .1-22.opsi.

En fonction de ton message, tu installe opsi-fusion-audit_2.1.7.2-1.opsi.

Re: Réinstallation de opsi-client-agent

Verfasst: 18 Okt 2011, 12:11
von henry4
Bonjour,
Merci à tous pour votre aide.
J'ai finalement réussis à regler mon problème en installant opsi-client-agent en montant le fichier d'installation.
J'ai suivi le 3.1.1.1 de opsiGettingStarted.pdf:

3.1.1.1
Usage of service_setup.cmd
This method is the first choice for installations on a single computer or for repair purpose. For mass rollout see the
chapter below.
1. login with administrative priviliges
2. mount the share \\<opsiserver>\opt_pcbin to drive letter
3. start the script install\opsi-client-agent\service_setup.cmd
4. The script connects to the opsi-webservice to create the server side client information and to get the pckey. The
connect takes the user/password combination registered in the config.ini. If the connect fails, a login window
pops up to fill in service URL, user and password. The provided user has to be member of the group opsi-admin.