You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-01-24 15:25:59

abelia
Member
Registered: 2008-01-04
Posts: 86

Gros souci d'inventaire.

Bonjour,

je ne comprends plus rien, j'ai fais un script pour déployer l'agent sur toutes les machines du réseau :

@echo off
REM On install l'agent si il n'existe pas
REM *************************************

IF NOT EXIST "C:\Program Files\OCS Inventory Agent\OCSInventory.exe" \\serveur\OcsAgentSetup.exe /S /SERVER:IP_DU_SERVEUR /NP /DEBUG
IF EXIST "C:\Program Files\OCS Inventory Agent\OCSInventory.exe" "C:\Program Files\OCS Inventory Agent\OCSInventory.exe" /FORCE /SERVER:IP_DU_SERVEUR /DEBUG /NP

REM lance l'inventaire

"C:\Program Files\OCS Inventory Agent\OCSInventory.exe" /server:192.168.1.54 /DEPLOY:4026 /NP

Elle remonte une fois, mais après j'ai plus rien ..

Je ne vois vraiement plus quoi faire je test depuis des heures j'espère que vosu saurez me répondre.

Merci de votre aide.

Offline

#2 2008-01-24 15:29:27

tiju17
Member
Registered: 2008-01-09
Posts: 34

Re: Gros souci d'inventaire.

La remontée ce parametre dans ocs je crois non ? ( exemple tous les 24h )

et non pas une remontée au lancement de ton script


-----------------------------
*Alpiniste du mont GLPI*
-----------------------------

Offline

#3 2008-01-24 15:33:29

abelia
Member
Registered: 2008-01-04
Posts: 86

Re: Gros souci d'inventaire.

L'option PROLOG_FREQ dans les paramètres d'ocs est à 0.

Egalement OCS / GLPI 0.68.3 sont installer sous Linux (Ubuntu)

Offline

#4 2008-01-24 17:57:05

chacawaca
Member
From: Québec
Registered: 2005-07-11
Posts: 513

Re: Gros souci d'inventaire.

tu install l'agent en service, pourquoi tu veux le partir manuellement apres ?

1 - tu install l'agent en service
2 - le premier inventaire prend 10h a ce faire si je ne me trompe pas
3 - une fois le premier inventaire fait l'agent prend la valeur du prolog_freq que tu peux mettre a 1h si tu veux un inventaire a toutes les heures.

bref une fois le service installer, aucune raison de le repartir manuellement a toutes les fois que tu te log.

P.S. poster dans la bonne section du forum et/ou sur le bon forum, ceci n'a pas rapport avec l'utilisation de glpi mais bien avec le déploiement de ocs. merci

Last edited by chacawaca (2008-01-24 17:57:37)

Offline

#5 2008-01-25 10:14:09

abelia
Member
Registered: 2008-01-04
Posts: 86

Re: Gros souci d'inventaire.

Dsl pour l'avoir poster ici mais merci de ta réponse, voici le log d'un des clients quand j'exécute le script suivant :

IF NOT EXIST "C:\Program Files\OCS Inventory Agent\OCSInventory.exe" \\192.168.1.99\ocs\OcsAgentSetup.exe /S /SERVER:192.168.1.54 /NP /DEBUG
IF EXIST "C:\Program Files\OCS Inventory Agent\OCSInventory.exe" /SERVER:192.168.1.54 /DEBUG:4026 /NP

"C:\Program Files\OCS Inventory Agent\OCSInventory.exe" /server:192.168.1.54 /DEPLOY:4026 /NP

-------------------------------------------

Voici le log : machine.log


OCS INVENTORY ver. 4032  Starting session for Device <DAVID> on Thursday, January 24, 2008 13:20:06...
Command line parameters: <</FORCE /SERVER:192.168.1.54 /DEBUG /NP>>

HTTP SERVER: Connection WITHOUT proxy
WMI Connect: Trying to connect to WMI namespace root\cimv2 on device <Localhost>...OK.
Registry Connect: Trying to connect to HKEY_LOCAL_MACHINE on device <Localhost>...OK.
SetupAPI Connect: Trying to connect to SetupAPI on device <Localhost>...OK.
CHECKINGS: read <DAVID-2008-01-22-09-29-04> and <00:0C:29:2C:A9:37> in ocsinventory.dat
IpHlpAPI GetNetworkAdapters...
IpHlpAPI GetNetworkAdapters: Calling GetIfTable to determine network adapter properties...OK
IpHlpAPI GetNetworkAdapters: Calling GetAdapterInfo to determine IP Infos...OK
IpHlpAPI GetNetworkAdapters: OK (1 objects).
CHECKINGS: write <DAVID-2008-01-22-09-29-04> and <00:0C:29:2C:A9:37> in ocsinventory.dat
HTTP SERVER: Creating CInternetSession to get inventory parameters...OK.
HTTP SERVER: Getting HTTP Connection to server 192.168.1.54 port 80 using no authentication...OK.
HTTP SERVER: Sending prolog query...Http code (200)...OK
OK.
HTTP SERVER: Receiving prolog response...OK.
DOWNLOAD: Working directory already exists
ERROR: Won't change PROLOG_FREQ to 0
HTTP SERVER: INV : Inventory requested by server
HTTP SERVER: Closing HTTP connection
INVENTORY forced by /force option
Retrieving Device informations...
getUserName: Trying to get logged on User ID...
getUserName: Will using Process32...OK
User found (explorer): dagoub.
WMI GetOS: Trying to find Win32_OperatingSystem WMI objects...OK (Microsoft Windows XP Professional 5.1.2600 Service Pack 2 1 ).
WMI GetDomainOrWorkgroup: Trying to find Win32_ComputerSystem WMI objects...OK (i-nova.fr)
Registry NT GetDomainOrWorkgroup...OK (I-NOVA).
WMI GetBiosInfo: Trying to find Win32_ComputerSystem WMI objects...OK (VMware, Inc. VMware Virtual Platform)
WMI GetBiosInfo: Trying to find Win32_SystemEnclosure WMI objects...OK (VMware, Inc. VMware Virtual Platform None 1)
WMI GetBiosInfo: Trying to find Win32_Bios WMI objects...OK (Phoenix Technologies LTD N/A VMware-56 4d 7e 3b b8 f7 75 df-d1 ed 78 2d 52 2c a9 37)
WMI GetProcessors: Trying to find Win32_Processor WMI objects...AMD Turion(tm) 64 X2 Mobile Technology TL-50 1599 (x86 Family 15 Model 72 Stepping 2). OK
WMI GetProcessors: 1 processor(s) found.
getMemory...Physical: 268550144 bytes, Swap: 647262208 bytes. OK
WMI GetMemorySlots: Trying to find Win32_PhysicalMemory WMI objects...OK (1 objects)
WMI GetMemorySlots: Trying to find Win32_PhysicalMemoryArray WMI objects...OK (4 objects updated)
WMI GetInputDevices: Trying to find Win32_Keyboard WMI objects...OK (1 objects)
WMI GetInputDevices: Trying to find Win32_PointingDevice WMI objects...OK (1 objects)
WMI GetInputDevices: OK
WMI GetSystemPorts: Trying to find Win32_SerialPort WMI objects...OK (2 objects)
WMI GetSystemPorts: Trying to find Win32_ParallelPort WMI objects...OK (1 objects)
WMI GetSystemPorts: OK
WMI GetSystemSlots: Trying to find Win32_SystemSlot WMI objects...OK (7 objects)
WMI GetSystemControllers: Trying to find Win32_FloppyController WMI objects...OK (1 objects)
WMI GetSystemControllers: Trying to find Win32_IDEController WMI objects...OK (3 objects)
WMI GetSystemControllers: Trying to find Win32_SCSIController WMI objects...OK (1 objects)
WMI GetSystemControllers: Trying to find Win32_InfraredDevice WMI objects...Failed because no Win32_InfraredDevice object !
WMI GetSystemControllers: Trying to find Win32_USBController WMI objects...OK (2 objects)
WMI GetSystemControllers: Trying to find Win32_1394Controller WMI objects...Failed because no Win32_1394Controller object !
WMI GetSystemControllers: Trying to find Win32_PCMCIAController WMI objects...Failed because no Win32_PCMCIAController object !
WMI GetSystemControllers: OK
WMI GetStoragePeripherals: Trying to find Win32_FloppyDrive WMI objects...OK (1 objects)
WMI GetStoragePeripherals: Trying to find Win32_DiskDrive WMI objects...OK (1 objects)
WMI GetStoragePeripherals: Trying to find Win32_CDROMDrive WMI objects...OK (1 objects)
WMI GetStoragePeripherals: Trying to find Win32_TapeDrive WMI objects...Failed because no Win32_TapeDrive object !
WMI GetStoragePeripherals: OK
WMI GetSoundDevices: Trying to find Win32_SoundDevice WMI objects...OK (1 objects)
WMI GetModems: Trying to find Win32_POTSModem WMI objects...Failed because no Win32_POTSModem object !
Registry NT GetModems...
Registry NT GetModems: Failed in call to <RegEnumKeyEx> function to find subkey of HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E96D-E325-11CE-BFC1-08002BE10318}.
IpHlpAPI GetNetworkAdapters...
IpHlpAPI GetNetworkAdapters: Calling GetIfTable to determine network adapter properties...OK
IpHlpAPI GetNetworkAdapters: Calling GetAdapterInfo to determine IP Infos...OK
IpHlpAPI GetNetworkAdapters: OK (1 objects).
WMI GetPrinters: Trying to find Win32_Printer WMI objects...OK (1 objects)
WMI GetVideoAdapters: Trying to find Win32_VideoController WMI objects...OK (1 objects)
SetupAPI: Enumerating DISPLAY devices...
    SetupAPI: SetupDiGetClassDevs DISPLAY failed with error 13.
SetupAPI: Enumerates DISPLAY devices finished (0 objects)...
SetupAPI: Enumerating MONITOR devices...
    SetupAPI: SetupDiGetClassDevs MONITOR failed with error 13.
SetupAPI: Enumerates MONITOR devices finished (0 objects)...
WMI GetMonitors: Trying to find Win32_DesktopMonitor WMI objects...OK (1 objects)
WSA GetIPAddress...OK (192.168.1.26)
WMI GetWindowsRegistration: Trying to find Win32_OperatingSystem WMI objects...OK ( David 55274-640-4899624-23614).
Registry GetWindowsProductKey...OK (DP3FB-YGY23-Q3T9R-8PV7G-4BCY6).
Registry NT GetRegistryApplications READING hive HKLM  ...
Registry NT GetRegistryApplications: OK (32 objects).
Creating CXMLInteract object...OK
Trying to open database on folder <C:\Program Files\OCS Inventory Agent\> with XML...OK.
Scanning Device's Logical Drive(s) for informations and softwares...
    Getting Logical Drive <A:\> properties...OK
    Getting Logical Drive <C:\> properties...OK
    Getting Logical Drive <D:\> properties...OK
Reading last inventory state file...
    XML Read last inventory state from file <C:\Program Files\OCS Inventory Agent\last_state>...Unable to open file !
Checking last inventory state...
    Hardware inventory state changed.
    Bios inventory state changed.
    Memory slots inventory state changed.
    System slots inventory state changed.
    Registry inventory state changed.
    System controllers inventory state changed.
    Monitors inventory state changed.
    System ports inventory state changed.
    Storage peripherals inventory state changed.
    Logical drives inventory state changed.
    Input peripherals inventory state changed.
    Modems inventory state changed.
    Network adapters inventory state changed.
    Printers inventory state changed.
    Sound adapters inventory state changed.
    Video adapters inventory state changed.
    Software inventory state changed.
    Inventory changed since last run.
IPDISCOVER: function not required by HTTP server...
XML Update Device properties...
    XML Update Memory Slots: OK (4 objects).
MEM: Set to 256 (instead of 256)
    XML Update Logical Drives...
    XML Update Logical Drives: OK (3 objects).
    XML Update Input Devices...
    XML Update Input Devices: OK (2 objects).
    XML Update Modems: OK (0 objects).
    XML Update Monitors: OK. (1 objects).
    XML Update Network Adapters: OK (1 objects).
    XML Update System Ports: OK (3 objects).
    XML Update Printers...
    XML Update Printers: OK (1 objects).
    XML Update Registry Values...
    XML Update Registry Values: OK (0 objects).
    XML Update Softwares...
    XML Update Softwares: OK (33 objects).
    XML Update Sound Devices...
    XML Update Sound Devices: OK (1 objects).
    XML Update Storage Peripherals...
    XML Update Storage Peripherals: OK (3 objects).
    XML Update System Controllers...
    XML Update System Controllers: OK (7 objects).
    XML Update System Slots...
    XML Update System Slots: OK (7 objects).
    XML Update Video Adapters...
    XML Update Video Adapters: OK (1 objects).
XML Update Device properties: OK.
WMI Disconnect: Disconnected from WMI namespace.
SetupAPI Disconnect: Disconnected from SetupAPI.
HTTP SERVER: Creating CInternetSession to send inventory results...OK.
HTTP SERVER: Getting HTTP Connection to server 192.168.1.54 port 80 using no authentication...OK
HTTP SERVER: INV : SEND received, sending inventory...Http code (200)...OK
OK.
HTTP SERVER: INV : no account info update
HTTP SERVER: UPD : Sending update query...Http code (200)...OK
OK.
HTTP SERVER: UPD : Receiving update response...OK.
HTTP SERVER: Closing HTTP connection....OK.
DOWNLOAD: Download is off
Writing last inventory state file...
    XML Write new inventory state to file <C:\Program Files\OCS Inventory Agent\last_state>...OK
Execution duration: 00:00:06.

____________________________________

Apparemment il arrive pas à refaire le download et c'est pour ça que ça bloque ..

Merci d'avance de votre aide.

Offline

#6 2008-01-25 13:00:08

EmpereurZorg
Member
From: ORLEANS
Registered: 2005-12-31
Posts: 604

Re: Gros souci d'inventaire.

ERROR: Won't change PROLOG_FREQ to 0

Sachant que PROLOG_FREQ est la préiode entre 2 scans, le mettre à 0 ne me parait pas très judicieux, à moins que ce soit fait en toute connaissance de chose ?!


Version GLPI : 10.0.6 + Plug'in Glpi + Agent Fusion 2.4
Plateforme : Win Server 2019 , Apache 2.4, PHP 8.1

Offline

#7 2008-01-25 13:17:20

abelia
Member
Registered: 2008-01-04
Posts: 86

Re: Gros souci d'inventaire.

Je voulais que ça soit immédiat alors je l'ai mis à 0 mais je l'ai remis à 1 ce matin.

Offline

#8 2008-01-25 14:39:06

EmpereurZorg
Member
From: ORLEANS
Registered: 2005-12-31
Posts: 604

Re: Gros souci d'inventaire.

Pour que ce soit immédiat il faut modifier le paramètre TTO_Wait du fichier service.ini comme indiqué dans quelques posts ici même et sur le forum d'OCS ; mettre le prologu_freq à 1 va faire scanner chaque PC toutes les heures, ça devrait donc marcher mais c'est inutile...


Version GLPI : 10.0.6 + Plug'in Glpi + Agent Fusion 2.4
Plateforme : Win Server 2019 , Apache 2.4, PHP 8.1

Offline

#9 2008-01-25 15:47:40

abelia
Member
Registered: 2008-01-04
Posts: 86

Re: Gros souci d'inventaire.

oui c'est vrai mais c'est juste pour les tests !

Offline

Board footer

Powered by FluxBB