Site Map - skip to main content - dyslexic font - mobile - text - print

Hobby Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


Please support our Patrons

Our hosting is kindly provided by Josh from AnHonestHost.com. We would appreciate it if you could donate to help reduce his costs in funding the hosting. He is also accepting bitcoins to 1KsxJr9HtsdaUeU7yaV9bk9bQi21UPBtUq
Please also consider supporting the https://archive.org/donate/ who are now hosting our media files. Right now, a generous supporter will match your contributions 3-to-1. So your $5 donation results in $20 for the Internet Archive.

hpr2496 :: Making a Raspberry Pi inventory

How to collect identifying information about RPi devices

<< First, < Previous, Latest >>

Host Image
Hosted by Dave Morriss on 2018-02-26 is flagged as Explicit and is released under a CC-BY-SA license.
Tags: Raspberry Pi, RPi.
Listen in ogg, spx, or mp3 format. | Comments (2)

Part of the series: Bash Scripting

This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.

Making a Raspberry Pi inventory

Introduction

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.

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.

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!

Long notes

The full-length notes (available here) contain a listing of the script, a brief description of it, and some example output.


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2018-02-26T16:19:42Z by b-yeezi

Directly into my toolbox

Thanks Dave. I have a half dozen Pi's myself. This script will go directly into my script toolbox. Your mind is a treasure trove. Please keep digging!

Comment #2 posted on 2018-02-27T14:13:33Z by Dave Morriss

Thanks b-yeezi

I hope you find the script useful. Suggestions for improvements and enhancements are welcome!

<< First, < Previous, Latest >>

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the P in HPR stand for ?
Are you a spammer →
Who hosted this show →
What does HPR mean to you ?