Hi all,
I would like to execute a script on my opsi server at the end (or during) a windows installation using netboot. For this, I need to get the hostname of the machine being installed in a variable. Could you tell me the best and easier way to retrieve this value ? From which python script can I export this variable ?
Thanks in advance for your answers.
Regards,
MC
Retrieving hostname
- j.schneider
- uib-Team
- Beiträge: 2050
- Registriert: 29 Mai 2008, 15:14
Re: Retrieving hostname
Hi,
I do not really understand what you are trying to do.
In a netboot-python-script you can use the variable "clientId".
I do not really understand what you are trying to do.
In a netboot-python-script you can use the variable "clientId".
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: Retrieving hostname
Hi,
I would like to get this variable on server side, and I want to execute a script on my opsi server containing the name of the machine being installed. So I can't use a netboot script or any script executing on client side.
Regards,
MC
I would like to get this variable on server side, and I want to execute a script on my opsi server containing the name of the machine being installed. So I can't use a netboot script or any script executing on client side.
Regards,
MC