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 2012-06-26 13:23:51

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Importing OCS database to GLPI

Hi,

I just want to ask regarding on my GLPI testing server. I tried to import 17000+ computers into GLPI. But, I encounter some bug/issue or something that the GLPI got hang upon importing. When I tried to click the "Import new computers" from OCS database the GLPI will hang and nothing will appear. I tried to reduce the count from 17000+ to 14500 to be exact then it will appear all computers on the list. Upon importing and choose 10000 items it will only import 999 computers then after importing I tried again to click the "Import new computers" it will hang again and again.. Is there other settings or configuration to be made in the server or plugins so that it will sync all the computers... What is the cause of hanging upon importing is it on server specs? My server specs is Core 2 with 2GB memory and 250HDD. Hope someone can assist me regarding on my concern...


Thanks..

Offline

#2 2012-06-28 07:46:54

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

Re: Importing OCS database to GLPI

hello
what's your php's memory_limit ?

Offline

#3 2012-07-02 03:56:10

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 160

Re: Importing OCS database to GLPI

as wawa said, it probably caused by php time out, php memory limit in php config file, may be you can try changing the value to meet your need


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#4 2012-07-02 04:45:03

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 160

Re: Importing OCS database to GLPI

sorry wrong room big_smile

Last edited by teguh.umar (2012-07-02 04:56:27)


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#5 2012-07-05 03:20:02

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

The maximum memory_limit was 128M but I tried it to 256M, 384M and 512M but its still got hang.. Is there other way to fix this? I try this only in testing environment which have 17,287  computers to be exact but I can't syn them. I already remove 3,000+ to 4,000+ computers on my GLPI testing environment and it can only read 14,400. Upon synchronizing the 999 computers then it will hang again. Is there other way to read all the data without removing some records? we have more than 18,000 computers record on productions.. Thanks...

Offline

#6 2012-07-05 04:26:19

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 160

Re: Importing OCS database to GLPI

what about max_execution_time? or may be you could try ocs import plugin, and setup the plugin to import from OCS with your desire time. I have use it and i have never import form ocs to glpi manually


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#7 2012-07-05 06:09:29

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

thanks for the info.. i tried to change max_execution_time and max_input_time to 1800(in seconds) and now its working.. GLPI can now read 17,000+ workstations.. Thanks...

Offline

#8 2012-07-05 06:37:25

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

Re: Importing OCS database to GLPI

For large DB, I will recommend you to use masscosimport plugin instead of buildin feature.

As sync is run from command line, there is no memory time limit
Sync is also faster (can be parallelized on linux)


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 2012-07-05 06:50:45

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 160

Re: Importing OCS database to GLPI

Agree with remi, that is the best way


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#10 2012-07-12 08:15:15

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

the syncing of WS more than 17ooo workstation are now working.. but there's a problem in software.. its not syncing.. there's no record coming from OCS database going to GLPI. there's an empty software.. but the configuration of OCS importing is "Use the OCSNG software dictionary - yes" and "software - yes". is there other things to do?

by the way i'm using the latest/stable version and using latest plugins for ocsmassimport... thanks.

Last edited by -ICEBOX- (2012-07-12 08:45:39)

Offline

#11 2012-07-12 09:38:03

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 160

Re: Importing OCS database to GLPI

I've had that problem too, but I forgot where is exactly the problem is. May be you can try to setup :
Home >Setup >OCSNG mode, and choose at software = unit import


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#12 2012-07-12 10:28:54

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

I already did that but unfortunately nothing happen.. but when im using the old one 0.80.2 if im not mistaken.. its easy to configure that settings.. but in 0.83 i dont know what is wrong on my configuration...

Offline

#13 2012-07-13 04:42:40

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

I tried to upgrade to 0.83.31 version and all plugins to its newest version but still there are no list in software category.. im using OCS dictionary and the software with unit import value. anyone know how to fix this issue.. thanks..

Offline

#14 2012-07-13 04:53:03

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

sorry for confusing.. I already fixed my issue.. thanks.. now its totally working..

Offline

#15 2012-07-13 09:16:28

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

I am now going to sync all the workstation on GLPI but when I choose 1000 workstation its say's

"The action you have requested is not allowed. Reload previous page before doing action again."

I'm using the "glpi" user. Is there other configuration to edit just to make a thousand workstation to sync?

Thanks..

Offline

#16 2012-07-17 05:17:22

-ICEBOX-
Member
Registered: 2011-07-28
Posts: 21

Re: Importing OCS database to GLPI

I encountered this message again in configuration of email. I tried to set an email admin account but after clicking the updating this message "The action you have requested is not allowed. Reload previous page before doing action again." will prompt again.. I'm using the super-admin account so im aware that super-admin account is allowed to configure that notification. anyone how to re-configure this message so that I can granted the user to use the email notification. Thanks..

Last edited by -ICEBOX- (2012-07-17 06:03:04)

Offline

Board footer

Powered by FluxBB