• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. CWDS
    3. Topics
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Groups 0

    Topics

    • C

      Speeding up iPXE kickoff?

      Watching Ignoring Scheduled Pinned Locked Moved General
      2
      0 Votes
      2 Posts
      404 Views
      S

      @CWDS Not sure why it would go through the interfaces twice.

      Anyhow, if you want to change the behavior for iPXE you want to look into building your own iPXE binaries and play with the ipxe script: https://github.com/FOGProject/fogproject/blob/master/src/ipxe/src-efi/ipxescript

      For iPXE building you wanna read here: https://wiki.fogproject.org/wiki/index.php?title=IPXE#Compile

    • C

      How to create a FOG Event?

      Watching Ignoring Scheduled Pinned Locked Moved General events hooks 1.5.5
      12
      0 Votes
      12 Posts
      1k Views
      C

      Update

      Still unable to get the MACs from Host(), but I think I’m getting closer. I just dont know what I’m supposed to do with the output of a ->get() call.

      public function onEvent($event, $data) { $hostData["name"] = $data['HostName']; $iData = var_export($hostData,true); $hostObj = new Host($hostData); $hData = var_export($hostObj,true); $primaryMac = $hostObj->get('primac')->get('mac'); $macList = array(); foreach ((array)$hostObj->get('additionalMACs') as $ind => &$MAC) { $macList[] = $MAC; } $oData1 = var_export($primaryMac,true); $oData2 = var_export($macList,true); file_put_contents("/var/www/fog/ds_fw.log",$iData . "\n" . $hData . "\n" . $oData1 . "\n" . $oData2); } }

      $primaryMac results in NULL, and $macList results in an empty array. I picked/adjusted the $macList loop from one of the pages code, so that ‘should’ theoretically work, as long as the get()'s actually return data.

    • 1 / 1