Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE PHP LOOPs not working
2014-07-04, 14:37 (This post was last modified: 2014-07-04 15:18 by jhonny.)
Post: #5
RE: iPXE PHP LOOPs not working
Yes, the script was supposed to pause for 10 seconds and then check the database again to see if JOB = anything other than 00.

What this would do is put the server in a "wait" position where i could then use a WEB front end to update the JOB parameter for that server and it would execute a particular task.

How would I go about making iPXE sleep and try again ?
Are you able to give me an example of some code Michael ?
I would really really appreciate it.
Ok i got it.

So basically i broke the script up into 2 php files.

The 2nd php file now loops through itself by chain loading itself if job is 00
If job is anything other than 00 it performs the necessary actions.

Thanks for pointing me in the right direction Michael. Really appreciate it.

So now the problem i have is ...

When the file loops through itself for the 14th time it crashes.
This is consistent on both physical and virtual servers. Always on the 14th retry:

The error i get is:

Launching JOBS ..
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)
Could not boot: Error 0x00000001 (http://ipxe.org/00000001)

and then the server restarts
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPXE PHP LOOPs not working - jhonny - 2014-07-04, 13:30
RE: iPXE PHP LOOPs not working - jhonny - 2014-07-04 14:37



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