OCS Inventory: Setting up Automatic Network Inventory
Introduction
Open Computer and Software Inventory Next Generation is an application designed to help system or network administrators keep track of the network machines’ configuration and the software installed on them.
OCS Inventory is also able to detect any active device on the network, such as switches, routers, printers, and other unexpected hardware. For each one, it stores MAC and IP addresses and allows you to classify them.
If the administration server runs on Linux, and if nmap and smblookup are available, you also have the option to scan an IP or a subnet for detailed information about uninventoried hosts.
Last but not least, OCS Inventory NG integrates package deployment features on client machines. From the administration console, you can upload packages (software installations, commands, or just files to store on client computers) that will be downloaded via HTTP/HTTPS and executed by agents on clients.
Here’s a setup document:
OCS Inventory Setup
Client Installation
Debian
For Debian, here’s what you need to do to make it work. Extract the archive:
tar -xzvf OCSNG_LINUX_AGENT_1.01_with_require.tar.gz
Then install the perl modules via cpan:
cpan
install XML::Simple
install Compress::Zlib
install Net::IP
install LWP
quit
Then the others via apt:
apt-get install libmd5-perl libnet-ssleay-perl
sh setup.sh
Windows
For your domain, here is a small script that can be executed at user logon:
@echo off
"\\mon_serveur_de_domaine\netlogon\192.168.0.16.exe" /DEBUG /NP /INSTALL
c:
cd "%ProgramFiles%\OCS Inventory Agent"
OCSInventory /SERVER:192.168.0.16 /TAG:"%username%"
Here 192.168.0.16 corresponds to my OCS server.
Resources
Last updated 30 Dec 2008, 10:08 +0200.