[gPXE] Identifier strings with blank spaces

shedis shedis at gmail.com
Thu Jan 31 13:15:23 EST 2013


Hello,
i have been trying the boot systems using their smbios information. As a starting point i used "Network booting by mac address" (http://www.etherboot.org/wiki/appnotes/bootbymacaddress) link.

I have a file: http://10.10.5.10/gpxe/boot.gpxe

which contains:
#!gpxe
chain http://10.10.5.10/gpxe/boot.txt?mac=${net0/mac}&manufact=${smbios/1.4.0:string}&serialno=${smbios/1.7.0:string}&model=${smbios/1.5.0:string}&req=bootme

When processing above chain command, request is sent to the web server with proper identifier substitution except for model=${smbios/1.5.0:string}. Since model information within smbios contains string with spaces between words e.g. "HP ElliteBook 8560p" the url that get fetched looks liks xxxxxxx&model=HP&. Also the parameters after "model" like stat=ok gets truncated.

Here's httpd log line showing the request:

/gpxe/boot.txt?mac=10%3A1f%3A74%3A4b%3A3c%3A81&manufact=Hewlett-Packard&serialno=4CZ1290JWX&model=HP HTTP/1.0" 200 179 "-" "gPXE/1.0.1+"

Any hints on how to overcome this.

Thanks in advance.

Regards,






More information about the gPXE mailing list