Last active
December 15, 2015 02:02
-
-
Save robinsmidsrod/f8c845c5894876a8517f to your computer and use it in GitHub Desktop.
iPXE script which makes an inventory of all PCI devices and ship it off using HTTP POST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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