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=1
at the bottom, to enable the serial console. git clone https://github.com/fruit-testbed/raspberrypi_inventory
into the boot partition- Create a file
raspberrypi_inventory/server.txt
containing 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.sh
before theexit 0
at the end. - Start the server on your host:
python3 -m http.server 5998 --cgi
Collects:
/proc/cpuinfo
- serial and hardware variantfree
output - memory infoifconfig
output - ethernet stuff incl MACiwconfig
output - 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.