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-10-31 12:40:15

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

I'm having trouble to setup the Sync modus with OCS : OCSNG

This is what a did, Step By Step:

1) Setup -> OCSNG Mode
1.1) Add link to up and running ocs database
1.2) Devices/Monitors/Printers/Software --> Unit Import
1.3) Number of computers to synchronize using the cron : 100
1.4) Automatic connection of machines --> Activate the automatic link : Yes

2) Tools -> OCSNG
2.1) Import new computers

3) Inventory -> Machines
Contains all machines in OCS , so this works

4) Inventory -> Software
Is empty ?

Is there a manual available for 'auto' syncronisation with OCS?

Last but not least the GLPI interface is one of the best i've tried ..

Thx

Offline

#2 2008-10-31 12:41:54

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

use dictionnary software -> no, then force synchronisation on your computers
you should use mass_ocs_import plugin to synchronize/import computers from ocs

Offline

#3 2008-11-03 10:25:52

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

Hi Wawa, that did the trick for getting my software imported.

I've installed the 'OCS massive import plugin' with following config:
Enable logging : Yes
Display informations if nothing was done : Yes
Update informations every : 5 Machines
Delete processes after : 24 hours
Effacer les processus vides après : 0 hours (don't now what this is?)
Number of seconds between to rereshs of the process page (0 means no refresh) : 0 seconds
Machine number of machines to process by thread (0 means no limit) : 0
Warn if not imported machines : Yes
Default OCS server : MyServerName
Number of machines : 5

Control the OCS import script : Synchronization locked.


Now my OCS logged inventory doesn't show up in GLPI ...

Any ideas what could be wrong?

Offline

#4 2008-11-03 10:37:19

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

ocs import script should be unlocked
then you must lauch ocsng_fullsync.sh script

Offline

#5 2008-11-03 11:10:34

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

Hi Wawa,

I'm running a windows server, is there an alternative?

Rgds,

Offline

#6 2008-11-03 11:15:00

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

sad
you can use run.bat on windows...

Offline

#7 2008-11-04 13:01:25

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

Hi wawa,

When i use run.bat (modified to my enviroment) , i get following error:

Chemins php et du script a lancer
Definition du path
Lancement du script
Software lock : script can't run !

Offline

#8 2008-11-04 13:04:46

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

homebunny wrote:

Software lock : script can't run !

You should enable the sync (remove the lock) from the plugin interface.

++


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#9 2008-11-04 13:13:08

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

Hi Remi,

Had already done that, like wawa suggested:

Configuration of OCS massive import plugin:
Control the OCS import script
Synchronization unlocked

Offline

#10 2008-11-04 13:20:37

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

Aha, remove the lock = Control the OCS import script Set to 'Synchronization locked '

Tried, i don't have any other errors, but still nothing happens, 'Informations about scripts exectution' is empty ...

Offline

#11 2008-11-05 11:02:19

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

I've removed the GLPI database.
Reinstalled GLPI, with OCS Sync, as described here: http://blog.famillecollet.com/pages/OCS-GLPI-en

I run the script '....\mass_ocs_import\scripts\run.bat
Output:
Chemins php et du script a lancer
Definition du path
Lancement du script


In GLPI, Plugins, OCS Massive import :
Informations about scripts exectution / Not imported computer list ==> Are both Empty.


Could it be that the OCS Sync doesn't work in a Windows enviroment?

Thx,

Offline

#12 2008-11-05 11:27:58

homebunny
Member
From: Geel, Belgium
Registered: 2008-10-30
Posts: 18

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

RESOLVED:
For all the one with the same issue:

Delete following file:
....\htdocs\GLPI\files\_log\ocsng_fullsync.pid

Start Script:
....\mass_ocs_import\scripts\run.bat

(I had to do the above steps twice, as the first time the script 'hanged' ..)

Offline

#13 2008-11-05 11:29:19

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: GLPI 0.71.2 - OCS - How to setup OCSNG-Mode (Server Platform Windows)

ok great,
I close the thread

Offline

Board footer

Powered by FluxBB