Automatic server audit for RackTables project

02 Nov 2012 [ Blog  Linux  Python  ]

First I’d like to introduce one very nice project called RackTables. It’s management system for DataCenters or rack rooms. I test many project like this but this one fits best for our needs. With this system you can document your network and infrastructure. Datacenters, rooms, rack rows, servers and their attributes, ipv4/ipv6 ranges, virtual resources, etc.

I work as System Specialist, many times it’s too much work and I forgot to document some changes which I made on server or infrastructure. When number of servers grows to hundreds this is a really big problem you must handle. Important is also to know, what was the change, not only actual state. So you must create log of changes.

I have created one small script which discover physical or virtual server and insert or update information into racktables database and ! it create LOG in RackTables. You see what was the previous state and when this change was made.

Script can handle various system and HW infromation and what is perfect, it do it automatically without any interaction.

I show you some examples what this system can do for you.

Create new object based on hostname and Service-TAG

This is one of core features. When you run this application on server, it first check hostname and Service-TAG (ST) and compare with database. If this combination not exist, it create new server object.

It recognize physical and virtual servers, virtual servers have automatically generated ST as “VPS-hostname”. It also recognize if server is hypervisor or not and build your virtual resources in database.

On the next picture you should see information collected from server like

All of these information ware collected automaticly.

On the next example is server which was recognized as XEN Hypervisor, it detects virtual servers and linked them with virtual objects.

Virtual resources overview

Warranty and support expiration report

Changes are written into log to specific object

Finally look on detail of core switch and it’s details

Application was released under GPLv2 license.


System supports transport of racktables comments to server message of the day file.

When connect to server some useful comment is there for you. It’s possible edit this comment directly from server by using utility.