Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iPXE script which makes an inventory of all PCI devices and ship it off using HTTP POST
#!ipxe
params
:pciscan pciscan addr || goto pciscan_done
param pci-dev-${addr:busdevfn} ${pci/${addr}.0.2}:${pci/${addr}.2.2}
goto pciscan
:pciscan_done
chain http://server.domain.lan/inventory.php##params
#!ipxe
params
set i:int32 0
:pciscan pciscan addr || goto pciscan_done
param pci-dev-${i} ${pci/${addr}.0.2}:${pci/${addr}.2.2}
inc i
goto pciscan
:pciscan_done
chain http://server.domain.lan/inventory.php##params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.