<h1 id="making-a-raspberry-pi-inventory">Making a Raspberry Pi inventory</h1>
<h2 id="introduction">Introduction</h2>
<p>I have a number of Raspberry Pis -- possibly too many -- and I sometimes lose track of which is which, what model, size, name, address each one is. I wanted to be able to keep an inventory of them all, and to this end I wrote myself a little script that can be run on any Pi which will report useful information about it.</p>
<p>Every Pi has a unique serial number. Actually it's randomly generated so there may be a few collisions but it's close to unique! It also contains a revision number which encodes various items of information about it such as release date, model, PCB revision and memory. My script decodes this revision number for you based on a published table.</p>
<p>I run a Wikimedia instance on a Pi and have used this script to record details of my Pis there as well as what they are being used for and any planned projects. I now feel more organised!</p>
<h2 id="long-notes">Long notes</h2>
<p>The full-length notes (available <a href="https://hackerpublicradio.org/eps/hpr2496/full_shownotes.html">here</a>) contain a listing of the script, a brief description of it, and some example output.</p>
<h2 id="links">Links</h2>
<ul>
<li>GitLab repository: <a href="https://gitlab.com/davmo/what_pi" class="uri">https://gitlab.com/davmo/what_pi</a></li>
<li>Resources to download:
<ul>
<li>The script <em><a href="https://hackerpublicradio.org/eps/hpr2496/what_pi">what_pi</a></em></li>
<li>Example output <em><a href="https://hackerpublicradio.org/eps/hpr2496/example_output.txt">example_output.txt</a></em></li>
</ul></li>
</ul>