wir sind im Moment dabei unsere Rechner auf Windows 10 zu migrieren. Ich habe dafür eine VM installiert, die ich so konfiguriere, wie die späteren Rechner konfiguriert sein sollen.
Ich bin mittlerweile bei der Opsiverteilung angekommen. Bisher verteilen wir den Opsiclient via einer Batch Datei, die per GPO aufgerufen wird. In der Batch wird der opsi-deploy-client-agent Befehl via plink aufgerufen.
plink -batch -v -ssh -P 22 -pw <Passwort> -hostkey <key> root@opsi.<Domain> /var/lib/opsi/depot/opsi-client-agent/opsi-deploy-client-agent -v -o -u <Domain>\\<User> -p <Passwort> -x %COMPUTERNAME%.<Domain>
Leider funktioniert es nicht, da ich den Fehler NT_STATUS_CONNECTION_RESET zurück bekomme:
Code: Alles auswählen
root@opsi:~# /var/lib/opsi/depot/opsi-client-agent/opsi-deploy-client-agent -vv -o -u <Domain>\\<User> -p <Passwort> -x win10test.<Domain>
Deploying to Windows.
* BackendManager is creating BackendDispatcher
Backend context was set to <BackendManager(name=None)>
Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf'
Loading backend config '/etc/opsi/backends/opsipxeconfd.conf'
Backend context was set to <BackendDispatcher(name=None)>
Loading backend config '/etc/opsi/backends/mysql.conf'
Backend context was set to <BackendDispatcher(name=None)>
Verifying modules file signature
Modules file signature verified (customer: <Kunde>, <Stadt>)
* BackendManager is creating ExtendedConfigDataBackend
Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(name=None)>)>
Got hostId win10test.<Domain>
Getting hosts, filter: {'type': 'OpsiClient', 'id': u'win10test.<Domain>'}
Starting deployment to host 'win10test.<Domain>'
Querying for ip address of host 'win10test.<Domain>'
Getting host 'win10test.<Domain>' by name
Got ip address '192.168.212.163' from syscall
Pinging host 192.168.212.163 ...
Executing: ping -q -c2 192.168.212.163
Using encoding 'UTF-8'
Host 192.168.212.163 is up
Getting hosts, filter: {'type': 'OpsiClient', 'id': u'win10test.<Domain>'}
Getting hardware ethernet address of host 'win10test.<Domain>'
Found hardware ethernet address '<MAC>'
Creating client 'win10test.<Domain>'
Creating host '<OpsiClient(id=u'win10test.<Domain>')>'
Getting hosts, filter: {'type': 'OpsiClient', 'id': u'win10test.<Domain>'}
Testing winexe
Executing: /usr/bin/winexe -U '<Domain>\<User>%*** confidential ***' //win10test.<Domain> 'cmd.exe /C "del /s /q c:\tmp\opsi-client-agent_inst && rmdir /s /q c:\tmp\opsi-client-agent_inst || echo not found"'
Using encoding 'UTF-8'
Winexe failure 'Command '/usr/bin/winexe -U '<Domain>\<User>%*** confidential ***' //win10test.<Domain> '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_CONNECTION_RESET', retrying
Executing: /usr/bin/winexe -U '<Domain>\<User>%*** confidential ***' //win10test.<Domain> 'cmd.exe /C "del /s /q c:\tmp\opsi-client-agent_inst && rmdir /s /q c:\tmp\opsi-client-agent_inst || echo not found"'
Using encoding 'UTF-8'
Deployment to 'win10test.<Domain>' failed: Failed to execute command on host 'win10test.<Domain>': winexe error: Command '/usr/bin/winexe -U '<Domain>\<User>%*** confidential ***' //win10test.<Domain> '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_CONNECTION_RESET
Deleting client <OpsiClient(id=u'win10test.<Domain>')> from backend.
Getting objectToGroups, filter: {'groupType': 'HostGroup', 'objectId': u'win10test.<Domain>'}
Getting productOnClients, filter: {'clientId': u'win10test.<Domain>'}
Getting productPropertyStates, filter: {'objectId': u'win10test.<Domain>'}
Getting configStates, filter: {'objectId': u'win10test.<Domain>'}
Getting bootConfigurations, filter: {'name': [], 'clientId': u'win10test.<Domain>'}
Getting auditSoftwareOnClient, filter: {'clientId': u'win10test.<Domain>'}
Getting auditHardwareOnHosts, filter: {'hostId': u'win10test.<Domain>'}
License management module disabled
License management module disabled
License management module disabled
Deleting host <OpsiClient(id=u'win10test.<Domain>')>
Getting auditHardwareOnHosts, filter: {'objectId': u'win10test.<Domain>'}
Getting objectToGroups, filter: {'groupType': 'HostGroup', 'objectId': u'win10test.<Domain>'}
Getting productOnClients, filter: {'clientId': u'win10test.<Domain>'}
Getting productPropertyStates, filter: {'objectId': u'win10test.<Domain>'}
Getting configStates, filter: {'objectId': u'win10test.<Domain>'}
Getting bootConfigurations, filter: {'name': [], 'clientId': u'win10test.<Domain>'}
Getting auditSoftwareOnClient, filter: {'clientId': u'win10test.<Domain>'}
Getting auditHardwareOnHosts, filter: {'hostId': u'win10test.<Domain>'}
License management module disabled
License management module disabled
License management module disabled
=> https://uib.de/de/opsi/aktuelles/opsi-406/
root@opsi:~# opsi-admin -V
opsi-admin 4.0.6.9
Problematisch ist wohl winexe, ich kann damit noch nicht mal ein 'cmd.exe /C dir' absetzen, was bei einem Windows 7 ohne Probleme funktioniert.
Wir verwenden noch ein Ubuntu 12.04.5 LTS und können nicht mehr einfach so upgraden, ohne die Distribution auf einen neueren Stand zu bringen.
root@opsi:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Irgendwelche Hinweise? Hat jemand so etwas ähnliches gehabt?