Xen Server 5 Inventory with OCS

How to : Perform an XEN Server 5 Inventory with OCS-Inventory

What you need :

  • Internet access on the Xen Server
  • OCS-Inventory Linux client (OCSNG_LINUX_AGENT_1.01.tar.gz)
  • Shell Access to XEN Server (can also be via ssh or XenCenter)
  • a running OCS-Inventory Server (of course)

If you don’t know what OCS is, it is simply a very powerful OpenSource Computer Inventory and Package Deployement tool. (check it out www.ocsinventory-ng.org for more info)

As the XEN Server 5 is based on a CentOS Linux System, only few steps
are required to compile and use the OCS Linux Client :

  1. Enable CentOS Rositories

Edit /etc/yum.repos.d/CentOS-Base (i.e.with nano or vi)
Change every “enabled=0” to “enabled=1”
Save the file

  1. Prepare System for compilation

Compiling and runnung the OCS Linux client requires following packages :


Install packages via
yum install <<package1>> <<package2>> etc…

  1. Compile OCS Linux client

untar the package
tar -xvf OCSNG_LINUX_AGENT_1.01.tar.gz
change into the newly extracted directory :
launch the setup process :

Answer all the questions, i.e. Address and port of OCS Inventory Server
For the rest, use default answers (mostly yes).
Compiling should not take that long.
Wait until it is finished, if you see error messages, you can view ocs_agent_setup_log for details.

  1. Performing an Inventory

Simply launch ocsinventory-client.pl
Wait a few seconds, then login onto your OCS Inventory Server to verify that it worked.

Permanent link to this article: https://www.hiscorebob.lu/workshops/xen-server-5-inventory-with-ocs/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: