opsi-deploy-client-agent

Antworten
NorbertKoch
Beiträge: 149
Registriert: 26 Aug 2021, 08:37

opsi-deploy-client-agent

Beitrag von NorbertKoch »

Hallo allerseits,

ich versuche per Push Clients zu installieren.

Mit dem Befehl:

Code: Alles auswählen

./opsi-deploy-client-agent -vv -u domain\\Administrator -p "Passwort" -c computername.domain
erhalte ich:

Code: Alles auswählen

[6] [2022-08-30 14:44:04.032] [               ] Deploying to Linux.   (__init__.py:110)
[6] [2022-08-30 14:44:04.032] [               ] * BackendManager is creating BackendDispatcher   (_Manager.py:169)
[6] [2022-08-30 14:44:04.032] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-08-30 14:44:04.033] [               ] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf'   (Dispatcher.py:71)
[6] [2022-08-30 14:44:04.033] [               ] Loading backend config '/etc/opsi/backends/file.conf'   (Dispatcher.py:129)
[6] [2022-08-30 14:44:04.034] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-08-30 14:44:04.035] [               ] Loading backend config '/etc/opsi/backends/mysql.conf'   (Dispatcher.py:129)
[6] [2022-08-30 14:44:04.198] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-08-30 14:44:04.206] [               ] Connecting to mysql://opsi:***secret***@127.0.0.1/opsi?charset=utf8mb4   (MySQL.py:140)
[6] [2022-08-30 14:44:04.227] [               ] Connected to server version: 8.0.30-0ubuntu0.20.04.2   (MySQL.py:164)
[6] [2022-08-30 14:44:04.228] [               ] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf'   (Dispatcher.py:129)
[6] [2022-08-30 14:44:04.230] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-08-30 14:44:04.231] [               ] Dispatcher backends: ['file', 'mysql', 'opsipxeconfd']   (Dispatcher.py:146)
[6] [2022-08-30 14:44:04.277] [               ] * BackendManager is creating ExtendedConfigDataBackend   (_Manager.py:177)
[6] [2022-08-30 14:44:04.277] [               ] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile='/etc/opsi/backendManager/dispatch.conf', context='<BackendManager()>')>)>   (Extended.py:82)
[6] [2022-08-30 14:44:04.295] [               ] * BackendManager is creating HostControlSafeBackend   (_Manager.py:199)
[6] [2022-08-30 14:44:04.295] [               ] Setting context to backend <HostControlSafeBackend()>   (Extended.py:82)
[6] [2022-08-30 14:44:04.322] [               ] * BackendManager is creating BackendExtender   (_Manager.py:215)
[6] [2022-08-30 14:44:04.322] [               ] Setting context to backend <BackendExtender()>   (Extended.py:82)
[6] [2022-08-30 14:44:04.350] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_opsi.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.351] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_wim.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.352] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_easy.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.353] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_legacy.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.366] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_kiosk.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.367] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_sshcommands.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.369] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_admin_tasks.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.371] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_groupActions.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.373] [               ] Reading config file '/etc/opsi/backendManager/extend.d/45_deprecated.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.373] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_dynamic_depot.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.374] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_wan.conf'   (Extender.py:82)
[6] [2022-08-30 14:44:04.422] [               ] Got host_id w10teg1w05.intern.zz   (common.py:87)
[5] [2022-08-30 14:44:04.432] [w10teg1w05.intern.zz] Starting deployment to host w10teg1w05.intern.zz   (common.py:381)
[5] [2022-08-30 14:44:04.432] [w10teg1w05.intern.zz] Querying for ip address of host w10teg1w05.intern.zz   (common.py:197)
[6] [2022-08-30 14:44:04.432] [w10teg1w05.intern.zz] Getting host w10teg1w05.intern.zz by name   (common.py:199)
[5] [2022-08-30 14:44:04.433] [w10teg1w05.intern.zz] Got ip address 192.168.11.132 from syscall   (common.py:206)
[5] [2022-08-30 14:44:04.434] [w10teg1w05.intern.zz] Pinging host 192.168.11.132 ...   (common.py:222)
[6] [2022-08-30 14:44:04.434] [w10teg1w05.intern.zz] Executing ping -q -c2 192.168.11.132   (common.py:56)
[5] [2022-08-30 14:44:05.442] [w10teg1w05.intern.zz] Host 192.168.11.132 is up   (common.py:231)
[3] [2022-08-30 14:44:05.461] [w10teg1w05.intern.zz] Deployment to w10teg1w05.intern.zz failed: [Errno None] Unable to connect to port 22 on 192.168.11.132   (common.py:411)
[6] [2022-08-30 14:44:05.461] [w10teg1w05.intern.zz] Executing on remote: rm -rf /tmp/opsi-client-agent   (posix.py:179)
[3] [2022-08-30 14:44:05.461] [w10teg1w05.intern.zz] Cleanup failed: 'NoneType' object has no attribute 'open_session'   (posix.py:144)
[5] [2022-08-30 14:44:06.926] [               ] 0/1 deployments successful   (__init__.py:197)
[4] [2022-08-30 14:44:06.926] [               ] 1/1 deployments failed   (__init__.py:201)
Sprich: Der opsi-Client wird nicht installiert.

Was ich nicht verstehe: Warum versucht der Server auf einem SSH-Port mit dem Client zu kommunizieren?

Was mache ich falsch?

Tausend dank für Eure Hilfe!

Liebe Grüße

Norbert
Liebe Grüße

Norbert
Bolgorov
Beiträge: 15
Registriert: 13 Okt 2021, 08:31

Re: opsi-deploy-client-agent

Beitrag von Bolgorov »

Hallo,

versuche mal den Befehl folgendermaßen zu ergänzen:

Code: Alles auswählen

./opsi-deploy-client-agent -vv -u 'domain\Administrator' --smbclient -c 'computername.domain'
So versuchst du einen Zugriff über Port 139 bzw. 445.

Gruß,
Arthur
NorbertKoch
Beiträge: 149
Registriert: 26 Aug 2021, 08:37

Re: opsi-deploy-client-agent

Beitrag von NorbertKoch »

Halo Arthur,

danke für den Tipp. Den Parameter hatte ich in der Getting Started Doku auch entdeckt, aber anscheinend gibt es ihn nicht mehr:
"usage: opsi-deploy-client-agent [-h] [--version] [--verbose] [--debug-file DEBUG_FILE] [--username USERNAME] [--password PASSWORD] [--use-fqdn | --use-hostname | --use-ip-address] [--ignore-failed-ping]
[--ssh-hostkey-add | --ssh-hostkey-reject | --ssh-hostkey-warn] [--reboot | --shutdown | --start-opsiclientd | --no-start-opsiclientd] [--hosts-from-file HOST_FILE]
[--skip-existing-clients] [--threads MAX_THREADS] [--install-timeout INSTALL_TIMEOUT] [--depot DEPOT] [--group GROUP] [--keep-client-on-failure | --remove-client-on-failure]
[--failed-clients-file FAILED_CLIENTS_FILE]
[host ...]
opsi-deploy-client-agent: error: unrecognized arguments: --smbclient"
Liebe Grüße

Norbert
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2045
Registriert: 29 Mai 2008, 15:14

Re: opsi-deploy-client-agent

Beitrag von j.schneider »

Hallo,

das sieht aus als würde der opsi-linux-client-agent auf einen Windows-Client geschoben werden.
Falsches Verzeichnis?

Grüße
Jan Schneider


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


NorbertKoch
Beiträge: 149
Registriert: 26 Aug 2021, 08:37

Re: opsi-deploy-client-agent

Beitrag von NorbertKoch »

Hallo Jan,

ok. Schande über mich: Ich war im Linux-Verzeichnis.

Aber auch im richtigen Verzeichnis wird der Client nicht ausgerollt:

Code: Alles auswählen

[6] [2022-09-01 08:43:44.335] [               ] Deploying to Windows.   (__init__.py:104)
[6] [2022-09-01 08:43:44.335] [               ] * BackendManager is creating BackendDispatcher   (_Manager.py:169)
[6] [2022-09-01 08:43:44.335] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-09-01 08:43:44.335] [               ] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf'   (Dispatcher.py:71)
[6] [2022-09-01 08:43:44.336] [               ] Loading backend config '/etc/opsi/backends/mysql.conf'   (Dispatcher.py:129)
[6] [2022-09-01 08:43:44.495] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-09-01 08:43:44.503] [               ] Connecting to mysql://opsi:***secret***@127.0.0.1/opsi?charset=utf8mb4   (MySQL.py:140)
[6] [2022-09-01 08:43:44.521] [               ] Connected to server version: 8.0.30-0ubuntu0.20.04.2   (MySQL.py:164)
[6] [2022-09-01 08:43:44.521] [               ] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf'   (Dispatcher.py:129)
[6] [2022-09-01 08:43:44.522] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-09-01 08:43:44.523] [               ] Loading backend config '/etc/opsi/backends/file.conf'   (Dispatcher.py:129)
[6] [2022-09-01 08:43:44.524] [               ] Backend context was set to <BackendManager()>   (Backend.py:201)
[6] [2022-09-01 08:43:44.525] [               ] Dispatcher backends: ['mysql', 'opsipxeconfd', 'file']   (Dispatcher.py:146)
[6] [2022-09-01 08:43:44.567] [               ] * BackendManager is creating ExtendedConfigDataBackend   (_Manager.py:177)
[6] [2022-09-01 08:43:44.567] [               ] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile='/etc/opsi/backendManager/dispatch.conf', context='<BackendManager()>')>)>   (Extended.py:82)
[6] [2022-09-01 08:43:44.584] [               ] * BackendManager is creating HostControlSafeBackend   (_Manager.py:199)
[6] [2022-09-01 08:43:44.584] [               ] Setting context to backend <HostControlSafeBackend()>   (Extended.py:82)
[6] [2022-09-01 08:43:44.611] [               ] * BackendManager is creating BackendExtender   (_Manager.py:215)
[6] [2022-09-01 08:43:44.611] [               ] Setting context to backend <BackendExtender()>   (Extended.py:82)
[6] [2022-09-01 08:43:44.641] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_opsi.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.642] [               ] Reading config file '/etc/opsi/backendManager/extend.d/10_wim.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.643] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_easy.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.644] [               ] Reading config file '/etc/opsi/backendManager/extend.d/20_legacy.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.658] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_kiosk.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.659] [               ] Reading config file '/etc/opsi/backendManager/extend.d/30_sshcommands.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.661] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_admin_tasks.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.663] [               ] Reading config file '/etc/opsi/backendManager/extend.d/40_groupActions.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.664] [               ] Reading config file '/etc/opsi/backendManager/extend.d/45_deprecated.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.665] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_dynamic_depot.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.666] [               ] Reading config file '/etc/opsi/backendManager/extend.d/70_wan.conf'   (Extender.py:82)
[6] [2022-09-01 08:43:44.715] [               ] Got host_id w10teg1w23.intern.zz   (common.py:87)
[5] [2022-09-01 08:43:44.726] [w10teg1w23.intern.zz] Starting deployment to host w10teg1w23.intern.zz   (common.py:381)
[5] [2022-09-01 08:43:44.726] [w10teg1w23.intern.zz] Querying for ip address of host w10teg1w23.intern.zz   (common.py:197)
[6] [2022-09-01 08:43:44.727] [w10teg1w23.intern.zz] Getting host w10teg1w23.intern.zz by name   (common.py:199)
[5] [2022-09-01 08:43:44.728] [w10teg1w23.intern.zz] Got ip address 192.168.11.161 from syscall   (common.py:206)
[5] [2022-09-01 08:43:44.729] [w10teg1w23.intern.zz] Pinging host 192.168.11.161 ...   (common.py:222)
[6] [2022-09-01 08:43:44.729] [w10teg1w23.intern.zz] Executing ping -q -c2 192.168.11.161   (common.py:56)
[5] [2022-09-01 08:43:45.737] [w10teg1w23.intern.zz] Host 192.168.11.161 is up   (common.py:231)
[6] [2022-09-01 08:43:45.753] [w10teg1w23.intern.zz] Establishing connection with dcom of host 'w10teg1w23.intern.zz'.   (windows.py:62)
[3] [2022-09-01 08:43:45.986] [w10teg1w23.intern.zz] Could not open DCOM connection: DCOM SessionError: unknown error code: 0x800706ba   (windows.py:70)
Traceback (most recent call last):
  File "opsideployclientagent/windows.py", line 65, in dcom_connection
  File "impacket/dcerpc/v5/dcomrt.py", line 1076, in CoCreateInstanceEx
  File "impacket/dcerpc/v5/dcomrt.py", line 1854, in RemoteCreateInstance
  File "impacket/dcerpc/v5/rpcrt.py", line 880, in request
impacket.dcerpc.v5.dcomrt.DCERPCSessionError: DCOM SessionError: unknown error code: 0x800706ba
[3] [2022-09-01 08:43:45.987] [w10teg1w23.intern.zz] Deployment to w10teg1w23.intern.zz failed: generator didn't yield   (common.py:411)
[5] [2022-09-01 08:43:45.987] [w10teg1w23.intern.zz] Cleaning up   (windows.py:369)
[5] [2022-09-01 08:43:47.219] [               ] 0/1 deployments successful   (__init__.py:197)
[4] [2022-09-01 08:43:47.220] [               ] 1/1 deployments failed   (__init__.py:201)
Was passt jetzt nicht?

Liebe Grüße

Norbert
Liebe Grüße

Norbert
g.burck
Beiträge: 228
Registriert: 23 Mai 2018, 16:44

Re: opsi-deploy-client-agent

Beitrag von g.burck »

Ich habe ja das Problem schon beschrieben:
viewtopic.php?t=13149

und jetzt habe ich mal einen Bugreport aufgemacht:
viewtopic.php?t=13154
opsi config editor Version 4.1.9.8.5 (2021/04/12)

opsiconfd 4.2.0.286
Bolgorov
Beiträge: 15
Registriert: 13 Okt 2021, 08:31

Re: opsi-deploy-client-agent

Beitrag von Bolgorov »

Hallo,

das sieht für mich allerdings nicht aus als wäre der OPSI Server hier das Problem. Funktioniert das ausrollen nur bei diesem bestimmten Client nicht ? Wird der DcomLaunch Dienst ausgeführt auf dem Windows Rechner ?

Gruß,
Arthur
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 408
Registriert: 23 Okt 2020, 16:11

Re: opsi-deploy-client-agent

Beitrag von n.doerrer »

Hallo,

dieses Problem ist vermutlich unabhängig von diesem viewtopic.php?t=13149

Hier sieht es so aus, als wäre es ein firewall-Problem. Im Fall der windows-firewall hilft es vermutlich, diese temporär zu deaktivieren. Sollte dem so sein, wäre interessant, welcher Teilaspekt der windows-firewall hier das Problem ist.

Gruß
Nils


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


NorbertKoch
Beiträge: 149
Registriert: 26 Aug 2021, 08:37

Re: opsi-deploy-client-agent

Beitrag von NorbertKoch »

Hallo @Bolgorow,

das Ausrollen funktioniert bei 8 getesteten Clients nicht. Ich hab das Thema erstmal zurückgestellt. Im Oktober haben wir unsere Einweisungsschulung von UIB.

Liebe Grüße

Norbert
Liebe Grüße

Norbert
Antworten