For automated inventorying of many Raspberry Pi boards.
- Get a recent Raspbian image.
- Put it on your SD card.
- Mount the boot partition of the SD card on your PC.
- Edit
config.txt, addingenable_uart=1at the bottom, to enable the serial console. git clone https://github.com/fruit-testbed/raspberrypi_inventoryinto the boot partition- Create a file
raspberrypi_inventory/server.txtcontaining the URL of your server. For example,http://YOUR.SERVER.NAME:5998. - Mount the root partition of the SD card on your PC.
- Edit
etc/rc.local, adding a line/boot/raspberrypi_inventory/bootscript.shbefore theexit 0at the end. - Start the server on your host:
python3 -m http.server 5998 --cgi
Collects:
/proc/cpuinfo- serial and hardware variantfreeoutput - memory infoifconfigoutput - ethernet stuff incl MACiwconfigoutput - wireless stuff
Could perhaps collect:
- bluetooth info??
DNS is super slow by default in some environments -
This page
recommends adding a line options single-request-reopen to
/etc/resolv.conf. Our bootscript.sh does this.