iPXE discussion forum
DHCP Option 7 and Syslog. - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: DHCP Option 7 and Syslog. (/showthread.php?tid=3683)



DHCP Option 7 and Syslog. - MultimediaMan - 2012-07-02 19:32

Hello all;

I recently compiled an iPXE kernel with the latest code with syslog enabled. When I call dhcp option 7 in a script:

Code:
dhcp
echo DHCP Option 7 is "${7}"

iPXE returns the following on DHCP Option 7: when enabled on the scope with only one IP in the Option String;

Code:
DHCP Option 7 is "
"

When Two IPs are specified in DHCP Option 7 it returns the following:

Code:
DHCP Option 7 is "
o"

When Three IPs are specified in DHCP Option 7 it returns the following:

Code:
DHCP Option 7 is "
"

If DHCP option 7 is disabled from the scope, iPXE returns the following:

Code:
DHCP Option 7 is ""

This leads me to believe iPXE doesn't fully support all DHCP options as variables. This is a definite "nice to have", however.

I can do a wireshark capture from the DHCP server.

Any ideas?

TIA,

M^3


RE: DHCP Option 7 and Syslog. - mcb30 - 2012-07-03 00:24

(2012-07-02 19:32)MultimediaMan Wrote:  
Code:
dhcp
echo DHCP Option 7 is "${7}"

Use ${7:ipv4} instead. (If you have syslog support compiled in, you can also use ${syslog}.)

Michael


RE: DHCP Option 7 and Syslog. - MultimediaMan - 2012-07-05 03:29

Cheers! That worked very well; Thank You!

This leads to two other questions related and one somewhat related:

1) If more than one IP is specified in ${syslog} will iPXE pick only the first one?

2) Assuming iPXE can use more than one IP in the definition, is there a way to parse through the string (comma, space/null delimited)?

3) On the Page:

http://www.ipxe.org/cmd/show

It shows DHCP Option 42 (NTP Servers) to be an embedded variable. I get this when I attempt to read it:

Code:
iPXE> show 42:ipv4
Could not find "42:ipv4": No such file or directory (http://ipxe.org/2d0c203b)
iPXE>

What gives?


TIA,

M^3