[ipxe-devel] [gPXE] Identifier strings with blank spaces

Michael Brown mbrown at fensystems.co.uk
Fri Feb 1 01:55:14 UTC 2013

On Thursday 31 Jan 2013 18:15:23 shedis wrote:
> 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:
> which contains:
> #!gpxe
> chain
> ring}&serialno=${smbios/1.7.0:string}&model=${smbios/1.5.0:string}&req=boot
> me
> 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.

First, upgrade to iPXE (http://ipxe.org) - gPXE is no longer maintained.

You can then use the :uristring setting type, e.g.:


This will URI-encode any special characters (including spaces), which should 
solve your problem.


More information about the ipxe-devel mailing list