Pages : 1
#1 Le 19/03/2014, à 11:42
- miminedu58
Problème télédéploiement ocsinventory
Bonjour,
Tout d'abord désolé si mon sujet est mal placé. Je vous explique et vous jugerez si c'est le cas ou non.
J'ai un problème avec ocsinventory.
Mon environnement est le suivant:
Je travaille sur mon pc portable sous widows7.
J'ai installé mon serveur ocsinventory sur une machine virtuel ubuntu sur mon pc portable.
J'ai installer les agent ocsinventory sur deux machines virtuelles, une windows xp et une windows 7 ainsi que sur mon serveur.
Aucun problème à l'installation d'ocs (ou alors je n'ai pas vu...) L'interface fonctionne parfaitement et je peux créer des paquets... et la remonter d'inventaire se passe très bien.
Mon problème vient avec putty. Je déploie le logiciel, j'ai un message me disant que les machines sont notifié, mais les machines ne reçoivent jamais le paquet.
SSL fonctionne parfaitement
J'ai créé un certificat pour passer en https comme ceci :
#root@srv-ca : ~# vi apache2_generate_cert.sh
(Dans le document créé j'ai mis ces informations )
#!/bin/sh
#
# En premier, generer le certificat requis
#
# Generer une clé RSA de 1024 bits, enregistrer la cle privee dans un
# fichier PEM de mot-de-passe non protege server.key, en utilisant
# le fichier de configuration par defaut d'openssl
#
echo
echo Generation de la cle privee du serveur Apache...
echo
openssl genrsa -out server.key 1024
#
# Maintenant, signez le certificat du serveur Apache avec
# la cle du serveur Apache
#
# Signez avec le certificat PEM server.crt,
# en utilisant le fichier PEM server.key pour cle privee du server,
# en utilisant le fichier de configuration par defaut d'openssl.
#
# Le certificat produit sera valide durant 1825 jours (soit 5 ans).
#
echo
echo Generation des certificats auto-signes du serveur Apache ...
echo
openssl req -outform PEM -new -key server.key -x509 -days 1825 -out server.crt
#root @srv-ca : ~#chmod 777 apache2_generate_cert.sh
#root @srv-ca : ~# sh apache2_generate_cert.sh
_L'inventaire se fait en http et en https.
Voici le fichier download :
==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Tuesday, March 18, 2014 14:17:09.
DOWNLOAD => Running OCS Inventory NG Download Version 2.0.5.0
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.0.5.0
DOWNLOAD => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:00:00.
==============================================================================
Starting OCS Inventory NG Package Download and Setup Tool on Tuesday, March 18, 2014 15:17:54.
DOWNLOAD => Running OCS Inventory NG Download Version 2.0.5.0
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.0.5.0
DOWNLOAD => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
DOWNLOAD => Starting new period of 10 cycles
DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
DOWNLOAD => Verifying package <C:\ProgramData\OCS Inventory NG\Agent\download\1395131571>
ERROR *** DOWNLOAD => Error loading metadata file <C:\ProgramData\OCS Inventory NG\Agent\download\1395131571\info>, removing package <1395131571>
DOWNLOAD => No package found, exiting
DOWNLOAD => Unloading communication provider
DOWNLOAD => Execution duration: 00:00:00.
En ligne
Voilà mon fichier de log :
==============================================================================
Starting OCS Inventory NG Agent on Tuesday, March 18, 2014 14:16:12.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C: \Program Files \OCS Inventory Agent \plugins>
DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\ Program Files\ OCS Inventory Agent\ ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <PCUSER-2014-03-12-15-47-20> and MACs <08:00:27:F5:90:C0> in file <ocsinventory.dat>
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending H T T P Post request to URL <h t t p://192.168.1.124:80/ocsinventory>
COM SERVER => H T T P Post response received <H T T P Status Code #200>
COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
<SUPPORT_LOG>No support registered for your installation. Check OCS Inventory NG support packages at h t t p hmm/w w w .ocsinventory-ng.com</SUPPORT_LOG>
<OPTION>
<NAME>IPDISCOVER</NAME>
<PARAM IPDISC_LAT="100">10.0.2.0</PARAM>
</OPTION>
<OPTION>
<NAME>DOWNLOAD</NAME>
<PARAM FRAG_LATENCY="10" PERIOD_LATENCY="1" TIMEOUT="30" ON="1" TYPE="CONF" CYCLE_LATENCY="60" PERIOD_LENGTH="10" />
<PARAM ID="1395043758" CERT_PATH="INSTALL_PATH" PACK_LOC="192.168.1.124/download" CERT_FILE="INSTALL_PATH/cacert.pem" TYPE="PACK" INFO_LOC="192.168.1.124/download" />
<PARAM ID="1395131571" CERT_PATH="INSTALL_PATH" PACK_LOC="192.168.1.124/download" CERT_FILE="INSTALL_PATH/cacert.pem" TYPE="PACK" INFO_LOC="192.168.1.124/download" />
</OPTION>
<RESPONSE>SEND</RESPONSE>
<PROLOG_FREQ>1</PROLOG_FREQ>
</REPLY>
================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support registered for your installation. Check OCS Inventory NG support packages at h t t p hmm /w w w.ocsinventory-ng.com
AGENT => Prolog Frequency set to 1 hour(s)
AGENT => Inventory required
AGENT => Launching hardware and software checks
INVENTORY => Loading Download history
INVENTORY => Adding Download Package <1394634266> to report
INVENTORY => Logged on user ID is <user>
INVENTORY => Operating System is <Microsoft Windows 7 Professionnel 6.1.7601 Service Pack 1>, description <>
INVENTORY => Operating System uses 32 bits memory address width
INVENTORY => Computer domain or workgroup is <WORKGROUP>
WARNING *** INVENTORY => Failed to retrieve user domain
INVENTORY => System Manufacturer <innotek GmbH>, System Model <VirtualBox>, System S/N <Oracle Corporation>, Bios Manufacturer <innotek GmbH>, Bios Date <12/01/2006>, Bios Version <VirtualBox>
INVENTORY => 1 processor(s) Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz [1 core(s) x86] at 2298 MHz
INVENTORY => OS Memory 512 MB, OS Swap size 1536 MB
WARNING *** INVENTORY => Failed to retrieve memory slots
INVENTORY => 3 input device(s) found
INVENTORY => 1 system port(s) found
WARNING *** INVENTORY => Failed to retrieve system slots
INVENTORY => 7 system controler(s) found
INVENTORY => 2 storage peripheral(s) found
INVENTORY => 1 sound device(s) found
WARNING *** INVENTORY => Failed to retrieve modems
INVENTORY => 1 network adapter(s) found
INVENTORY => 2 system printer(s) found
INVENTORY => 1 video adapter(s) found
INVENTORY => 1 system monitor(s) found
INVENTORY => Default IPv4 address is <10.0.2.15>
INVENTORY => Registered company <>, registered owner <user>, Product ID <00371-17...>
INVENTORY => Product key <HYF8J-CV...>
INVENTORY => 7 software found
INVENTORY => Computer/VM UUID is <B1C63F9E-CFB9-4952-8745-0BB9EA053917>
INVENTORY => Computer seems to be VirtualBox virtual host
INVENTORY => Reading last inventory state
AGENT => Communication Server ask for IpDiscover
IPDISCOVER => Scanning to detect IPv4 enabled hosts for network <10.0.2.0> with <100> ms between each request
IPDISCOVER => Computer found @IPv4:10.0.2.15 @MAC:08:00:27:F5:90:C0 NAME:PCuser
IPDISCOVER => Computer found @IPv4:10.0.2.2 @MAC:52:54:00:12:35:02 NAME:10.0.2.2
IPDISCOVER => Computer found @IPv4:10.0.2.3 @MAC:52:54:00:12:35:03 NAME:10.0.2.3
IPDISCOVER => Computer found @IPv4:10.0.2.4 @MAC:52:54:00:12:35:04 NAME:10.0.2.4
IPDISCOVER => Waited 3000 ms for the threads to die
IPDISCOVER => NETWORK scan finished, 4 hosts found, 255 scanned
EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\ Program Files\ OCS Inventory Agent\ plugins>
EXECUTABLE PLUGIN => Searching for executable(s) in folder <C:\ Program Files\ OCS Inventory Agent\ plugins>
AGENT => Sending Inventory
INVENTORY => Checking last inventory state
INVENTORY => Hardware inventory state changed
INVENTORY => Logical drives inventory state changed
INVENTORY => Inventory changed since last run
INVENTORY => Generating XML document with Device properties
INVENTORY => XML Update 0 Logical Drive(s)
INVENTORY => XML Update common Device properties
INVENTORY => XML Update BIOS
INVENTORY => XML Update 3 Input Device(s)
INVENTORY => XML Update 1 System Port(s)
INVENTORY => XML Update 7 System Controler(s)
INVENTORY => XML Update 0 System Slot(s)
INVENTORY => XML Update 1 Sound Device(s)
INVENTORY => XML Update 2 Storage Peripheral(s)
INVENTORY => XML Update 2 Logical Drive(s)
INVENTORY => XML Update 0 Modem(s)
INVENTORY => XML Update 1 Network Adapter(s)
INVENTORY => XML Update 1 Video Adapter(s)
INVENTORY => XML Update 1 Monitor(s)
INVENTORY => XML Update 2 Printer(s)
INVENTORY => XML Update 8 Software
INVENTORY => XML Update 0 Registry Value(s)
INVENTORY => XML Update Administrative Information(s)
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ ProgramData\ OCS Inventory NG\ Agent\ cacert.pem>
COM SERVER => Sending HTTP Post request to URL <h t t p://192.168.1.124:80/ocsinventory>
COM SERVER => HTTP Post response received <H T T P Status Code #200>
COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
<RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
================= TRACE STOP ===============
AGENT => Inventory successfully sent
INVENTORY => Writing new inventory state
AGENT => Communication Server ask for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Metadata file <info> for package <1395043758> is located at <h t t p s hmm/192.168.1.124/download/1395043758/info>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ ProgramData\ OCS Inventory NG\ Agent\ cacert.pem>
COM SERVER => Sending fileGet request to URL <h t t p s hmm/192.168.1.124/download/1395043758/info>
WARNING *** COM SERVER => Failed to send HTTP Get request <Problem with the SSL CA cert (path? access rights?)>
COM SERVER => Cleaning cURL library
ERROR *** DOWNLOAD => Failed to download Metadata file <h t t p s hmm/192.168.1.124/download/1395043758/info> to <C:\ ProgramData\ OCS Inventory NG\ Agent\ download\ 1395043758\ info>
DOWNLOAD => Metadata file <info> for package <1395131571> is located at <h t t p s hmm/192.168.1.124/download/1395131571/info>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <h t t p s hmm/192.168.1.124/download/1395131571/info>
WARNING *** COM SERVER => Failed to send HTTP Get request <Problem with the SSL CA cert (path? access rights?)>
COM SERVER => Cleaning cURL library
ERROR *** DOWNLOAD => Failed to download Metadata file <h t t p s hmm/192.168.1.124/download/1395131571/info> to <C:\ProgramData\OCS Inventory NG\Agent\download\1395131571\info>
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:56.
==============================================================================
Starting OCS Inventory NG Agent on Tuesday, March 18, 2014 15:17:11.
AGENT => Running OCS Inventory NG Agent Version 2.0.5.0
AGENT => Using OCS Inventory NG FrameWork Version 2.0.5.0
AGENT => Loading plug-in(s)
DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
COM PROVIDER => Loading Communication Provider <C:\Program Files\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.0.5.0>
AGENT => Sending Prolog
DID_CHECK => Read DeviceID <PCUSER-2014-03-12-15-47-20> and MACs <08:00:27:F5:90:C0> in file <ocsinventory.dat>
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending HTTP Post request to URL <h t t p hmm/192.168.1.124:80/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
<SUPPORT_LOG>No support registered for your installation. Check OCS Inventory NG support packages at h t t p hmm/w w w.ocsinventory-ng.com</SUPPORT_LOG>
<OPTION>
<NAME>IPDISCOVER</NAME>
<PARAM IPDISC_LAT="100">10.0.2.0</PARAM>
</OPTION>
<OPTION>
<NAME>DOWNLOAD</NAME>
<PARAM FRAG_LATENCY="10" PERIOD_LATENCY="1" TIMEOUT="30" ON="1" TYPE="CONF" CYCLE_LATENCY="60" PERIOD_LENGTH="10" />
<PARAM ID="1395043758" CERT_PATH="INSTALL_PATH" PACK_LOC="192.168.1.124/download" CERT_FILE="INSTALL_PATH/cacert.pem" TYPE="PACK" INFO_LOC="192.168.1.124/download" />
<PARAM ID="1395131571" CERT_PATH="INSTALL_PATH" PACK_LOC="192.168.1.124/download" CERT_FILE="INSTALL_PATH/cacert.pem" TYPE="PACK" INFO_LOC="192.168.1.124/download" />
</OPTION>
<RESPONSE>SEND</RESPONSE>
<PROLOG_FREQ>1</PROLOG_FREQ>
</REPLY>
================= TRACE STOP ===============
AGENT => Prolog successfully sent
SUPPORT => No support registered for your installation. Check OCS Inventory NG support packages at h t t p hmm/w w w.ocsinventory-ng.com
AGENT => Prolog Frequency set to 1 hour(s)
AGENT => Inventory required
AGENT => Launching hardware and software checks
INVENTORY => Loading Download history
INVENTORY => Adding Download Package <1394634266> to report
INVENTORY => Logged on user ID is <user>
INVENTORY => Operating System is <Microsoft Windows 7 Professionnel 6.1.7601 Service Pack 1>, description <>
INVENTORY => Operating System uses 32 bits memory address width
INVENTORY => Computer domain or workgroup is <WORKGROUP>
WARNING *** INVENTORY => Failed to retrieve user domain
INVENTORY => System Manufacturer <innotek GmbH>, System Model <VirtualBox>, System S/N <Oracle Corporation>, Bios Manufacturer <innotek GmbH>, Bios Date <12/01/2006>, Bios Version <VirtualBox>
INVENTORY => 1 processor(s) Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz [1 core(s) x86] at 2298 MHz
INVENTORY => OS Memory 512 MB, OS Swap size 1536 MB
WARNING *** INVENTORY => Failed to retrieve memory slots
INVENTORY => 3 input device(s) found
INVENTORY => 1 system port(s) found
WARNING *** INVENTORY => Failed to retrieve system slots
INVENTORY => 7 system controler(s) found
INVENTORY => 2 storage peripheral(s) found
INVENTORY => 1 sound device(s) found
WARNING *** INVENTORY => Failed to retrieve modems
INVENTORY => 1 network adapter(s) found
INVENTORY => 2 system printer(s) found
INVENTORY => 1 video adapter(s) found
INVENTORY => 1 system monitor(s) found
INVENTORY => Default IPv4 address is <10.0.2.15>
INVENTORY => Registered company <>, registered owner <user>, Product ID <00371-17...>
INVENTORY => Product key <HYF8J-CV...>
INVENTORY => 7 software found
INVENTORY => Computer/VM UUID is <B1C63F9E-CFB9-4952-8745-0BB9EA053917>
INVENTORY => Computer seems to be VirtualBox virtual host
INVENTORY => Reading last inventory state
AGENT => Communication Server ask for IpDiscover
IPDISCOVER => Scanning to detect IPv4 enabled hosts for network <10.0.2.0> with <100> ms between each request
IPDISCOVER => Computer found @IPv4:10.0.2.15 @MAC:08:00:27:F5:90:C0 NAME:PCuser
IPDISCOVER => Computer found @IPv4:10.0.2.2 @MAC:52:54:00:12:35:02 NAME:10.0.2.2
IPDISCOVER => Computer found @IPv4:10.0.2.3 @MAC:52:54:00:12:35:03 NAME:10.0.2.3
IPDISCOVER => Computer found @IPv4:10.0.2.4 @MAC:52:54:00:12:35:04 NAME:10.0.2.4
IPDISCOVER => Waited 3000 ms for the threads to die
IPDISCOVER => NETWORK scan finished, 4 hosts found, 255 scanned
EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
EXECUTABLE PLUGIN => Searching for executable(s) in folder <C:\Program Files\OCS Inventory Agent\plugins>
AGENT => Sending Inventory
INVENTORY => Checking last inventory state
INVENTORY => Logical drives inventory state changed
INVENTORY => Inventory changed since last run
INVENTORY => Generating XML document with Device properties
INVENTORY => XML Update 0 Logical Drive(s)
INVENTORY => XML Update common Device properties
INVENTORY => XML Update BIOS
INVENTORY => XML Update 3 Input Device(s)
INVENTORY => XML Update 1 System Port(s)
INVENTORY => XML Update 7 System Controler(s)
INVENTORY => XML Update 0 System Slot(s)
INVENTORY => XML Update 1 Sound Device(s)
INVENTORY => XML Update 2 Storage Peripheral(s)
INVENTORY => XML Update 2 Logical Drive(s)
INVENTORY => XML Update 0 Modem(s)
INVENTORY => XML Update 1 Network Adapter(s)
INVENTORY => XML Update 1 Video Adapter(s)
INVENTORY => XML Update 1 Monitor(s)
INVENTORY => XML Update 2 Printer(s)
INVENTORY => XML Update 8 Software
INVENTORY => XML Update 0 Registry Value(s)
INVENTORY => XML Update Administrative Information(s)
COM SERVER => Initializing cURL library for sendRequest
COM SERVER => Using cURL without server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending HTTP Post request to URL <h t t p hmm/192.168.1.124:80/ocsinventory>
COM SERVER => HTTP Post response received <HTTP Status Code #200>
COM SERVER => Cleaning cURL library
================= TRACE START ===============
<?xml version='1.0' encoding='UTF-8'?>
<REPLY>
<RESPONSE>NO_ACCOUNT_UPDATE</RESPONSE>
</REPLY>
================= TRACE STOP ===============
AGENT => Inventory successfully sent
INVENTORY => Writing new inventory state
AGENT => Communication Server ask for Package Download
DOWNLOAD => Package history file successfully cleaned for duplicate IDs
DOWNLOAD => Metadata file <info> for package <1395043758> is located at <h t t p s://192.168.1.124/download/1395043758/info>
COM SERVER => Initializing cURL library for getFile
COM SERVER => Using cURL with server authentication
COM SERVER => Disabling cURL proxy support
COM SERVER => Enabling cURL SSL server validation support using CA Bundle <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
COM SERVER => Sending fileGet request to URL <h t t p s hmm/192.168.1.124/download/1395043758/info>
WARNING *** COM SERVER => Failed to send HTTP Get request <Problem with the SSL CA cert (path? access rights?)>
COM SERVER => Cleaning cURL library
ERROR *** DOWNLOAD => Failed to download Metadata file <h t t p s://192.168.1.124/download/1395043758/info> to <C:\ProgramData\OCS Inventory NG\Agent\download\1395043758\info>
DOWNLOAD => Package <1395131571> already in download queue, keeping on package
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:42.
Quelles modifications dois je faire sur mon serveur pour que les télédéploiement se fassent avec succès?
Merci d'avance pour votre temps et désolé pour ce roman.
Hors ligne
Pages : 1