The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iPXE with SCCM Chaining
2012-08-07, 14:47
Post: #1
iPXE with SCCM Chaining
Changing the DHCP scope settings, booting iPXE and loading a script from a HTTP server all are no problem.. But now chaining SCCM..

Script used in php:
<?php
header ( "Content-type: text/plain" );
echo "#!gpxe\n\n";
echo "isset \${ip} || dhcp || echo DHCP failed\n";
echo "prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE command line... && shell ||\n";
echo "imgfree\n";
echo "set next-server 172.20.52.1\n";
echo "echo Asset: \${asset} Serial: \${serial}.\n";
echo "cpuid --ext 29 && set arch x64 || set arch x86\n";
echo "chain boot\\\${arch}\wdsnbp.com\n";
echo "boot\n";
echo "exit\n";
?>

Just as simple as possible for the moment..
Where it failed is the chain loading. It gives a file not found.
When pressing Ctrl-B and give above command's by hand there is no problem. The F12 prompt from SCCM is shown with all other useless info sccm always gives at the prompt. But from the script it is a problem.
Except when you embed it, then it runs fine as well, but then the webserver don't get the request with the additional strings and the whole point of using ipxe is gone.

What can be the problem?
Why load iPXE in between? I use the script url to pass some variables to a inventory database. Yes this isn't shown in above php script yet but let it work first Smile And at the last point if all works fine add a option to boot a simple freedos image for bios maintanance.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
iPXE with SCCM Chaining - bshogeman - 2012-08-07 14:47



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