Seite 1 von 2

GElöst Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 08:55
von Mike162
Hallo zusammen,

versuche einen Client vom Opsi Server aus in den Opsi aufzunehmen.

Hierzu wir im HAnbuch unter 1.1.1.2 das Script beschrieben

Hier der Befehl:

Code: Alles auswählen

root@[server]:/opt/pcbin/install/opsi-client-agent#./opsi-deploy-client-agent -v -u "[Ip-Adresse]\adminuser" "[IP-Adresse]"
Mein Ausgabe sieht dann soa us:

Code: Alles auswählen

[notice] Starting deployment to host 'IP-Adress
[notice] Querying for ip address of host 'IP-Adress'
[notice] Got ip address 'IP-Adress' from syscall
[notice] Pinging host IP-Adress ...
[notice] Host IP-Adress is up
[notice] Getting hardware ethernet address of host 'IP-Adress'
[notice] Found hardware ethernet address '00:15:77:ac:90:f7'
[notice] Creating client '192.168.2.179'
[notice] Testing winexe
[error] Deployment to 'Ip-Adress' failed: Failed to execute command on host '192': winexe error: Command './winexe -U 'ip-Adress\adminuser%*** confidential ***' //192 'cmd.exe /C "del /s /q c:\tmp\opsi-client-agent_inst && rmdir /s /q c:\tmp\opsi-client-agent_inst || echo not found"'' failed (1):
ERROR: Failed to open connection - NT_STATUS_INVALID_PARAMETER
Wenn ich das ganze dann per Namen durchspiele siehte s so aus:

Code: Alles auswählen

root@[server]:/opt/pcbin/install/opsi-client-agent#./opsi-deploy-client-agent -v -u "[Clientname]\adminuser" "[Clientname]"

Code: Alles auswählen

[notice] Starting deployment to host 'client.bla.blub'
[notice] Querying for ip address of host 'client.bla.blub'
[warning] Failed to get ip address for host 'client.bla.blub' by syscall: [Errno -2] Name or service not known
[notice] Got ip address 'IP-Adress' from netbios lookup
[notice] Pinging host IP-Adress ...
[notice] Host IP-Adress is up
[notice] Getting hardware ethernet address of host 'opsicl.kpb.local'
[notice] Found hardware ethernet address '00:15:77:ac:90:f7'
[notice] Creating client 'opsicl.kpb.local'
[notice] Testing winexe
[error] Deployment to 'opsicl.kpb.local' failed: Failed to execute command on host 'client': winexe error: Command './winexe -U 'clientL\adminuser%*** confidential ***' //opsicl 'cmd.exe /C "del /s /q c:\tmp\opsi-client-agent_inst && rmdir /s /q c:\tmp\opsi-client-agent_inst || echo not found"'' failed (1):
ERROR: Failed to open connection - NT_STATUS_LOGON_FAILURE

Kann mir jemand weiterhelfen?

Gruß

Mike

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 09:09
von tobias
NT_STATUS_LOGON_FAILURE

;) da scheinen die login daten falsch sein.


/opt/pcbin/install/opsi-client-agent#./opsi-deploy-client-agent -v -u "[Ip-Adresse]\adminuser" "[IP-Adresse]"

Probiers mal mit:
./opsi-deploy-client-agent -u lokaler-admin-deines-clients -p passwortdesclients fqdn-deines-clients

manchmal hilft auch noch ein -c

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 10:09
von Mike162
Hi,

der User exestiert beim Client.

habe es mit:

Code: Alles auswählen

./opsi-deploy-client-agent -u lokaler-admin-deines-clients -p passwortdesclients -c fqdn-deines-clients

Bekomme als Ausgabe

Code: Alles auswählen

[warning] Failed to get ip address for host 'fqdn' by syscall: [Errno -2] Name or service not known
Gruß

Mike

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 10:13
von tobias
mach mal nen nslookup auf den client (fqdn)

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 10:18
von Mike162
Hi

Ausgabe:

** server can't find [fqdn]: NXDOMAIN

HAst du ne idee wodran das liegen kann?

Mfg

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 10:22
von tobias
ja ihr habt ein DNS Problem ;)
Ich tippe darauf das der Client eurem DNS Server nicht bekannt ist.

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 10:31
von Mike162
Hi,

das vermute ich auch..

bei nslookup wird aber der Server angezeigt

Server: XXX.XXX.XXX.XXX.
Address: XXX.XXX.XXX.XXX#XX

** server can't find fqdn: NXDOMAIN <<<- opsi client

/etc/resolv.conf
nameserver XXX.XXX.XXX.XXX

Die beiden Adressen sind die gleichen.

HAst du ne idee wie ich das löse?

Mfg

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 10:46
von tobias
naja wenn ansonsten DNS geht dann liegt es wohl eher an eurem DNS Server und nicht am OPSI Server.
der DNS Server muss natürlich den Client kennen. Wenn ihr z.B. kein AD habt wo automatisch ein DNS Eintrag angelegt wird, musst du das halt per Hand nachholen ;)

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 11:00
von Mike162
Hi,

genau das vermute ich auch... da es der DNS auch ein eLinux Kiste ist sollte das auch automatisch gehen ... nur wo muss ich den Eintrag dafür setzen?

Re: Opsi-deploy-client agent

Verfasst: 04 Jul 2012, 11:09
von tobias
Mike162 hat geschrieben:Hi,

genau das vermute ich auch... da es der DNS auch ein eLinux Kiste ist sollte das auch automatisch gehen ... nur wo muss ich den Eintrag dafür setzen?
Keine Ahnung - kenne euer system nicht wir haben Windows DNS