Reinstalling the preloginloader / changing the opsi server
Reinstalling the preloginloader / changing the opsi server
I'm in a situation where I have a group of machines being managed with OPSI. We have two OPSI servers and sometimes we need to switch clients between the two. I'm having trouble making this happen. I've tried uninstalling the preloginloader with deinstall.cmd. It appears to work, and the system reboots OK. I then reinstall the preloginloader with service_setup.cmd. The client registers with the OSPI server When the system reboots I get the following error:
http://www.grabup.com/uploads/e52425918 ... 0ae4ec.png
("C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\preloginloader.log" could not be created as logfile. Exception "Ungultiger Dateiname".
However, after rebooting for a second time everything works.
I'd really like to make it work on the first reboot though. Anyone have ideas?
Re: Reinstalling the preloginloader / changing the opsi server
hmm -
you may try to replace in the service_setup.cmd
the lines
Code: Alles auswählen
if not exist files\opsi\utils\winst32.exe goto :winstmissing
files\opsi\utils\winst32.exe /batch files\opsi\preloginloader.ins %TEMP%\preloginloader.log /PARAMETER INSTALL:CREATE_CLIENT
Code: Alles auswählen
if exist c:\tmp goto :startwinst
mkdir c:\tmp
:startwinst
if not exist files\opsi\utils\winst32.exe goto :winstmissing
files\opsi\utils\winst32.exe /batch files\opsi\preloginloader.ins c:\tmp\preloginloader.log /PARAMETER INSTALL:CREATE_CLIENT
via web service call or by
Code: Alles auswählen
/usr/share/opsi/opsi-fire-event.py <client-id> gui_startup
Give me a notice if the code replace does not works.
regrads
detlef oertel
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
Re: Reinstalling the preloginloader / changing the opsi server
Re: Reinstalling the preloginloader / changing the opsi server
The system cannot find the batch label specified - startwinst.
Re: Reinstalling the preloginloader / changing the opsi server
start service_setup.cmd from second opsi-server and delete the Client from the first server withbhearsum hat geschrieben: I'm in a situation where I have a group of machines being managed with OPSI. We have two OPSI servers and sometimes we need to switch clients between the two.
Code: Alles auswählen
opsi-admin -d method deleteClient <clientId>
Bardo Wolf
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
Re: Reinstalling the preloginloader / changing the opsi server
hmm - the label is in the codebhearsum hat geschrieben: The system cannot find the batch label specified - startwinst.
Code: Alles auswählen
if exist c:\tmp goto :startwinst
mkdir c:\tmp
:startwinst
if not exist files\opsi\utils\winst32.exe goto :winstmissing
files\opsi\utils\winst32.exe /batch files\opsi\preloginloader.ins c:\tmp\preloginloader.log /PARAMETER INSTALL:CREATE_CLIENT
And this registry entry points to a directory or file wich is not usable after the first reboot.
Yes - this is a bug.
With the change above the log file is in c:\tmp\ which is always there.
Could you please check the code again.
regards
detlef oertel
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