Beruflich Dokumente
Kultur Dokumente
Partie I
Installation de XAMPP – OCS-NG Inventory Partie I
1. Avant de commencer :
1.1. Préambule :
Tests effectués sur :
• SERVEUR Windows 2003R2 SP2 – 1Go de RAM
• Antivirus Trend Office Scan 7.3 installé sur IIS 6.0
• IACA 9.17
• 4 Go de libre sur le disque. Partie II
1.2. Remarque :
Par défaut le port http 80 qui est utilisé pour XAMPP, mais IIS utilise aussi le port 80.
Il faut soit modifier le port de IIS ou celui de XAMPP.
Partie III
Par défaut le port http 8080 est utilisé par OfficeScan de Trend.
Il faut soit modifier le port de IIS ou celui de XAMPP.
1.3. Télécharger :
Les versions sont du mois d’avril 2009.
Partie V
1.3.1. Serveur et OSC-NG :
Télécharger : « OSCNG_WINDOWS_SERVER_1.01.zip » sur
http://sourceforge.net/project/downloading.php?groupname=ocsinventory&filename=OCS
NG_WIN32_SERVER_1.01.zip&use_mirror=ovh
Partie VI
Extraire dans un répertoire temporaire : « OSCNG_WINDOWS_SERVER_1.01 ».
2. Installation de XAMPP :
2.1. Stopper le serveur web par défaut dans IIS :
Pour installer XAMPP qui a par défaut le port 80 comme le « Site Web par défaut » d’IIS nous
arrêtons temporairement le « Site Web par défaut ».
D Partie III
Partie IV
Partie V
Figure 1
Partie VI
2.2. Installation de XAMPP :
Dans le dossier « OSCNG_WINDOWS_SERVER_1.01 »
Exécuter : « OcsWin32ServerSetup.exe ».
Partie VII
Figure 2
Partie VIII
Partie IX
Figure 3
Figure 4
Partie II
Partie III
Partie IV
Partie V
Figure 5
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 6
Partie II
Partie III
Partie IV
Figure 7
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 8
Partie II
Partie III
Partie IV
Figure 9
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 10
Ne pas utiliser le panneau de contrôle de XAMPP pour paramétrer les services sous peine de
ne pas avoir les bons paramètres.
Partie II
Partie III
Figure 11
Partie IV
Figure 12
Partie V
Répondre « NON ».
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 13
Partie II
Partie III
Figure 14
Partie VII
Partie VIII
Partie IX
Figure 15
Partie II
Partie III
Figure 16
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 17
Remarque : La taille maximale du paquet pour le télé déploiement ne pourra pas dépasser
16 Mo, pour une taille plus importante il faut modifier le fichier « php.ini ».
Partie II
Partie III
Figure 18
Partie IV
Cliquez sur : « Send ».
Partie V
Partie VI
Partie VII
Partie VIII
Figure 19
Partie II
Partie III
s Partie IV
Figure 20
Partie VII
Partie VIII
Partie IX
Figure 21
Partie II
Figure 22
Partie V
Partie VI
Partie VII
Figure 23
Partie VIII
Partie IX
Partie II
Modification du port http de XAMPP Partie II
Mais aussi le port 8080 qui est utilisé par OfficeScan de TrendMicro. Partie I
Il faut soit modifier les ports de IIS ou celui de XAMPP. Je propose de modifier le port de
XAMPP.
Partie II
4.1. Arrêter les services « Apache et MySql ».
Lancer le panneau de Contrôle de Xampp :
Partie V
Partie VI
Figure 24
Les services sont arrêtés.
Partie VII
Partie VIII
Partie IX
Figure 25
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Partie III
Création du certificat – OCS-NG Partie III
Partie II
Partie III
Partie IV
Figure 26
Partie VI
Partie VII
Partie VIII
Figure 27
Partie I
Partie II
Figure 28
Partie III
Enregistrer les modifications.
Partie V
Partie VI
Figure 29
Partie VIII
Partie IX
Figure 30
Partie I
Partie II
Partie IV
Partie V
Partie VI
Figure 32
Tapez un « Locality Name » :
Partie VII
Partie VIII
Partie IX
Figure 33
Partie I
Partie II
Partie IV
Partie V
Partie VI
Figure 35
Partie VIII
Partie IX
Figure 36
Partie I
Partie II
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 38
Partie II
Partie III
Partie IV
Figure 39 Partie V
Partie VII
Partie VIII
Partie IX
Partie IV
Activer LDAP dans XAMPP pour GLPI Partie IV
#
#
;extension=php_interbase.dll Partie III
;extension=php_ixsfunc.dll
;extension=php_java.dll
extension=php_ldap.dll
;extension=php_lzf.dll Partie IV
;extension=php_mailparse.dll
;extension=php_maxdb.dll
#
#
Partie V
6.2. Copier de fichiers :
NB: Ne semble pas nécessaire pour un bon fonctionnement constatation faite après plusieurs Partie VIII
installations.
Partie IX
Partie I
Partie II
D
Partie III
Partie IV
Partie V
Figure 40
Partie VII
Partie VIII
Partie IX
Figure 41
Partie II
Partie III
Partie IV
Partie V
Partie VI
Figure 42
Partie VII
Partie VIII
Partie IX
Partie I
Partie II
Partie III
Figure 43
Partie IV
Partie V
Partie VI
Partie VII
Figure 44
Partie VIII
Nous pouvons voir la durée de 5 ans comme indiqué lors de la fabrication du certificat.
Partie IX
Partie I
Partie II
Partie III
Figure 45
Partie V
Partie VI
Partie VII
Figure 46
Partie VIII
Partie IX
Partie I
Partie II
Figure 47
Partie III
Partie IV
Partie V
Partie VI
Figure 48
Partie VII
Partie VIII
Partie IX
Figure 49
Figure 50
Didier LACOMBLEZ Page 32 sur 122
RAIP-SAA Reims
Activer LDAP dans XAMPP pour GLPI Partie IV
Message d’avertissement :
Partie I
Partie II
Partie III
Figure 51
Partie IV
Partie V
Figure 52
Partie VI
Partie VII
Partie VIII
Partie IX
Partie V
Configuration et paramétrages – XAMPP Partie V
7. Configuration de XAMPP :
7.1. Statut :
Ouvrir votre navigateur préféré, lancer : https://localhost/xampp Partie I
Sélectionner : « Français ».
Partie II
Partie III
Partie IV
Partie V
Figure 53
Partie VII
Partie VIII
Partie IX
Figure 54
Partie I
Partie II
Partie III
Partie IV
Figure 55
Partie V
Remarque : Le serveur SMTP reste en rouge car non installé par défaut.
Le serveur FTP est au vert car un serveur FTP est activé sur IIS.
Partie VII
Partie VIII
Partie IX
7.2. Sécurité :
Partie I
Partie II
Partie III
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Figure 56
Partie IX
Il faut configurer la sécurité pour cela, cliquez sur lien :
http://localhost/security/xampsecurity.php
NB : Seulement en LOCALHOST, c'est-à-dire sur la machine sur laquelle est installé XAMPP.
Partie I
Partie II
Partie III
Partie IV
Figure 57
1. Tapez un mot de passe. Partie V
2. La documentation d’OCS recommande de choisir « Cookie ».
3. Cliquez sur : « Password changing ».
Partie VII
Partie VIII
Partie IX
Figure 58
Cliquez sur : « Make safe the XAMPP directory »
Partie I
Partie II
Partie III
Partie IV
Figure 59
Cliquer sur le lien : « Sécurité ».
Partie V
Partie VI
Figure 60
Partie VII
7.3. Redémarrer les services :
Redémarrer « MySql » pour que le mot de passe « root » soit pris en compte.
Partie VIII
Partie IX
Figure 61
Partie I
Partie II
Partie III
Partie IV
Figure 62
Partie V
La documentation d’OCS recommande de paramétrer en mode « SAFE_MODE = ON »,
cependant il se produit des erreurs sur la page.
Lors de l’utilisation du plugin « Archire » dans GLPI il faut paramétrer en mode
« SAFE_MODE = OFF ».
Partie VI
Nous resterons donc en mode SAFE_MODE = OFF ».
Fermer la fenêtre.
Partie VII
Partie VIII
Partie IX
Partie II
Partie III
Partie IV
Partie V
Partie VI
Figure 63
Partie VII
Partie VIII
Partie IX
Figure 64
Partie I
Partie II
Partie III
Figure 65
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Figure 66
Partie IX
Remarque : • Lors de l’installation d’OCS-NG le compte « ocs » a été créé avec
le mot de passe « ocs » pour la base « ocsweb ».
• Si changement du mot de passe modifier le fichier :
« dbconfig.inc.php » dans le répertoire :
« C:\Program Files\OCS Inventory NG\xampp\htdocs\ocsreports ».
Partie I
Partie II
Partie III
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Figure 67
Remplir les champs :
1. Information pour la connexion :
Nom d’utilisateur : glpi
Serveur : localhost ou % Partie IX
Mot de passe : glpi
Entrer à nouveau : glpi
Si la base existe déjà mais on veut donner ou modifier des droits sur la base au compte GLPI :
Partie I
Vérification :
Cliquez sur : « Home ».
Cliquez sur : « Privilèges »
Sélectionner : « glpi ». Partie II
Partie III
Partie IV
Partie V
Partie VI
Figure 68
Partie VII
Partie VIII
Partie IX
Partie II
Figure 69 Partie III
8.1. Configuration :
Partie IV
Partie V
Figure 70
1. LOCAL_SERVER : LocalHost
2. LOCAL_PORT : 8008.
3. PROLOG_FREQ : 1 (pour une remontée toute les 1 h). Partie VII
Partie VIII
Partie IX
Partie I
Partie II
Partie III
Partie IV
Partie V
Partie VI
Partie VIII
Partie IX
Partie III
Partie IV
Figure 72
Cliquez sur : « Configuration ». Partie V
Partie VI
Partie VII
Figure 73
Partie VIII
Cliquez sur : « Noms des sous réseaux ».
Partie I
Partie II
Partie III
Figure 74
Partie IV
8.3. Données Administratives OCS-NG vers GLPI
Dans OCS, il est possible d'enrichir manuellement l'inventaire en ajout des données
administratives. Celles-ci peuvent être remontées dans GLPI et associées à un des champs Partie V
suivants :
Cliquez sur :
Partie VII
Partie VIII
Partie IX
Figure 75
• Lieu • Contact
• Groupe • Reseau
Partie I
Partie II
Partie III
Partie IV
Figure 76
Exemple d’une modification : (A ce stade de l’installation il n’y a aucune machine inventoriée). Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 77
Partie I
Partie II
Partie III
Partie IV
Figure 78
Partie V
Exemple :
Groupe : XP
Partie VI
Lieu : Salle Info
Réseaux : Pédagogique
Contact : admin1@domOCS.local
Partie VII
Partie VIII
Partie IX
Partie VI
Création du package OCS-NG Partie VI
9. Installation automatique :
9.1. Création d’un package OCS :
Ouvrir le répertoire : « OSCNG_WINDOWS_AGENT_1.02 ».
Ouvrir le répertoire : « OSCNG_WINDOWS_PAKAGER_1.02 ».
Lancer : « OcsPackager.exe » Partie I
Indiquer les paramètres :
Partie II
Partie III
Partie IV
Partie V
Figure 79
Partie IV
Partie V
Partie VI
Figure 80
Partie VIII
Partie XI
Figure 81
Partie I
Partie II
Figure 82
Partie III
Partie IV
Figure 83
Partie VIII
Partie XI
Figure 84
Partie I
Partie II
Sauvegardez ce fichier.
Partie VIII
Partie XI
Remarque : Pour ne pas l’installer en tant que service (STANDALONE) et avoir une remontée
ne pas mettre le flag « /INSTALL », la copie des fichiers se fera dans « C:\OCS-
NG ».
Partie I
Partie II
Figure 86
Partie III
Partie IV
Partie V
Partie VI
Partie VIII
Partie XI
Partie I
Partie II
Figure 88
Partie III
Partie IV
Figure 89
Partie V
Partie VI
Partie VIII
Partie VIII
Partie XI
Figure 90
Partie I
Partie II
Partie III
Figure 91 Partie IV
Partie VI
Partie VIII
Partie VIII
Partie XI
Figure 92
Partie I
Partie II
Partie III
Partie IV
Figure 93
Partie V
Partie VI
Partie VIII
Partie VIII
Partie XI
Figure 94
Partie I
Partie II
Partie III
Partie IV
Figure 95
Partie V
Partie VI
Figure 96
Partie VIII
Partie VIII
Partie XI
Figure 97
Partie I
Partie II
Partie III
Partie IV
Figure 98
Partie V
Partie VI
Partie VIII
Partie VIII
Figure 99
Partie XI
Partie I
Partie II
Partie IV
Partie V
Partie VI
Figure 102
Partie VIII
Partie VIII
Figure 103
Nom du script :
#
\\192.168.100.100\netlogon\192.168.100.100.exe Partie XI
#
Paramètres du script :
#
/S /NP /INSTALL /SERVER:192.168.100.100 /DEBUG /PNUM:8008 /FORCE
#
Dans « netlogon » :
Créer un fichier « OCS-Agent.BAT ». Partie III
Partie VIII
Partie VIII
Partie XI
Partie V
Partie VI
Partie VIII
Partie VIII
Partie XI
Figure 106
Partie VII
Lancer – Exécuter – Déposer Partie VI
Partie I
Partie II
Partie III
Partie IV
Partie V
Partie VI
Partie VII
Figure 107
Partie VIII
Intitulés: Valeur :
DOWNLOAD : ON
DOWNLOAD_CYCLE_LATENCY : 60 (en secondes).
DOWNLOAD_FRAG_LATENCY : 10 (en secondes).
Partie XI
DOWNLOAD_PERIOD_LATENCY : 0 (en secondes).
DOWNLOAD_PERIOD_LENGTH : 10 (en secondes).
DOWNLOAD_TIMEOUT : 30 (en secondes).
Partie II
Partie III
Partie IV
Partie V
Figure 108
Partie VIII
Partie XI
Figure 109
Partie I
Partie II
Partie III
Figure 110
Partie IV
Activer la fenêtre d’interaction avec l’utilisateur :
Partie V
Partie VI
Partie VII
Partie VIII
Figure 111
Partie XI
Partie I
Partie II
Partie III
Partie VI
Partie VII
Partie VIII
Partie I
Partie II
Partie III
Partie V
Partie VI
Partie VII
Partie VIII
Figure 115
Partie XI
Partie I
Partie II
Partie III
Figure 116
Partie IV
Serveur https : 192.168.100.100/download
Serveur de fichiers : 192.168.100.100:8008/download
Partie V
Partie VI
Partie VII
Partie VIII
Figure 117
Partie XI
Cliquez sur :
Partie II
Partie III
Partie IV
Partie V
Partie VI
Figure 118
Partie VIII
Partie XI
Figure 119
Sélectionner le paquet.
Didier LACOMBLEZ Page 73 sur 122
RAIP-SAA Reims
Lancer – Exécuter – Déposer Partie VI
Figure 120
Partie I
Notification du paquet pour la machine :
Partie II
Partie III
Partie IV
Partie V
Figure 121
Partie VI
Forcer la remonté pour activer le paquet immédiatement :
Partie XI
Figure 122
Partie I
Figure 123
Partie II
Installation en silencieux mais avec message pour prévenir l’utilisateur, comme demandé lors de
la création du paquet.
Partie IV
Partie V
Partie VI
Figure 124
Partie VII
Partie VIII
Partie XI
Figure 125
Création :
Partie I
Partie II
Partie III
Partie IV
Partie VI
Partie VII
Partie VIII
Partie XI
Figure 127
Partie I
Partie II
Partie III
Partie V
Partie VI
Partie VII
Partie VIII
Partie XI
Figure 129
Partie I
Partie II
Partie III
Partie IV
Figure 130
Partie V
Partie VI
Partie VII
Partie VIII
Partie I
Partie II
Partie III
Figure 132
Partie IV
Affecter :
Partie V
Partie VI
Partie VII
Partie VIII
Cliquez sur :
Partie I
Partie II
Partie III
Partie IV
Figure 134
Partie V
Partie VI
Partie VII
Partie VIII
Figure 135
Partie XI
Figure 136
Partie I
Partie II
Partie III
Figure 137 Partie IV
Client :
Partie VII
Partie VIII
Figure 138
Partie XI
Figure 139
Didier LACOMBLEZ Page 81 sur 122
RAIP-SAA Reims
Lancer – Exécuter – Déposer Partie VI
Partie I
Partie II
Partie III
Partie IV
Figure 140
Partie V
Partie VI
Partie VII
Partie XI
Partie I
Partie II
Partie III
Figure 142
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Partie XI
Partie I
Partie II
Figure 143
11.7.2. Exemple 2 :
« Ocs-Force.zip » est le fichier zippé de « Ocs-Force.bat ». Partie IV
Partie V
Figure 144
11.7.3. Exemple 3 :
« psshutdown.zip » fichier zipper de « psshutdown.exe ». Partie VII
Fichier : psshutdown.zip
Commande : psshutdown.exe –l
Fichier : Rien.
Commande : defrag c:\ –v –f
Partie XI
Partie I
Partie II
Partie III
Partie IV
Figure 145
Partie V
Partie VI
Partie VII
Partie VIII
Partie XI
Figure 146
Partie I
Partie II
Partie III
Partie IV
Figure 147
Partie V
Partie VI
Partie VII
Partie VIII
Partie I
Partie II
Partie III
Partie V
Partie VI
Partie VII
Partie VIII
Partie I
Partie II
Partie III
Partie V
Partie VI
Partie VII
Partie VIII
Partie I
Figure 153
Partie III
Partie IV
Partie V
Figure 154
Partie VI
Partie VII
Partie VIII
Partie XI
Figure 155
Partie VIII
Installation GLPI – Configuration Partie VIII
Partie III
Partie IV
Partie V
Partie VI
Partie VIII
Partie IX
Partie I
Partie II
Partie III
Figure 157
Partie V
Partie VI
Partie VII
Partie VIII
Figure 158
Cliquez sur : « Installation ».
Partie IX
Partie I
Partie II
Partie III
Partie V
Partie VI
Partie VII
Partie VIII
Figure 160
Partie IX
Partie III
Partie IV
Partie V
Partie VI
Figure 161
Ou
Partie IX
Partie I
Partie II
Partie III
Figure 162
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Figure 163 Partie IX
Partie I
Partie II
Partie III
Partie IV
Figure 164
Partie V
Dans le menu configuration il faut sélectionné « Configuration ».
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 165
12.4.1. Générale :
a) Onglet : « Configuration générale » :
Partie I
Partie II
Partie III
Partie IV
Figure 166
Partie V
b) Onglet : « Configuration Affichage » :
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 167
Partie I
Partie II
Partie III
Partie IV
Figure 168
Activer le mode « OCSNG ».
Partie V
Configuration du « Mode OCSNG » :
Partie VI
Partie VII
Partie VIII
Partie IX
Rappel : Mot de passe de l’utilisateur OCSWeb : « ocs », ne pas le tapez ici si non modifié.
Partie I
Partie II
Partie III
Partie IV
Figure 169
Partie VII
Partie VIII
Partie IX
Figure 170
Partie I
Partie II
Partie III
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 172
Partie VII
Partie VIII
Partie IX
Figure 173
Partie I
Partie II
Figure 174
Partie V
Partie VI
Partie VII
Partie VIII
Figure 175
Partie I
Partie II
Figure 176
Puis : « importer ».
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Figure 177
Partie IX
Définition d’une règle permettant de mettre les membres d’ « ADMINMOD » dans le profil
« admin » de GLPI automatiquement.
Partie I
Partie II
Partie III
Partie IV
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 179
Partie I
Partie II
Partie III
Partie IV
Figure 180
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 181
Partie I
Partie II
Partie III
Partie IV
Figure 182
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 183
Partie I
Partie II
Partie III
Partie IV
Figure 184
Partie V
Vérifier la présence d’admin1 dans le groupe « ADMINMOD » mais aussi sont appartenance au
groupe « ADMIN » de GLPI.
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 185
Partie I
Partie II
Partie III
Partie IV
Figure 186
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 187
Cocher :
Partie I
Partie II
Partie III
Figure 188
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Figure 189
Partie IX
Partie I
Partie II
Partie III
Partie IV
Figure 190
12.7. Notification :
Partie V
Configuration de ma notification GLPI.
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 191
Partie I
Partie II
Partie III
Partie IV
Figure 192
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Figure 193
Partie I
Partie II
Partie III
Partie IV
Figure 194
Partie V
Partie VI
Partie VII
Partie VIII
Partie IX
Partie IX
Installation GLPI – Plugin Partie IX
13. Plugins :
Parmi les nombreux plugins de GLPI j’ai testé et sélectionné les plugins suivants :
Partie VII
Partie VIII
Partie IX
Figure 195
Installation GLPI – Plugin – Configuration Partie IX
Partie I
Partie II
Partie III
Partie IV
Figure 196
Partie V
13.2.2. Modifier le fichier : « run.bat » :
Dans le répertoire :
« C:\Program Files\OCS Inventory NG\xampp\htdocs\glpi\plugins\mass_ocs_import\scripts »
Partie VI
Modifier le fichier : « Run.bat ».
@echo off
echo Chemins php et du script a lancer Partie VII
SET path_php="C:\OCSNG\xampp\php"
SET
plugin_glpi="C:\OCSNG\xampp\htdocs\glpi\plugins\mass_ocs_import\scri
pts"
Partie VIII
SET path_php="C:\Program Files\OCS Inventory NG\xampp\php"
SET plugin_glpi="C:\Program Files\OCS Inventory
NG\xampp\htdocs\glpi\plugins\mass_ocs_import\scripts"
:FIN
Partie I
Partie II
Partie IV
Partie V
Figure 198
Partie VII
Partie VIII
Partie XI
Figure 199
Partie I
Partie II
Partie III
Figure 200
Partie IV
Partie V
Partie VI
Partie VII
Partie VIII
Figure 201
Partie XI
Afin de désinstaller un plugin, vous devez vous placer sur l'entité racine. Partie VI
Partie VIII
Partie XI