Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DHCP Option 7 and Syslog.
2012-07-02, 19:32
Post: #1
DHCP Option 7 and Syslog.
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

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2012-07-03, 00:24
Post: #2
RE: DHCP Option 7 and Syslog.
(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
Visit this user's website Find all posts by this user
Quote this message in a reply
2012-07-05, 03:29 (This post was last modified: 2012-07-05 03:30 by MultimediaMan.)
Post: #3
RE: DHCP Option 7 and Syslog.
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

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)