Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.8 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Problem with the inventory

Hi,

I have shared a folder containing ocs.bat, ocslogon and ocspackage.exe

This folder has been created in Windows server 2008 R2

I am trying to deploy the OCS agent in a Windows XP Professional via ocspackage and ocs.bat

ocs.bat has these commands: \\myserver\OCS_script\OcsLogon.exe /PACKAGER /DEPLOY=2.1.1.1 /SERVER=https://myserver/ocsinventory

This is the ocspackage.log file of Windows server 2008 R2 hosting theOCS server :

OCS Inventory NG Packager (All-In-One Agent Installer) : ********************************************************
OCS Inventory NG Packager (All-In-One Agent Installer) : Starting OCS Inventory NG Packager (All-In-One Agent Installer) on 28/07/2014 at 16:09:14
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing <OCS-NG-Windows-Agent-Setup.exe> version <2.1.1.1>
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing from <C:\Users\meynard\AppData\Local\Temp\nsc30DD.tmp>\
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting privilegied installer
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent setup file
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent configuration files
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent plugin files
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing Agent to folder <C:\Program Files (x86)\OCS Inventory Agent>
OCS Inventory NG Packager (All-In-One Agent Installer) : Configuring Agent from folder <C:\ProgramData\OCS Inventory NG\Agent>
OCS Inventory NG Packager (All-In-One Agent Installer) : Loging privilegied installer to <C:\Users\my_lastname\AppData\Local\Temp\ocspackage.log>
OCS Inventory NG Packager (All-In-One Agent Installer) : Current user has Administrator privileges
OCS Inventory NG Packager (All-In-One Agent Installer) : Launching Privilegied Installer directly...
OCS Inventory NG Packager (Privilegied Installer) : ********************************************************
OCS Inventory NG Packager (Privilegied Installer) : Starting OCS Inventory NG Packager (Privilegied Installer) 2.1.0.1 on 28/07/2014 at 16:09:15
OCS Inventory NG Packager (Privilegied Installer) : Creating OCS Inventort NG Agent install directory <C:\Program Files (x86)\OCS Inventory Agent>...
OCS Inventory NG Packager (Privilegied Installer) : Creating OCS Inventort NG Agent Plugins directory <C:\Program Files (x86)\OCS Inventory Agent\Plugins>...
OCS Inventory NG Packager (Privilegied Installer) : Creating OCS Inventort NG Agent data directory <C:\ProgramData\OCS Inventory NG\Agent>...
OCS Inventory NG Packager (Privilegied Installer) : Installing OCS Inventort NG Agent data files to <C:\ProgramData\OCS Inventory NG\Agent>...
OCS Inventory NG Packager (Privilegied Installer) : Installing OCS Inventort NG Agent plugin files to <C:\Program Files (x86)\OCS Inventory Agent\Plugins>...
OCS Inventory NG Packager (Privilegied Installer): Lauching OCS Inventory NG Agent Setup...
OCS Inventory NG Packager (Privilegied Installer) : ============== Start of OCS Inventory NG Agent setup log =============
********************************************************
Starting OCS Inventory NG Agent 2.1.1.1 setup on 28/07/2014 at 16:09:15
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "C:\Users\my_lastname\AppData\Local\Temp\nsc30DD.tmp\OcsSetup.exe"  /SERVER=https://myserver/ocsinventory /S /DEBUG=2
Parsing command line arguments...OK.
Checking for silent mode...Enabled.
Checking for splash screen...Enabled.
Checking if logged in user has Administrator privileges...OK.
Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...
SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error
SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error
Trying to determine if service was previously installed...Yes.
Trying to stop service and kill processes...
Is Service <OCS Inventory Service> running...Yes.
Trying to stop Service <OCS Inventory Service>...Ok
Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 603
Trying to kill process OcsService.exe...Result: 603
Trying to kill process OCSInventory.exe...Result: 603
Trying to kill process download.exe...Result: 603
Trying to kill process inst32.exe...Result: 603
Waiting 10 seconds for processes to terminate...
Copying new files to directory <C:\Program Files (x86)\OCS Inventory Agent>...
Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...
 ERROR copying libeay32.dll
 ERROR copying msvcp90.dll
 ERROR copying msvcr90.dll
 ERROR copying mfc90u.dll
 ERROR copying zlib1.dll
 ERROR copying OcsWmi.dll
 ERROR copying SysInfo.dll
 ERROR copying OCSInventory Front.dll
 ERROR copying OcsSystray.exe
Copying new files status is :(
Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 0
Windows Advanced Firewall is not available (Vista or higher). Skip adding custom rules.
Creating startup menu shortCut <C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...
Checking if service OCS Inventory Service is registered into Windows Service Manager...Yes
Nothing to do to register OCS Inventory Service into Windows Service Manager.
Starting OCS Inventory Service...Ok.
ERROR: OCS Inventory NG Agent 2.1.1.1 may not work correctly since 28/07/2014 at 16:10:06
:(
 OCS Inventory NG Packager (Privilegied Installer) : ============== End of OCS Inventory NG Agent setup log =============
OCS Inventory NG Packager (Privilegied Installer) : successfull end of OCS Inventory NG Packager (Privilegied Installer) on 28/07/2014 at 16:10:06
OCS Inventory NG Packager (All-In-One Agent Installer) : Successfull end of OCS Inventory NG Packager (All-In-One Agent Installer) on 28/07/2014 at 16:10:06

What steps I have probably missed?

Thanks and cheers

Rony

in OCS Inventory NG agent for Windows by (280 points)
edited by

1 Answer

–1 vote

I would like to specify I am administrator in Windows Server 2008 R2

Also this is the ocspackage.log file of Windows XP Professionnal that is used as test machine:

OCS Inventory NG Packager (All-In-One Agent Installer) : ********************************************************
OCS Inventory NG Packager (All-In-One Agent Installer) : Starting OCS Inventory NG Packager (All-In-One Agent Installer) on 30/06/2014 at 14:10:37
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing <OCS-NG-Windows-Agent-Setup.exe> version <2.1.1.1>
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing from <C:\Users\meynard\AppData\Local\Temp\nsy8BE5.tmp>\
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting privilegied installer
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent setup file
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent configuration files
OCS Inventory NG Packager (All-In-One Agent Installer) : Extracting Agent plugin files
OCS Inventory NG Packager (All-In-One Agent Installer) : Installing Agent to folder <C:\Program Files (x86)\OCS Inventory Agent>
OCS Inventory NG Packager (All-In-One Agent Installer) : Configuring Agent from folder <C:\ProgramData\OCS Inventory NG\Agent>
OCS Inventory NG Packager (All-In-One Agent Installer) : Loging privilegied installer to <C:\Users\my_lastname\AppData\Local\Temp\ocspackage.log>
OCS Inventory NG Packager (All-In-One Agent Installer) : Current user has Administrator privileges
OCS Inventory NG Packager (All-In-One Agent Installer) : Launching Privilegied Installer directly...
OCS Inventory NG Packager (Privilegied Installer) : ********************************************************
OCS Inventory NG Packager (Privilegied Installer) : Starting OCS Inventory NG Packager (Privilegied Installer) 2.1.0.1 on 30/06/2014 at 14:10:41
OCS Inventory NG Packager (Privilegied Installer) : Creating OCS Inventort NG Agent install directory <C:\Program Files (x86)\OCS Inventory Agent>...
OCS Inventory NG Packager (Privilegied Installer) : Creating OCS Inventort NG Agent Plugins directory <C:\Program Files (x86)\OCS Inventory Agent\Plugins>...
OCS Inventory NG Packager (Privilegied Installer) : Creating OCS Inventort NG Agent data directory <C:\ProgramData\OCS Inventory NG\Agent>...
OCS Inventory NG Packager (Privilegied Installer) : Installing OCS Inventort NG Agent data files to <C:\ProgramData\OCS Inventory NG\Agent>...
OCS Inventory NG Packager (Privilegied Installer) : Installing OCS Inventort NG Agent plugin files to <C:\Program Files (x86)\OCS Inventory Agent\Plugins>...
OCS Inventory NG Packager (Privilegied Installer): Lauching OCS Inventory NG Agent Setup...
OCS Inventory NG Packager (Privilegied Installer) : ============== Start of OCS Inventory NG Agent setup log =============
********************************************************
Starting OCS Inventory NG Agent 2.1.1.1 setup on 30/06/2014 at 14:10:41
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "C:\Users\meynard\AppData\Local\Temp\nsy8BE5.tmp\OcsSetup.exe" /server=http://myserver/ocsinventory /force /debug /tag="youpi"
Parsing command line arguments...OK.
Checking for silent mode...Disabled.
Checking for splash screen...Enabled.
Checking if logged in user has Administrator privileges...OK.
Creating directory <C:\ProgramData\OCS Inventory NG\Agent>...
SetACL allowing Users / Power users read/write permissions on <C:\ProgramData\OCS Inventory NG\Agent>...Result: error
SetACL propagating inherited permissions on <C:\ProgramData\OCS Inventory NG\Agent\Download>...Result: error
Trying to determine if service was previously installed...Yes.
Trying to stop service and kill processes...
Is Service <OCS Inventory Service> running...Yes.
Trying to stop Service <OCS Inventory Service>...Ok
Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 603
Trying to kill process OcsService.exe...Result: 603
Trying to kill process OCSInventory.exe...Result: 603
Trying to kill process download.exe...Result: 603
Trying to kill process inst32.exe...Result: 603
Waiting 10 seconds for processes to terminate...
Copying new files to directory <C:\Program Files (x86)\OCS Inventory Agent>...
Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...
Copying new files status is ;-)
Writing TAG <youpi> into <C:\ProgramData\OCS Inventory NG\Agent\admininfo.conf> file...
Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 0
Windows Advanced Firewall is enabled...
[/NOW] used, so launching "C:\Program Files (x86)\OCS Inventory Agent\ocsinventory.exe"...Result: 0
Creating startup menu shortCut <C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...
Checking if service OCS Inventory Service is registered into Windows Service Manager...Yes
Nothing to do to register OCS Inventory Service into Windows Service Manager.
Starting OCS Inventory Service...Ok.
SUCCESS: OCS Inventory NG Agent 2.1.1.1 successfuly installed on 30/06/2014 at 14:12:21
;-)
OCS Inventory NG Packager (Privilegied Installer) : ============== End of OCS Inventory NG Agent setup log =============
OCS Inventory NG Packager (Privilegied Installer) : successfull end of OCS Inventory NG Packager (Privilegied Installer) on 30/06/2014 at 14:12:21
OCS Inventory NG Packager (All-In-One Agent Installer) : Successfull end of OCS Inventory NG Packager (All-In-One Agent Installer) on 30/06/2014 at 14:12:21

Kind regards

Rony

by (280 points)
edited by
 
Powered by Question2Answer
...