OCS Inventory NG Installation And Administration Guide 1.4 Version 14
User Manual:
Open the PDF directly: View PDF
.
Page Count: 87
Installation and Administration Guide
Version 1.4
To use with OCS Inventory NG Release Candidate 2 or higher
OpenSource, Web enabled Inventory System
http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 2 / 87
Table of Contents
1
2
3
4
5
6
7
8
Introduction. ___________________________________________________________ 5
Important notes _________________________________________________________ 6
Setting up management server. _____________________________________________ 7
3.1
Under Linux Operating System. ________________________________________ 8
3.1.1
Requirements. __________________________________________________ 8
3.1.2
Installing Web administration server. ________________________________ 8
3.1.3
Installing Web communication server. _______________________________ 9
3.1.4
Configuring management server. __________________________________ 13
3.1.5
Upgrading management server.____________________________________ 16
3.2
Under Windows Operating System. ____________________________________ 18
3.2.1
Installing management server._____________________________________ 18
3.2.2
Configuring management server. __________________________________ 24
3.2.3
Updating security of XAMPP components. __________________________ 27
3.2.4
Upgrading management server.____________________________________ 34
Setting up agent on client computers. _______________________________________ 36
4.1
Under Windows Operating Systems. ___________________________________ 36
4.1.1
Deploying the agent through login script. ____________________________ 36
4.1.2
Installing the agent manually on a non network connected computer. ______ 38
4.1.3
Agent’s command line switches ___________________________________ 40
4.2
Under Linux Operating Systems. ______________________________________ 41
4.2.1
Installing the agent on a network connected computer. _________________ 43
4.2.2
Installing the agent on a non network connected computer. ______________ 45
4.2.3
Agent’s command line switches ___________________________________ 47
Administration of OCS Inventory NG. ______________________________________ 48
5.1
Managing OCS Inventory NG Administration server users. _________________ 48
5.2
Managing OCS Inventory NG general options. ___________________________ 49
5.3
Using Registry Query feature._________________________________________ 50
5.4
Managing duplicates computers._______________________________________ 52
5.5
Editing administrative information. ____________________________________ 54
5.6
Editing the label ___________________________________________________ 56
5.7
Deploying automatically a new release of agent. __________________________ 57
5.8
Importing inventory for non network connected computers. _________________ 59
5.8.1
With Administration server through your web browser _________________ 59
5.8.2
With Communication server through a Perl script _____________________ 59
5.9
Using IP discovery feature. ___________________________________________ 60
5.9.1
Introduction. __________________________________________________ 60
5.9.2
How does it work ? _____________________________________________ 61
5.9.3
Working with results. ___________________________________________ 62
5.9.4
Enhancing IPDISCOVERY using ipdiscover-util perl script. ____________ 69
5.10 Using software dictionary. ___________________________________________ 73
Querying inventory results. _______________________________________________ 76
6.1
All computers. _____________________________________________________ 76
6.2
TAG / number of PC repartition. ______________________________________ 77
6.3
Search with various criteria. __________________________________________ 78
Management server tuning. _______________________________________________ 81
Common errors ________________________________________________________ 82
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 3 / 87
8.1
MySQL errors. ____________________________________________________ 82
8.1.1
Max_allowed_packet error _______________________________________ 82
8.1.2
Client does not support authentication protocol._______________________ 83
8.2
PHP errors ________________________________________________________ 84
8.2.1
Requested content-length ________________________________________ 84
8.2.2
ZIP support ___________________________________________________ 85
8.3
Apache web server _________________________________________________ 87
8.3.1
Files and directories permissions under Linux.________________________ 87
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 4 / 87
History and changes
Version
1.0
1.1
Date
2005-06-22
2005-08-18
Author
Didier LIROULET
Didier LIROULET
1.2
2005-09-05
Didier LIROULET
1.3
2005-12-03
Didier LIROULET
1.4
2006-02-16
Didier LIROULET
Comments
Creation
Updates for management server
installation on Linux considering the
version of mod_perl and for
management server installation on
Windows, ipdiscover feature.
Updates for IP Discover utility, and
agent including monitor serial number
detection, force not using proxy or
force using HTTP port other than 80.
Added chapter for common errors.
Updates for NG 1.0 RC 1. Deployment
of Windows Agent 4010 requires use of
OcsLogon. Linux agent v8 requires
PERL module Net::IP and update of
ipdiscover module. Subnets are now
managed in database (not in file
subnet.csv). Upgrade of Windows
Server requires reinstall.
Updates for NG 1.0 RC2. Add of
software dictionary. LSB compliance in
Linux agent. Upgrade fix in OCS NG
Server for Windows installation.
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 5 / 87
1 Introduction.
Open Computer and Software Inventory Next Generation is an application designed to
help a network or system administrator keep track of the computer configuration and software
installed on the network.
Dialog between client computers and management server is based on actual standards, HTTP
protocol and XML data formatting.
Management server runs on Apache/MySQL/PHP/PERL server, under Linux or Windows NT
based computers.
Inventoried client computers can run Microsoft Windows 95/98/Me/NT4/2000/XP/2003 or
Linux operating systems.
OCS Inventory is GPL software, i.e. free to use & copy (see the GPL or
http://www.opensource.org). OCS Inventory is also Open Source! This means if you want to
modify the sources you can! But if you want update the source code to distribute it, you must
provide your updates under GPL license terms.
OCS Inventory supports the following languages:
Brazilian Portuguese
English
French
German
Italian
Portuguese
Spanish
Used with park management software such as GLPI (http://glpi.indepnet.org/), you will have
a powerful inventory and park management software with automatic updates of computer
configuration, license management, help desk and more.
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 6 / 87
2 Important notes
OCS Inventory NG 1.0 RC2 includes most of requested features, and a lot of bug fixes (See
“changelog” or “readme” of each packages).
But also, take care about the following points.
OCS Inventory NG Server for Linux.
•
•
•
All previous packages for Communication Server, Administration Server and
IPDISCOVER-UTIL perl script are included in OCSNG_LINUX_SERVER package,
since 1.0 RC1.
Administration Server now requires ZIP support for PHP to be enabled.
IPDISCOVER-UTIL perl script uses Net::IP perl module, instead of Inline.pm
module, since 1.0 RC1.
OCS Inventory NG Server for Windows.
•
•
Based on XAMPP 1.5.0 pl1, since 1.0 RC1, instead of 1.4.14.
Upgrade from previous version is now easy, read § 3.2.4 Upgrading management
server.
OCS Inventory NG Agent for Windows, internal version 4014.
•
Deployment can be done using launcher OcsLogon.exe, manually or using automatic
upgrade feature. You cannot use automatic deployment feature if you’re upgrading
from any beta release (version 4.0.1.0 or previous).
OCS Inventory NG Agent for Linux, internal version 11.
•
•
•
•
•
Requires Net::IP perl module since 1.0 RC1. Use automatic deployment feature
carefully. If Net::IP is not setup on client computer, agent will not work !
Includes new release of “ipdiscover” binary file. See § 4.2.
Agent perl script has been renamed “ocsinventory-client.pl”. File name does not more
include version.
Cron script is no more in “/etc/cron.daily” directory, but in “/etc/cron.d” directory.
This allows customizing launch hour to distribute connections to Communication
server during the entire day.
To be compliant with LSB 2.0, binaries of agent are no more in “/etc/ocsinventoryclient” directory. Perl script “ocsinventory-client.pl” and “ipdiscover” binary are now
setup in “/usr/sbin” directory. If “dmidecode” is not setup on computer, installer put it
in “/usr/sbin” directory.
So, this agent cannot be deployed through automatic upgrade feature. It can only be
deployed manually using the installer.
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 7 / 87
3 Setting up management server.
Management server contains 3 mains components:
1. Database server, which store inventory information
2. Communication server, which will handle HTTP communications between database
server and agents.
3. Administration server, which will allow administrators to query the database server
through their favorite browser.
These 3 components can be hosted on a single computer or on different computers to allow
load balancing. For more than 5000 inventoried computers, it’s better to use at least 2
different servers, one for the database server and the other for the Communication server and
Administration server.
Unix inventory
agent
Unix inventory
agent
Management Server
Communication
server
Windows inventory
agent
Windows inventory
agent
Windows inventory
agent
Database
server
Administration
server
Administrator with
Web browser
Figure 1 : OCS Inventory NG communication architecture.
NB: If you want to use multiple computers to host OCS inventory NG management server, we
recommend that you setup it on Linux computers. OCS Inventory NG server for Windows
comes as an integrated package containing all required components (apache, perl, php,
mod_perl, mysql…).
Database server actually can only be MySQL 4.1 or higher, but we plan to support
PostgreSQL.
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 8 / 87
Communication server needs Apache Web Server 1.3.X/2.X and is written in PERL as an
Apache module. Why? Because PERL script is compiled when Apache starts, and not at each
request. This is better for performance issue. Communication server may require some
additional PERL module, depending your distribution.
Administration server is written in PHP 4 (or higher) and runs under Apache Web Server
1.3.X/2.X (but may run under other web servers). Administration requires ZIP capabilities
enabled in PHP in order to use automatic deployment updates.
3.1 Under Linux Operating System.
We assume that you have:
MySQL database server running somewhere and listening on default port 3306 with
TCP/IP communication enabled.
Apache Web server installed and running for Communication server and
Administration server.
PHP and Perl installed and usable by Apache Web server for the Administration
server.
Perl and mod_perl installed and usable by Apache Web server for the Communication
server.
3.1.1 Requirements.
Apache version 1.3.33 or higher / Apache version 2.0.46 or higher
Mod_perl version 1.29 or higher
Mod_php version 4.3.2 or higher
PHP 4.3.2 or higher, with ZIP support enabled.
PERL 5.6 or higher
Perl module XML::Simple version 2.13-1 or higher
Perl module Compress::Zlib version 1.34-1 or higher
Perl module DBI version 1.46-5 or higher
Perl module DBD::Mysql version 2.9003-3 or higher
Perl module Apache::DBI version 0.94-2 or higher
MySQL version 4.1.7 or higher
3.1.2 Installing Web administration server.
The Web administration server requires Apache web server and PHP 4 scripting language
(see § 3.1.1 Requirements.).
You must have root privileges to setup Administration server.
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 9 / 87
Download “OCS-NG_LINUX_SERVER_1.0-XX.tar.gz” from OCS Inventory Web Site
(where XX is the last release version, like 1.0-RC2).
Unpack it.
tar –xvzf OCSNG_LINUX_SERVER_1.0-XX.tar.gz
Move or copy extracted directory “OCSNG_LINUX_SERVER_1.0-XX/ocsreports” to the
web server document root directory, usually “/var/www/html”.
mv OCS-NG_LINUX_SERVER_1.0-XX/ocsreports /var/www/html
Ensure ownership and permissions on files are fine (see § 8.3.1 Files and directories
permissions under Linux.).
cd /var/www/html
chown –R root:root ocsreports
chmod gou+rx ocsreports
ocsreports/languages
ocsreports/css
ocsreports/files
ocsreports/image
Add write permissions for Apache server account to “ocsreports” folder to allow
configuration of administrative interface, use of IPDISCOVER utility, and importing new
release of agents. For this, we will change group ownership of directory “ocsreports” to
Apache server account, to let him write files (you can find group name of Apache server
account in Apache configuration file “httpd.conf”, usually located in directory
“/etc/httpd/conf”, by searching directive “Group”).
chown root:apache ocsreports
chmod gu+w ocsreports
3.1.3 Installing Web communication server.
The Web communication server requires Apache web server and Perl 5 scripting language
and some additional modules for Perl 5 (see § 3.1.1 Requirements.). It act as an Apache
module which handle HTTP requests of OCS Inventory agents to a virtual directory
“/ocsinventory”.
You must have root privileges to setup Administration server.
Download from http://search.cpan.org the following Perl modules:
XML-Simple-2.14.tar.gz
Compress-Zlib-1.34.tar.gz
DBI-1.48.tar.gz
DBD-mysql-2.9008.tar.gz
Apache-DBI-0.94.tar.gz
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 10 / 87
Install XML::Simple module.
tar –xvzf XML-Simple-2.14.tar.gz
cd XML-Simple-2.14
perl Makefile.PL
make
make test
make install
Install Compress::Zlib module.
tar –xvzf Compress-Zlib-1.34.tar.gz
cd Compress-Zlib-1.34
perl Makefile.PL
make
make test
make install
Install DBI module.
tar –xvzf DBI-1.48.tar.gz
cd DBI-1.48
perl Makefile.PL
make
make test
make install
Install BDB::mysql module.
tar –xvzf DBD-mysql-2.9008.tar.gz
cd DBD-mysql-2.9008
perl Makefile.PL
make
make test
make install
Install Apache::DBI module.
tar –xvzf Apache-DBI-0.94.tar.gz
cd Apache-DBI-0.94
perl Makefile.PL
make
make test
make install
If not already done, download “OCSNG_LINUX_SERVER_1.0-XX.tar.gz” from OCS
Inventory Web Site (where XX is the last release version, like 1.0-RC2).
Copyleft OCS Inventory Next Generation Team – http://ocsinventory.sourceforge.net
Installation and Administration Guide
Version 1.4
Page 11 / 87
Unpack it.
tar –xvzf OCSNG_LINUX_SERVER_1.0-XX.tar.gz
Ensure ownership and permissions on files are fine (see § 8.3.1 Files and directories
permissions under Linux.).
chown –R root:root OCSNG_LINUX_SERVER_1.0-XX/ocsinventory-NG
chmod gou+rx OCSNG_LINUX_SERVER_1.0-XX/ocsinventory-NG
Move or copy extracted directory “ocsinventory-NG” to a directory of your server. Usually
local applications are added into “/usr/local” directory.
mv OCSNG_LINUX_SERVER_1.0-XX/ocsinventory-NG /usr/local
Now, you have to configure communication server to work with your database server, and
some other minor configuration.
If you are using mod_perl version 1.999.22 or higher, you must replace existing perl
module “Ocsinventory.pm” of directory “ocsinventory-NG” by the one provided in directory
“OCS-NG_LINUX_SERVER_1.0XX/Ocsinventory.pm_4_mp_since_1.999_22”.
mv
OCSNG_LINUX_SERVER_1.0XX/Ocsinventory.pm_4_mp_since_1.999_22/Ocsinventory.pm
/usr/local/ocsinventory-NG
NB: You can check which version of mod_perl you’re using by querying the software
database of your server.
Under RPM enabled Linux distribution (RedHat/Fedora, Mandriva…), run “rpm –q
mod_perl”.
Under DPKG enabled Linux distribution (Debian, Unbuttu…), run “dpkg –l libapache*-modperl*”.
Go to the installation directory.
cd /usr/local/ocsinventory-NG
By default, communication server assumes that installation directory is
“/var/www/ocsinventory-NG”. You may have to change this setting in file
“Ocsinventory_startup.pl” and in Apache directive file.
vi Ocsinventory_startup.pl
Update line
Source Exif Data:
File Type : PDF
File Type Extension : pdf
MIME Type : application/pdf
PDF Version : 1.3
Linearized : No
Page Count : 87
Producer : AFPL Ghostscript 8.53
Create Date : 2006:02:17 14:15:03+01:00
Modify Date : 2006:02:17 14:15:03+01:00
Title : OCS Inventory NG - Installation and Administration Guide 1.4
Creator : PDFCreator Version 0.9.0
Author : Didier LIROULET
Keywords : OCS, Inventory, NG, -, Installation, and, Administration, Guide
Subject : OCS Inventory NG
EXIF Metadata provided by EXIF.tools