Retrieving hostname

Antworten
mcalvas
Beiträge: 2
Registriert: 28 Feb 2011, 17:18

Retrieving hostname

Beitrag 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
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1819
Registriert: 29 Mai 2008, 15:14

Re: Retrieving hostname

Beitrag 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".
mcalvas
Beiträge: 2
Registriert: 28 Feb 2011, 17:18

Re: Retrieving hostname

Beitrag 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
Antworten