Seite 1 von 1

Retrieving hostname

Verfasst: 28 Feb 2011, 17:33
von mcalvas
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

Re: Retrieving hostname

Verfasst: 03 Mär 2011, 12:14
von j.schneider
Hi,

I do not really understand what you are trying to do.
In a netboot-python-script you can use the variable "clientId".

Re: Retrieving hostname

Verfasst: 03 Mär 2011, 13:24
von mcalvas
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