![Page 1: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/1.jpg)
SIO1
Installation d’OCS Inventory et GLPI Labo 4
Even MARIE – Djibril GUENNI Charles Edouard Canterel – Maxime Crochemore
![Page 2: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/2.jpg)
1
Installation d’OCS inventory et GLPI
OCS Inventory : application permettant de réaliser un inventaire sur la
configuration matérielle des machines du réseau et sur les logiciels qui y sont
installés et de visualiser ces informations grâce à une interface web.
GLPI : logiciel libre de gestion des services informatiques (ITSM) et de gestion des
services d'assistance (issue tracking system et ServiceDesk), édité en PHP et distribué
sous licence GPL.
Table des matières Installation de Debian ............................................................................................................................. 2
Installation d’OCS Inventory .................................................................................................................. 12
Intégrer un ou des clients à l’OCS inventory : ....................................................................................... 17
Suppression d’un logiciel, actualisation sur OCS : ................................................................................. 19
Installation de GLPI et création d’utilisateurs ....................................................................................... 21
Installation du plugin FusionInventory .................................................................................................. 23
![Page 3: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/3.jpg)
2
Installation de Debian Nous avons choisi d'installer Debian 7 sur une machine virtuelle, dans un
premier temps il faut créer la machine virtuelle et la faire démarrer sur l'ISO
adéquate:
Démarrer la machine et suivre la procédure des captures d'écrans:
sélectionner Install:
![Page 4: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/4.jpg)
3
Votre langue:
![Page 5: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/5.jpg)
4
Sélectionner le nom de votre machine:
Votre mot de passe:
![Page 6: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/6.jpg)
5
La manière que vous allez utiliser pour partitionner le disque dur:
Sélectionner le disque à partitionner:
![Page 7: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/7.jpg)
6
Choisir le schéma de partitionnement:
Valider:
![Page 8: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/8.jpg)
7
Patienter
![Page 9: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/9.jpg)
8
Sélectionner Non:
Sélectionner Serveur Web et environnement de bureau pour avoir une interface:
![Page 10: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/10.jpg)
9
Sélectionner oui :
![Page 11: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/11.jpg)
10
Sélectionner continuer :
Sélectionner votre session et connectez-vous :
![Page 12: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/12.jpg)
11
Voilà votre installation de Debian est terminé !
![Page 13: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/13.jpg)
12
Installation d’OCS Inventory
Tout d’abord, il faut entrer dans le terminal :
Se connecter en tant qu’Admin
![Page 14: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/14.jpg)
13
Entrer dans un premier temps apt-get update pour chercher des mises à jour :
Ensuite, nous allons dans un premier temps installer les paquets nécessaires à
l’installation d’OCS inventory, nous installons les packages suivants:
apt-get install apache2
apt-get install php5 libapache2-mod-php5 php5-cli
apt-get install php5-common php5-cgi php5-gd
apt-get install mysql-client mysql-server mysql-common php5-mysql
apt-get install libxml-simple-perl
apt-get install libio-compress-perl
![Page 15: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/15.jpg)
14
apt-get install libdbi-perl
apt-get install libdbd-mysql-perl
apt-get install libnet-ip-perl
apt-get install libsoap-lite-perl
Nous allons maintenant nous occuper des CPAN, pour se faire il faut entrer la commande :
Cpan -i XML ::Entities
Dites oui,
Poursuivre avec l’installation de:
apt-get install ocsinventory-server ocsinventory-reports
Maintenant nous allons entrer dans le menu CPAN:
perl -MCPAN -e shell
Entrer les commandes suivantes dans le menu CPAN :
install CPAN
![Page 16: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/16.jpg)
15
reload CPAN
install YAML
install XML::Entities
install Nmap::Parser
quit
Installer les éléments suivants :
apt-get install nmap snmp
Entrer dans un navigateur : localhost/ocsreports, vous arrivez sur cette page : choisissez vos
identifiants
![Page 17: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/17.jpg)
16
Vous n’avez plus qu’à recharger la page et vous connecter avec vos identifiants, l’installation
d’OCS Inventory est maintenant terminé.
![Page 18: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/18.jpg)
17
Intégrer un ou des clients à l’OCS inventory :
D’abord, il faut installer le logiciel client d’OCS inventory sur les clients que vous voulez
intégrer.
Ouvrir le client, appuyer sur suivant jusqu’à arriver sur cette page, entrer dans la partie
souligné en bleu l’IP de votre serveur OCS inventory ainsi que les identifiants dans les cases
prévu à cet effet :
Validé et connecté vous sur votre serveur pour la vérification:
![Page 19: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/19.jpg)
18
Cliqué sur l’icone entouré pour accéder au menu pour visualiser les clients,
Vous arriverez sur cette page :
Vous pouvez constater deux clients dans le tableau en bas de page, si votre poste ou serveur
s’est identifié dans ce tableau, vous avez réussi la manipulation.
![Page 20: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/20.jpg)
19
Suppression d’un logiciel, actualisation sur OCS :
Prenons comme exemple le logiciel iTALC, présent sur l’un des postes clients,
On va tout simplement désinstaller le logiciel manuellement sur le PC client,
Finaliser la désinstallation,
![Page 21: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/21.jpg)
20
Dans la barre des tâches, sélection l’icône OCS et cliquer pour actualiser
Ce message signifie que l’actualisation a fonctionné,
Sur l’interface OCS inventory, nous pouvons actualiser et nous rendre compte que le logiciel
n’est plus présent sur le poste en question,
![Page 22: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/22.jpg)
21
Installation de GLPI et création d’utilisateurs
Nous allons d’abord installer le serveur SQL :
Ensuite on installe GLPI :
Nous allons ensuite nous connecter, les identifiants de bases sont :
Login : glpi mdp : glpi
![Page 23: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/23.jpg)
22
Pour créer des utilisateurs, il faut accéder à l’onglet Administration/utilisateur
![Page 24: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/24.jpg)
23
Installation du plugin FusionInventory
Dans un premier temps, nous télécharger le plugin dans :
(la version du plugin change selon votre version de GLPI)
On décompresse :
Et on termine :
En retournant sur l’interface GLPI, on peut constater que le plugin est bien présent et qu’un onglet
Plugins est apparu, si cela arrive c’est que votre installation a fonctionné.
Maintenant nous allons installer l’agent FusionInventory :
Taper cette commande pour initialiser l’installation du client,
Et pour terminer l’installation :
Maintenant nous allons aller modifier certaines choses dans le fichier /etc/default/fusioninventory-
agent :
![Page 25: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/25.jpg)
24
Dans le fichier, intégrer la fonction suivante à la place de « MODE » :
Entrer maintenant dans le fichier /etc/fusioninventory/agent.cfg
Dans ce fichier, ces quatre valeurs seront vides ou remplient par défaut, les remplacer par les votres,
dans notre cas ce sera ;
Nous allons maintenant redémarrer l’agent FusionInventory :
De retour dans l’interface, nous allons maintenant nous rendre dans administration, entités et entrer
en bas à droite : le lien web de notre serveur :
![Page 26: Installation d’OCS Inventory et GLPI - even-marie.comeven-marie.com/wp-content/uploads/2017/07/OCS-INVENTORY.pdf · 1 Installation d’OCS inventory et GLPI OCS Inventory : application](https://reader034.vdocuments.net/reader034/viewer/2022051407/5b9acade09d3f22d2a8c159b/html5/thumbnails/26.jpg)
25
Nous allons maintenant faire de même dans configuration général :
Nous pouvons ici voir que notre OCS inventory est maintenant remonté jusque dans GLPI :