logo A novel Tux graphic by Jenny Cox Presentations

Towards a small, efficient Linux hardware inventory system


lsvpd is a serviceability tool written for Linux running on IBM pSeries systems, although it runs on other architectures as well under Linux 2.6. Developed as a look-alike for the AIX tool of the same name, lsvpd includes a hardware inventory database, scanning components that populate the database and a variety of query tools. The focus is on listing Vital Product Data for components as part of hardware service calls - in such cases knowledge of model numbers, engineering versions of circuit boards and microcode versions can be critical in dertermining the the correct fix for a problem. Use of a database, rather than querying hardware directly is an important requirement, since it may not be possible to get required information from a faulty component.

Certain problems with the current version of lsvpd can't be reliably fixed without proper hotplug support. The current version of lsvpd for Linux is a combination of bash scripts and "helper programs" written in C so, due to the large number of processes that are spawned, is unlikely to cope well with a large number of hotplug events in a short amount of time. A decision has been made to "migrate" the current implementation to C - the plan is to make the helper programs incrementally larger so they eventually replace the entire bash implementation. One feature of the current bash implementation is run-time loadable modules that can provide additional functionality depending on available system features, such as sysfs. Implementing this as elegantly in C will be interesting.

The paper/talk will discuss the above in a number of contexts, including:

Martin Schwenke

Martin Schwenke is an Open Source Hacker with the IBM OzLabs Linux Technology Center where, among other things, he works on Linux hardware inventory software. He has experience in Linux technical support, education and system administration. Martin has spoken at recent AUUG, and other conferences. In a "past life" he lectured university courses ranging from database fundamentals to operating systems internals, and has also done research on formal software design methods and functional programming. In his spare time Martin plays music and social sports, hacks on Open Source software and spends time with his family. More information is available at


Papers and Slides
BOF meetings
Lightning talks
LPI Exams
Call for Papers
For partners Venue
Planet LCA 2005

IBM Logo
HP Logo

SUN Logo

2004 Adelaide
2003 Perth
2002 Brisbane
2001 Sydney
1999 Melbourne