ocsinventoryng

OCS Inventory NG

scripts/ocsinventoryng.bat

:: OPTIONAL: Install OCS Inventory-NG

:: OCS Inventory-NG
:: URL|ALL|www.dwadson.com/files/unattended/ocsng/OcsAgentSetup.exe?download|packages/ocsng/OcsAgentSetup.exe
@Echo off

todo.pl "%Z%\packages\ocsinventoryng\OcsAgentSetup.exe /S"

OCS Inventory NG Plugin

Using this plug-in, GLPI can import computer data from your OCS Inventory NG server.

cd /extra/src
wget http://glpi-project.org/IMG/gz/glpi-mass_ocs_import-1.1.tar.gz
tar zxvf glpi-mass_ocs_import-1.1.tar.gz

Move the uncompressed folder into the GLPI plugins folder:

mv mass_ocs_import /usr/local/apache2/htdocs/glpi/plugins/

Log off from GLPI and log back in. Go to Setup -> Plugins. Select OCS Massive import

- more configuration to go here -
- probably need screenshots -

Technology:

Package Deployment

http://alufis35.uv.es/OCS-Inventory-Package-deployment.html

Install the Apache SSL components:

yum -y install mod_ssl

A server.crt file is automatically created for your server in /etc/httpd/conf/ssl.crt/server.crt. That file needs to be copied to C:\Program Files\OCS Inventory Agent\cacert.pem. A login script that will do that is:

@echo off
REM Check if CA file exists
if exist "C:\Program Files\OCS Inventory Agent\cacert.pem" goto CA_END
REM CA file does not exist, install it

Windows Agent

The Windows agent can be downloaded from here.

Once downloaded, unzip the archive. Then run the OcsAgentSetup program. The installer allows you to specify your server options and then installs the agent as a Windows service.

I noticed that the agent doesn't necessarily contact the server right away - it seems to wait until the machine's scheduled update time, which could be hours from when you install it. Force the agent to contact the server right away with:


OS X Agent

The OS X client is availabel from Codejanitor

The packaged installer can be downloaded here, however it has the server IP hardcoded into it. You'll have to edit /etc/ocsinventory-client/ocsinv.conf with your server address.

Technology:

Linux Agent

Download the latest agent from the OSC Inventory NG website:

mkdir -p /extra/src
cd /extra/src
wget http://superb-west.dl.sourceforge.net/sourceforge/ocsinventory/OCSNG_LINUX_AGENT_1.01_with_require.tar.gz
tar zxvf OCSNG_LINUX_AGENT_1.01_with_require.tar.gz
cd OCSNG_LINUX_AGENT_1.01

The agent requires a variety of Perl modules. On a RedHat/Fedora distro, you might be able to install them with:

yum install perl-XML-Simple
yum install perl-Compress-Zlib
yum install perl-Net-IP
yum install perl-LWP
yum install perl-Digest-MD5
yum install perl-Net-SSLeay

Client Agents

OCS Inventory NG has client agents for variety of operating systems including Microsoft Windows, Linux, *BSD, Sun Solaris, IBM AIX, HP-UX and MacOS X.

The MacOS X client doesn't support package deployment like the Windows and Linux clients do, but that's ok - Apple Remote Desktop can do that.

Technology:

Configuration

Open your favorite web browser and point it on URL “http://administration_console/ocsreports” to connect the Administration server. Unless you screwed something up, you should be able to connect to it.

On this machine, with MySQL installed with yum and nothing modified, the login information was:

MySql login: root
MySql password: <blank>
MySql HostName: localhost

Technology:

Management Server

Ensure MySQL InnoDB engine is activated on your database server. Open /etc/my.cnf and ensure there is no ligne “skip-innodb” or this line is commented (begins with ‘#’)

Download the source tarball:

mkdir -p /extra/src
cd /extra/src
wget http://launchpad.net/ocsinventory-server/stable-1.3/1.3.3/+download/OCSNG_UNIX_SERVER-1.3.3.tar.gz
tar zxvf OCSNG_UNIX_SERVER-1.3.3.tar.gz
cd OCSNG_UINUX_SERVER-1.3.3

Run the setup program:

./setup.sh

Technology:

Communication Server

Not necessary with CentOS 5.x

CentOS Installation
For the server, I used Centos 4.4 as it has a single server-only install CD. For simplicity, I used the "minimal" package configuration option. After CentOS has installed and you've rebooted the machine, update what's there:

yum -y update

Then start installing the software we'll need for OCS Inventory-NG:

yum install mysql-server
yum install httpd
yum install mod_perl

CentOS Repository at CentOS.Karan.org

Technology:

Pages

Subscribe to RSS - ocsinventoryng

Recent Updates

  • 8 months 3 weeks ago
    1.27.2 update
  • 9 months 4 days ago
    Drupal 10/11 config
  • 9 months 5 days ago
  • PHP
    9 months 5 days ago
    PHP 8.3.11 and AlmaLinux
  • 9 months 6 days ago
    New version of Pound