Inventory Application

From OneCMDB

Contents

Overview

The Inventory Example Application is a snall application built on top of the OneCMDB Core.

Access the online demo here: | Inventory Example Application

The Example Application currently has the following features:

  1. List all servers registered in the CMDB with selected related information
  2. Drill down and view details server by server
  3. Add a new server to the CMDB
  4. Remove an existing server from the CMDB

The User Interface

The Inventory Example Application displays a page with the following information and functions:
Image:Inventory_howto.gif

Description

The Inventory Example Application interfaces OneCMDB, which in this case has a CMDB data model that uses several Configuration Items (CI) per server to store various server related information (IP address, network interface, hostname, operating system, etc.).

Such a model is more complicated to extract information from, as compared to a model with a single CI per server. The benefit however is increased flexibility and the possiblity to describe more complex environments.

Hence, to produce the abobe table the Inventory Example Application must aggregate server-related information from several Configuration Items in the CMDB (i.e. the CI:s Server, NIC, NetworkInterface, IP, DNSEntry, Hostname and OperatingSystem).

The following illustration shows how these CI:s relate to each other.

 The CIs containing server-related information and how they map into the inventory table

The information presented in the server inventory table is fetched from the above CMDB model in the following way:

  1. Server name: The Display Name in each respective Server CI
  2. Vendor: The value of the Vendor Attribute in each respective Server CI
  3. OS: The Display Name of the Operating System CI that refers to each respective server
  4. IP: The Display Name of the IP CI that refers to each respective server (via the CI:s Network Interface and NIC). Note that there may be several IP addresses associated with one server...
  5. Hostname: The Display Name of the Hostname CI that refers to each respective server (via the CI:s DNSEntry, IP, NetworkInterface and NIC. Again, note that several hostnames may exist for a specific server.


Implementation

Source Code

The Inventory Example Application is written in Java using Spring Web framework and JSPs.
The source code will be made available with comments that will explain how the application is built.
Come back soon for more information.

Community and support