OCSInventory: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
Created page with "OCS inventory is a system that polls information about servers and PCs through an agent. = Installing the server / reporting = apt-get install ocsinventory-reports ocsinvent..."
 
No edit summary
Line 22: Line 22:


Give it a relevant tag.
Give it a relevant tag.
= Polling ESXi hosts =
you need fusioninventory-agent-task-esx package.
Before running the script,
<pre>
cd /usr/share/fusioninventory/lib
</pre>
Or it will give you a perl error
then:
<pre>
fusioninventory-esx --host hostname --user root --password foo --directory /tmp
</pre>
Creates the .ocs file in /tmp/
You then need to inject it into OCSInventory, which can also be done from the server:
<pre>
fusioninventory-injector -v -f /tmp/*.ocs --url http://user:pw@monitor.tripnet.int:80/ocsinventory
</pre>
This may not work if you're polling a later version of ESXi though, because it only supports up to 5.0
http://www.fusioninventory.org/documentation/references/agent-task-esx/2.x/fusioninventory-esx/

Revision as of 11:45, 11 June 2013

OCS inventory is a system that polls information about servers and PCs through an agent.

Installing the server / reporting

apt-get install ocsinventory-reports ocsinventory-server

then go to http://monitor.tripnet.int/ocsreports

finish the questions and it's up and running. It will have no info in it.

Installing the agents

apt-get install ocsinventory-agent

during this proces it will ask for local / http (http if connected) and the server name (monitor.tripnet.int / 192.168.0.10 if it doesn't resolve that). You can change that in /etc/ocsinventory/ocsinventory-agent.cfg

next run

/etc/cron.daily/ocsinventory-agent

and after it's done, you should see it in the reporting server.

Give it a relevant tag.

Polling ESXi hosts

you need fusioninventory-agent-task-esx package.

Before running the script,

cd /usr/share/fusioninventory/lib

Or it will give you a perl error then:

fusioninventory-esx --host hostname --user root --password foo --directory /tmp

Creates the .ocs file in /tmp/

You then need to inject it into OCSInventory, which can also be done from the server:

fusioninventory-injector -v -f /tmp/*.ocs --url http://user:pw@monitor.tripnet.int:80/ocsinventory

This may not work if you're polling a later version of ESXi though, because it only supports up to 5.0 http://www.fusioninventory.org/documentation/references/agent-task-esx/2.x/fusioninventory-esx/