<html xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"><head><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body vlink="purple" link="blue" lang="EN-US"><div class="WordSection1"><p class="MsoNormal">I wanted to see if it was possible for gPXE to parse a text file to populate variables that can be used with an “Embedded Image” (ex. <a href="http://etherboot.org/wiki/scripting">http://etherboot.org/wiki/scripting</a>) or to read and execute gPXE command lines. The text file will contain network information. High level I was thinking something like this for the text file:<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Variable Option:<o:p></o:p></p><p class="MsoNormal">192.168.1.1<o:p></o:p></p><p class="MsoNormal">255.255.255.0<o:p></o:p></p><p class="MsoNormal">192.168.1.0<o:p></o:p></p><p class="MsoNormal">Etc.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">If gPXE could read these into variables, I believe I could use this ex. <a href="http://etherboot.org/wiki/scripting">http://etherboot.org/wiki/scripting</a> . Obviously substituting the network information out for the variables gPXE read in.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">-OR-<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Command Line Option:<o:p></o:p></p><p class="MsoNormal">set net0/ip 10.0.2.15<o:p></o:p></p><p class="MsoNormal">set net0/netmask 255.255.255.0<o:p></o:p></p><p class="MsoNormal">set net0/gateway 10.0.2.2<o:p></o:p></p><p class="MsoNormal">Etc.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">If gPXE can parse a line of text and then execute it, I believe this would solve my issue as well.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">So why am I trying to do this… DHCP/DNS are tightly controlled by another organization and still to this day DHCP/PXE will not be provided in a Data Center environment. What I want to do is have a static compiled version of a gPXE ISO where I can programmatically inject a text file into, that contains the appropriate network information for the server I’m about to build. A little background of how we do it now high level. We have a website that lists all the servers we own. A user will select a server to build and all the network information is pulled from a database. Then a script creates a WinPE ISO and injects server specific information (i.e. network information). It then injects the WinPE ISO into the out of band card (ex. iLO), boots/reboots the server, the server boots off the WinPE ISO, and builds the server. Basically I want to do the same thing with gPXE. Select server; script injects text file into gPXE ISO, ISO is injected into out of band card, server is powered on/rebooted, and server PXE boots.<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">Any help would be appreciated! Thanks…<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal"><o:p> </o:p></p></div></body></html>