Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to detect available download protocols or build options inside an iPXE script?
2016-02-06, 12:48
Post: #2
RE: How to detect available download protocols or build options inside an iPXE script?
(2016-02-05 01:08)robzr Wrote:  Is it possible, within an iPXE script, to base a conditional statement (or variable value) on whether or not a download protocol is available in the iPXE instance that is running?
...
I know I could first try the HTTP and then fall back on the TFTP statement if it fails, but the output of this is messy.

Sorry; there's no way to do this in the scripting language. The DHCP server can test on the basis of the feature flags exposed via option 175 in the DHCPDISCOVER/DHCPREQUEST, but those same flags aren't visible to a script. As you guessed, testing options via e.g. ${175.19} won't work because it will be looking for that option in the server response rather than in the client request.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to detect available download protocols or build options inside an iPXE script? - mcb30 - 2016-02-06 12:48



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