Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
ocs_inventory [Le 14/02/2010, 17:36]
213.95.41.13
ocs_inventory [Le 11/09/2022, 11:37] (Version actuelle)
moths-art Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892)
Ligne 1: Ligne 1:
 +{{tag>​Xenial entreprise erp inventaire gestion_de_parc BROUILLON}}
 +
 +----
 ====== OCS Inventory ​ ====== ====== OCS Inventory ​ ======
  
Ligne 6: Ligne 9:
 Le dialogue entre les postes clients et le serveur de gestion est basé sur des standards actuels, les protocoles ​ HTTP/HTTPS et le format de donnée XML Le dialogue entre les postes clients et le serveur de gestion est basé sur des standards actuels, les protocoles ​ HTTP/HTTPS et le format de donnée XML
  
- Le client d'​inventaire fonctionne sous  Microsoft Windows 95/​98/​Me/​NT4/​2000/​XP/​2003/​Vista ​or Linux. Des contributions existent aussi pour    Sun Solaris, *BSD, IBM AIX 5.X, HP-UX et Mac OS X.+ Le client d'​inventaire fonctionne sous  Microsoft Windows 95/​98/​Me/​NT4/​2000/​XP/​2003/​Vista ​ou Linux. Des contributions existent aussi pour    Sun Solaris, *BSD, IBM AIX 5.X, HP-UX et Mac OS X.
  
-OCS Inventory est un logiciel sous licence ​**GPL**[[http://​www.opensource.org/​licenses/​gpl-license.php]],​ Libre à l'​utilisation et à la copie . **OCS Inventory** est aussi Open Source! Si vous   ​désirez ​modifiez ​les sources, vous pouvez! Cependant, si vous voulez mettre à jour le code source pour le distribuer, vous devez fournir vos mises à jour en vertu des conditions de licence ​ de GPL.+OCS Inventory est un logiciel sous licence **[[http://​www.opensource.org/​licenses/​gpl-license.php|GPL]]**, Libre à l'​utilisation et à la copie . **OCS Inventory** est aussi Open Source! Si vous   ​désirez ​modifier ​les sources, vous pouvez! Cependant, si vous voulez mettre à jour le code source pour le distribuer, vous devez fournir vos mises à jour en vertu des conditions de licence ​ de GPL.
  
-OCS Inventory supporte les langages suivants : +OCS Inventory supporte les langages suivants :
   * Portuguais   * Portuguais
   * Anglais   * Anglais
Ligne 22: Ligne 25:
   * Russe   * Russe
   * Turque   * Turque
-Utilisé avec le logiciel de gestion de parc tel que **GLPI**[[ http://​www.glpi-project.org]] , vous aurez un logiciel puissant de gestion d'​inventaire et d'​information de ressource avec les mises à +Utilisé avec le logiciel de gestion de parc tel que **[[http://​www.glpi-project.org|GLPI]]** , vous aurez un logiciel puissant de gestion d'​inventaire et d'​information de ressource avec les mises à
 jour automatiques de la configuration d'​ordinateur,​ de la gestion de licences, du HELPDESK, de la base de connaissance et plus. jour automatiques de la configuration d'​ordinateur,​ de la gestion de licences, du HELPDESK, de la base de connaissance et plus.
 +===== Installation du serveur =====
  
-====== ​Installation ​======+==== Pré-requis ​==== 
 +  * Avoir installé [[:​lamp]],​ 
 +  * Avoir [[:​tutoriel:​comment_installer_un_paquet|installé les paquets]] **[[apt>​libdbd-mysql-perl,​libnet-ip-perl,​libsoap-lite-perl,​libxml-libxml-perl,​perl libapache2-mod-perl2,​libxml-simple-perl,​libio-compress-perl,​libdbi-perl,​libapache-dbi-perl,​php7.0-mbstring]]** 
 +  * Pour l'​outil IPDISCOVER contenu dans l'​agent,​ [[:​tutoriel:​comment_installer_un_paquet|installez le paquet]] **[[apt>​libc6-dev]]** 
 +  
 +  
 +==== Installation ​====
  
 +Il suffit d'​installer le paquet [[apt>​ocsinventory-server|ocsinventory-server]] et le tour est joué!.
  
-Sous Intrepid il suffit de chercher les paquets dans synaptic et le tour est joué! 
  
  
- +====Configuration==== 
-===== Pré-requis ===== +Pour configurer ​Apache ​entrez les commandes suivantes dans un [[:terminal]] :
-  ​* ​Apache ​version 1.3.33 ou plus / Apache version 2.0.46 ou plus. +
-    * Mod_perl version 1.29 ou plus. +
-    * Mod_php version 4.3.2 ou plus. +
-  * PHP 4.3.2 ou plus, avec ZIP et support GD activé. +
-  * PERL 5.6 ou plus. +
-    * Perl module XML::Simple version 2.12 ou plus. +
-    * Perl module Compress::​Zlib version 1.33 ou plus. +
-    * Perl module DBI version 1.40 ou plus. +
-    * Perl module DBD::Mysql version 2.9004 ou plus. +
-    * Perl module Apache::DBI version 0.93 ou plus. +
-    * Perl module Net::IP version 1.21 ou plus. +
-    * Perl module SOAP::Lite version 0.66 ou plus (pas de proxy) +
-  * MySQL version 4.1.0 ou plus avec InnoDB engine active. +
-  * Make  +
- +
-===== Installation Make ===== +
-  sudo apt-get install make +
- +
-===== Installation Apache ===== +
-  sudo apt-get install apache2 apache2-doc+
   sudo su -c ' echo ServerName www.monsite.tld >> /​etc/​apache2/​apache2.conf'​   sudo su -c ' echo ServerName www.monsite.tld >> /​etc/​apache2/​apache2.conf'​
   sudo /​etc/​init.d/​apache2 reload   sudo /​etc/​init.d/​apache2 reload
  
 +Créez un mot de passe [[:mysql]].
  
- +Configurez PHP en entrant les commandes suivantes dans un [[:​terminal]] :​ 
-===== Installation mysql ===== +  sudo su -c ' echo "<?php" > /var/www/html/​info.php'​ 
-  sudo apt-get install mysql-server +  sudo su -c ' echo " ​ phpinfo()"​ >> /var/www/html/​info.php'​ 
-  sudo mysqladmin -u root password votre_pass +  sudo su -c ' echo "?>"​ >> /var/www/html/​info.php'​
-  sudo /​etc/​init.d/​mysql reload +
- +
- +
- +
- +
- +
- +
-===== Installation PHP5 ===== +
-  sudo aptitude install php5 libapache2-mod-php5 php5-mysql php5-gd +
-  sudo su -c ' echo "<?"​ > /​var/​www/​info.php'​ +
-  sudo su -c ' echo " ​ phpinfo()"​ >> /​var/​www/​info.php'​ +
-  sudo su -c ' echo "?>"​ >> /​var/​www/​info.php'​+
   sudo /​etc/​init.d/​apache2 reload   sudo /​etc/​init.d/​apache2 reload
  
 [[http://​localhost/​info.php|Si en cliquant sur ce lien une page de configuration PHP s'​affiche cette partie de l'​installation est bonne.]] [[http://​localhost/​info.php|Si en cliquant sur ce lien une page de configuration PHP s'​affiche cette partie de l'​installation est bonne.]]
  
 +Enfin, redémarrez Apache :
  
 +  sudo apache2ctl restart
  
 +Rendez vous ensuite à [[http://​localhost/​ocsreports/​index.php|http://​{{SERVEUR}}/​ocsreports/​index.php]] pour configurer le serveur OCS comme ci-dessous :
  
-===== Installation PERL ===== +{{ocs.png|}}
-  sudo aptitude install perl libapache2-mod-perl2 libxml-simple-perl libcompress-zlib-perl libdbi-perl libapache-dbi-perl  +
-  sudo aptitude install libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libnet-ip-perl libsoap-lite-perl +
- +
- +
-===== Installation divers ===== +
-Pour l'​outil IPDISCOVER contenu dans l'​agent,​ installer ce qui suit  +
- +
- +
-  sudo aptitude install libc6-dev +
- +
-===== Installation Serveur ===== +
-Telecharger le package serveur à cette adresse : [[http://​www.ocsinventory-ng.org/​index.php?​page=downloads]] +
-Dezziper le package +
-et lancer "sudo sh setup.sh"​ +
-  +----------------------------------------------------------+ +
-  |                                                          | +
-  | Welcome to OCS Inventory NG Management server setup !    | +
-  |                                                          | +
-  +----------------------------------------------------------+ +
-   +
-  CAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and +
-  previous, please remove any Apache configuration for Communication Server! +
-   +
-  Do you wish to continue ([y]/n)?y +
- +
-Repondre y(minuscule) +
- +
- +
-==== General ==== +
- +
-  Assuming Communication server 1.0 RC2 or previous is not installed +
-  on this computer. +
-   +
-  Starting OCS Inventory NG Management server setup from folder/​home/​jacxof/​OCSNG_LINUX_SERVER_1.01 +
-  Storing log in file /​home/​jacxof/​OCSNG_LINUX_SERVER_1.01/​ocs_server_setup.log +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for database server properties... ​              | +
-  +----------------------------------------------------------+ +
-   +
-  Your MySQL client seems to be part of MySQL version 5.0. +
-  Your computer seems to be running MySQL 4.1 or higher, good ;-) +
-   +
-  Which host is running database server [localhost] ? +
- +
-<​Enter>​ +
- +
-  OK, database server is running on host localhost ;-) +
-   +
-  On which port is running database server [3306] ? +
- +
-<​Enter>​ +
- +
-  OK, database server is running on port 3306 ;-) +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for Apache web server daemon... ​                | +
-  +----------------------------------------------------------+ +
-   +
-  Where is Apache daemon binary [/​usr/​sbin/​apache2] ? +
- +
-<​Enter>​ +
- +
-  OK, using Apache daemon /​usr/​sbin/​apache2 ;-) +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for Apache main configuration file... ​          | +
-  +----------------------------------------------------------+ +
-   +
-  Where is Apache main configuration file [//​etc/​apache2/​apache2.conf] ? +
- +
-<​Enter>​ +
- +
-  OK, using Apache main configuration file //​etc/​apache2/​apache2.conf ;-) +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for Apache user account... ​                     | +
-  +----------------------------------------------------------+ +
-  Which user account is running Apache web server [${APACHE_RUN_USER}] ? +
- +
-repondre en minuscule : www-data +
- +
-<​Enter>​ +
- +
-  OK, Apache is running under user account www-data ;-) +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for Apache group... ​                            | +
-  +----------------------------------------------------------+ +
-   +
-  Which user group is running Apache web server [${APACHE_RUN_GROUP}] ? +
-   +
-repondre en minuscule : www-data +
- +
-<​Enter>​ +
- +
-  OK, Apache is running under users group www-data ;-) +
- +
-  +----------------------------------------------------------+ +
-  | Checking for Apache Include configuration directory... ​  | +
-  +----------------------------------------------------------+ +
-   +
-  Setup found Apache Include configuration directory in +
-  //​etc/​apache2/​conf.d/​. +
-  Setup will put OCS Inventory NG Apache configuration in this directory. +
-  Where is Apache Include configuration directory [//​etc/​apache2/​conf.d/​] ? +
- +
-<​Enter>​ +
- +
-  OK, Apache Include configuration directory //​etc/​apache2/​conf.d/​ found ;-) +
- +
- +
-  +----------------------------------------------------------+ +
-  | Checking for PERL Interpreter... ​                        | +
-  +----------------------------------------------------------+ +
-   +
-  Found PERL Intrepreter at </​usr/​bin/​perl>​ ;-) +
-  Where is PERL Intrepreter binary [/​usr/​bin/​perl] ? +
- +
-<​Enter>​ +
- +
- +
-==== Serveur de communication ==== +
- +
-  Do you wish to setup Communication server on this computer ([y]/n)? +
- +
-Repondre y +
- +
-  +----------------------------------------------------------+ +
-  | Checking for Make utility... ​                            | +
-  +----------------------------------------------------------+ +
-   +
-  OK, Make utility found at </​usr/​bin/​make>​ ;-) +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for Apache Include configuration directory... ​  | +
-  +----------------------------------------------------------+ +
-   +
-  Setup has found Apache Include configuration directory in +
-  etc/​apache2/​conf.d/​. +
-  If you are not using Include directive, please enter '​no'​. +
-  Where is Apache Include configuration directory [//​etc/​apache2/​conf.d/​] ? +
- +
-<​Enter>​ +
- +
-  OK, Apache Include configuration directory //​etc/​apache2/​conf.d/​ found ;-) +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for Apache mod_perl version... ​                 | +
-  +----------------------------------------------------------+ +
-   +
-  Checking for Apache mod_perl version 1.99_22 or higher +
-  Found that mod_perl version 1.99_22 or higher is available. +
-  OK, Apache is using mod_perl version 1.99_22 or higher ;-) +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for Communication server log directory... ​      | +
-  +----------------------------------------------------------+ +
-   +
-  Communication server can create detailled logs. This logs can be enabled +
-  by setting interger value of LOGLEVEL to 1 in Administration console +
-  menu Configuration. +
-  Where to put Communication server log directory [/​var/​log/​ocsinventory-NG] ? +
- +
-<​Enter>​ +
- +
-  OK, Communication server will put logs into directory /​var/​log/​ocsinventory-NG ;-) +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for required Perl Modules... ​                   | +
-  +----------------------------------------------------------+ +
-   +
-  Checking for DBI PERL module... +
-  Found that PERL module DBI is available. +
-  Checking for Apache::DBI PERL module... +
-  Found that PERL module Apache::DBI is available. +
-  Checking for DBD::mysql PERL module... +
-  Found that PERL module DBD::mysql is available. +
-  Checking for Compress::​Zlib PERL module... +
-  Found that PERL module Compress::​Zlib is available. +
-  Checking for XML::Simple PERL module... +
-  Found that PERL module XML::Simple is available. +
-  Checking for Net::IP PERL module... +
-  Found that PERL module Net::IP is available. +
-  Checking for SOAP::Lite PERL module... +
-  Found that PERL module SOAP::Lite is available. +
-   +
-  +----------------------------------------------------------+ +
-  | OK, looks good ;-)                                       | +
-  |                                                          | +
-  | Configuring Communication server Perl modules... ​        | +
-  +----------------------------------------------------------+ +
-   +
-  Checking if your kit is complete... +
-  Looks good +
-  Writing Makefile for Apache::​Ocsinventory +
-   +
-  +----------------------------------------------------------+ +
-  | OK, looks good ;-)                                       | +
-  |                                                          | +
-  | Preparing Communication server Perl modules... ​          | +
-  +----------------------------------------------------------+ +
-   +
-  +----------------------------------------------------------+ +
-  | OK, prepare finshed ;-)                                  | +
-  |                                                          | +
-  | Installing Communication server Perl modules... ​         | +
-  +----------------------------------------------------------+ +
-   +
-  +----------------------------------------------------------+ +
-  | OK, Communication server Perl modules install finished;​-)| +
-  |                                                          | +
-  | Creating Communication server log directory... ​          | +
-  +----------------------------------------------------------+ +
-   +
-  Creating Communication server log directory /​var/​log/​ocsinventory-NG. +
-   +
-  Fixing Communication server log directory files permissions. +
-  Configuring logrotate for Communication server. +
-  Writing communication server logrotate to file /​etc/​logrotate.d/​ocsinventory-NG +
-   +
-  +----------------------------------------------------------+ +
-  | OK, Communication server log directory created ;-)       | +
-  |                                                          | +
-  | Now configuring Apache web server... ​                    | +
-  +----------------------------------------------------------+ +
-   +
-  Writing communication server configuration to file //​etc/​apache2/​conf.d//​ocsinventory.conf +
-   +
-  +----------------------------------------------------------+ +
-  | OK, Communication server setup sucessfully finished ;-)  | +
-  |                                                          | +
-  | Please, review //​etc/​apache2/​conf.d//​ocsinventory.conf +
-  | to ensure all is good. Then restart Apache daemon. ​      | +
-  +----------------------------------------------------------+ +
- +
- +
- +
-==== Console d'​administration ==== +
-  Do you wish to setup Administration server (web administration console) +
-on this computer ([y]/n)? +
- +
-Repondre y +
- +
-  +----------------------------------------------------------+ +
-  | Checking for Apache root document directory... ​          | +
-  +----------------------------------------------------------+ +
-   +
-  Where is Apache root document directory [] ? +
- +
-Repondre /var/www +
- +
-  OK, Apache root document directory is /var/www ;-) +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for required Perl Modules... ​                   | +
-  +----------------------------------------------------------+ +
-   +
-  Checking for DBI PERL module... +
-  Found that PERL module DBI is available. +
-  Checking for DBD::mysql PERL module... +
-  Found that PERL module DBD::mysql is available. +
-  Checking for XML::Simple PERL module... +
-  Found that PERL module XML::Simple is available. +
-  Checking for Net::IP PERL module... +
-  Found that PERL module Net::IP is available. +
-   +
-  +----------------------------------------------------------+ +
-  | Installing files for Administration server... ​           | +
-  +----------------------------------------------------------+ +
-   +
-  Creating directory /​var/​www/​download. +
-   +
-  Creating directory /​var/​www/​ocsreports. +
-   +
-  Copying files to /​var/​www/​ocsreports. +
-   +
-  Fixing directories and files permissions. +
-   +
-  Configuring IPDISCOVER-UTIL Perl script. +
-   +
-  Installing IPDISCOVER-UTIL Perl script. +
-   +
-  Fixing permissions on IPDISCOVER-UTIL Perl script. +
-   +
-  +----------------------------------------------------------+ +
-  | OK, Administration server installation finished ;-)      | +
-  |                                                          | +
-  | Point your browser to http://​server/​ocsreports to        | +
-  | configure database server and create/​update schema. ​     | +
-  +----------------------------------------------------------+ +
-   +
-  Setup has created a log file /​home/​jacxof/​Desktop/​OCSNG_LINUX_SERVER_1.01/​ocs_server_setup.log. Please, save this file. +
-  If you encounter error while running OCS Inventory NG Management server, +
-  we can ask you to show us his content ! +
-  +
-  DON'T FORGET TO RESTART APACHE DAEMON ! +
-   +
-  Enjoy OCS Inventory NG ;-) +
- +
- +
- +
- +
- +
- +
- +
-==== Finalisation ==== +
-redemarrage d'​apache +
-  sudo /​etc/​init.d/​apache2 restart +
- +
- +
- +
-Cliquer sur l'​adresse en dessous de l'​image puis compléter comme ci-dessous +
- +
-{{ocs-1.png|}} +
- +
- +
-[[http://​localhost/​ocsreports/​install.php|Configuration]] +
- +
- +
- +
- +
- +
- +
- +
- +
-<note important>​La nouvelle version de l'​agent (Unix Unified Agent version 1.1.2) nécessite l'​installation et l'​utilisation de PERL</​note>​ +
- +
-===== Installation du client LINUX ===== +
-Telecharger le package agent à cette adresse : [[http://​www.ocsinventory-ng.org/​index.php?​page=downloads]] +
- +
-Dezziper le fichier, lancer la console et se mettre dans le repertoire. +
- +
-  sudo ./​setup.sh +
-  +----------------------------------------------------------+ +
-  |                                                          | +
-  | Welcome to OCS Inventory NG Agent setup !                | +
-  |                                                          | +
-  +----------------------------------------------------------+ +
-  Writing log to file /​home/​jacxof/​Desktop/​OCSNG_LINUX_AGENT_1.01/​ocs_agent_setup.log +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for previous installation... ​                   | +
-  +----------------------------------------------------------+ +
-   +
-  Previous installation of OCS Inventory NG agent not found +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for supplied parameters... ​                     | +
-  +----------------------------------------------------------+ +
-   +
-  No parameter found +
-  OCS Inventory NG Agent setup running in user interactive mode +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for OCS Inventory NG Agent running method... ​   | +
-  +----------------------------------------------------------+ +
-   +
-  OCS Inventory NG Agent can be run through 2 methods: +
-  - local: inventory will be generated locally to a file, without +
-         ​interacting with Communication Server. Inventory results +
-         must then be imported manually into the server through +
-         ​Administration Console. +
-  - http: Agent can connect to Communication Server and will interact +
-        with it to know what is has to do (inventory, ipdiscover,​ +
-        deployment...) +
-  Which method will you use to generate the inventory ([http]/​local) ? +
- +
-<​Enter>​ +
- +
-  OK, OCS Inventory NG agent will be running in <​http>​ mode ;-) +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for OCS Inventory NG Communication Server... ​   | +
-  +----------------------------------------------------------+ +
-   +
-  Which host is running OCS Inventory NG Communication Server [] ? +
- +
-Mettre le nom du serveur de communication ou son adresse IP +
- +
-  On which port is running OCS Inventory NG Communication Server [80] ? +
- +
-<​Enter>​ +
- +
-    OK, OCS Inventory NG Communication Server is running on host +
-  <​localhost>​ and port <80> ;-) +
-   +
-   +
-  +----------------------------------------------------------+ +
-  | Checking for TAG administrative information value... ​    | +
-  +----------------------------------------------------------+ +
-   +
-  What is the value of TAG ([]) ? +
- +
-Mettre un nom permettant de repérer ce poste. +
- +
-  test: 439: XOF: unexpected operator +
- OK, OCS Inventory NG agent will use <​Portable XOF> as <TAG> ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for PERL Interpreter... ​                        | +
- +----------------------------------------------------------+ +
- +
- OK, PERL Intrepreter found at </​usr/​bin/​perl>​ ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for C/C++ Compiler... ​                          | +
- +----------------------------------------------------------+ +
- +
- OK, C/C++ Compiler found at </​usr/​bin/​cc>​ ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for Make utility... ​                            | +
- +----------------------------------------------------------+ +
- +
- OK, Make utility found at </​usr/​bin/​make>​ ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for dmidecode binaries... ​                      | +
- +----------------------------------------------------------+ +
- +
- Found dmidecode binaries version <2.8> at </​usr/​sbin/​dmidecode>​ ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for Compress::​Zlib PERL module... ​              | +
- +----------------------------------------------------------+ +
- +
- OK, PERL module Compress::​Zlib is available ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for XML::Simple PERL module... ​                 | +
- +----------------------------------------------------------+ +
- +
- OK, PERL module XML::Simple is available ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for Net::IP PERL module... ​                     | +
- +----------------------------------------------------------+ +
- +
- OK, PERL module Net::IP is available ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for LWP::​UserAgent PERL module... ​              | +
- +----------------------------------------------------------+ +
- +
- OK, PERL module LWP::​UserAgent is available ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for Digest::MD5 PERL module... ​                 | +
- +----------------------------------------------------------+ +
- +
- OK, PERL module Digest::MD5 is available ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Checking for Net::SSLeay PERL module... ​                 | +
- +----------------------------------------------------------+ +
- +
- OK, PERL module Net::SSLeay is available ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Installing IPDISCOVER binary... ​                         | +
- +----------------------------------------------------------+ +
- +
- Building IPDISCOVER version 3 +
- Installing IPDISCOVER version 3 into /usr/sbin +
- OK, IPDISCOVER version 3 setup successfully ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Installing OCS Inventory NG Agent... ​                    | +
- +----------------------------------------------------------+ +
- +
- Configuring OCS Inventory NG Agent +
- Building OCS Inventory NG Agent +
- Installing OCS Inventory NG Agent +
- Creating </​bin/​ocsinv>​ OCS Inventory NG Agent symbolic link +
- OK, OCS Inventory NG Agent setup successfully ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Creating OCS Inventory NG Agent log directory... ​        | +
- +----------------------------------------------------------+ +
- +
- Creating OCS Inventory NG Agent log directory </​var/​log/​ocsinventory-client>​. +
- Configuring logrotate for OCS Inventory NG Agent. +
- Writing OCS Inventory NG Agent logrotate to file </​etc/​logrotate.d/​ocsinventory-client>​ +
- +
- +
- +----------------------------------------------------------+ +
- | Installing OCS Inventory NG Agent configuration files... | +
- +----------------------------------------------------------+ +
- +
- Creating OCS Inventory NG Agent <​ocsinv.conf>​ configuration file +
- Creating OCS Inventory NG Agent </​etc/​ocsinventory-client>​ configuration directory +
- Writing OCS Inventory NG Agent </​etc/​ocsinventory-client/​ocsinv.conf>​ configuration file +
- Creating OCS Inventory NG Agent <​ocsinv.adm>​ configuration file +
- Writing OCS Inventory NG Agent </​etc/​ocsinventory-client/​ocsinv.adm>​ configuration file +
- OK, OCS Inventory NG Agent configuration files setup successfully ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Installing OCS Inventory NG Agent cron configuration... ​ | +
- +----------------------------------------------------------+ +
- +
- Creating OCS Inventory NG Agent cron configuration file +
- Writing OCS Inventory NG Agent </​etc/​cron.d/​ocsinventory-client>​ cron configuration file +
- OK, OCS Inventory NG Agent cron configuration file setup successfully ;-) +
- +
- +
- +----------------------------------------------------------+ +
- | Lauching OCS Inventory NG Agent... ​                      | +
- +----------------------------------------------------------+ +
- +
- OK, OCS Inventory NG Agent runs successfully ;-) +
- +
- +
- Setup has created a log file /​home/​jacxof/​Desktop/​OCSNG_LINUX_AGENT_1.01/​ocs_agent_setup.log. Please, save this file. +
- If you encounter error while running OCS Inventory NG Agent, +
- we can ask you to show us his content ! +
- +
- Enjoy OCS Inventory NG ;-) +
- +
-Le client est installé. Retournez dans la console d'​administration,​ le poste doit apparaitre.+
  
 +===== Installation du client=====
 +Il suffit d'​[[:​tutoriel:​comment_installer_un_paquet|Installer le paquet]] **[[apt>​ocsinventory-agent|ocsinventory-agent]]** \\
 +de choisir HTTP comme mode et de mettre l'IP ou le FQDN de votre serveur.\\
 +==== Configuration ====
 +[[:​tutoriel:​comment_modifier_un_fichier|modifier]] **/​etc/​ocsinventory/​ocsinventory-agent.cfg**\\
 +ou utiliser <​code>​ dpkg-reconfigure ocsinventory-agent </​code>​
 +=== pour forcer la remontée des informations de votre client/​agent vers le serveur ===
 +<​code>​sudo ocsinventory-agent</​code>​
  
 ===== Erreur avec logrotate ===== ===== Erreur avec logrotate =====
Ligne 640: Ligne 89:
 Pour ce faire vous pouvez utiliser //​dos2unix//​ ou alors éditer le fichier pour le réécrire au format unix. Pour ce faire vous pouvez utiliser //​dos2unix//​ ou alors éditer le fichier pour le réécrire au format unix.
  
-===== Installation du client Unix Unified Agent version 1.1.2 ===== +===== Désinstallation ​=====
- +
- +
-Afin d'​installer correctement cet agent il est nécessaire de disposer de PERL +
-Il faut aussi installer :  +
- +
-  sudo apt-get install libnet-ssleay-perl +
-  sudo apt-get install libcrypt-ssleay-perl +
-  sudo apt-get install libmodule-install-perl +
-  sudo apt-get install nmap +
- +
-  cpan -i Digest::MD5 XML::Simple Net::IP Proc::​Daemon Proc::​PID::​File Net::CUPS Module::​Install Crypt::​SSLeay +
- +
- +
- +
-Telecharger le package agent à cette adresse : [[http://​www.ocsinventory-ng.org/​index.php?​page=downloads]] +
- +
-  gunzip agent.tar.gz +
-  tar -xvf agent.tar +
-  cd agent +
-  perl Makefile.PL +
- +
-Cette commande permet de construire le fichier Makefile grace a celle ci vous pouvez voir si il vous manque des dépendances PERL vous pouvez donc les installer : +
- +
-  cpan -i Crypt::​SSLeay +
- +
-Si toutes vos dépendances satisfaites continuez +
- +
-  make +
-  make install+
  
-  Writing /​usr/​local/​lib/​perl/​5.10.0/​auto/​Ocsinventory/​Agent/​.packlist +Pour supprimer cette application,​ il suffit de [[:​tutoriel:​comment_supprimer_un_paquet|supprimer son paquet]]. Selon la méthode choisie, la configuration globale de l'application est conservée ou supprimée. Les journaux du système, et les fichiers de préférence des utilisateurs dans leurs dossiers personnels sont toujours conservés.
-  Appending installation info to /​usr/​local/​lib/​perl/​5.10.0/​perllocal.pod +
-  ​! -f run-postinst ​|| /​usr/​bin/​perl postinst.pl +
-  Do you want to configure the agent +
-  Please enter 'y' or '​n'?>​ [y]+
  
-Une suite de question vous proposera d'​installer l'​agent dans certains répertoires exemple pour les fichiers de configuration /​etc/​ocsinventory-agent ou /etc/ocs et ainsi de suite +===== Voir aussi =====
-L'​adresse du serveur OCS doit être de type http(s)://​mondomaine.domaine/​ il ne faut pas ajouter le /​ocsinventory ​+
  
-En fin d'​installation il vous sera proposer d'​insérer un job dans /etc/cron.d et d'​effectuer un premier "​scan"​ de la machine+  * [[https://ocsinventory-ng.org/?​lang=fr|Site officiel]]
  • ocs_inventory.1266165404.txt.gz
  • Dernière modification: Le 18/04/2011, 14:39
  • (modification externe)