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 2007-11-26 13:05:27

Evil-Wax
Member
Registered: 2007-11-20
Posts: 4

OCS <-> GLPI Linking/Import/Export/CronJobs

Hi everybody!
(sorry 4 my bad English)

I am really fascinated about GLPI and OCS! For some Months now I am testing both tools and I am planing to use them for our Company. But one thing is bothering me at the moment, and that is the linking between ocs and glpi. Here are my Problems:

// Notice that OCS and GLPI are both installed and running properly on a Windows Server 2003 Machine
// with IIS + all kind of Stuff like PHP5, MySQL , PEAR, etc
//
// OCSNG Version: 1.01
// GLPI Version: 0.7 RC3

1. From what I understand, GLPI has a automation on importing the inventory list from OCS. However this doesn't seem to work. I can import manually without problems though. Are there any options, setting or files I could check to see if they are set up correctly? Or is there a way to check if the automation works - or if not, if there were any errors?

2. I have imported the complete List of PCs manually via "Tools\OCSNG\Import new computers" (French: Outils->OCSNG->Importation de nouveaux ordinateurs). Then I manually added about 20 computers witch either are not connected to our network or installed in some of the big industrial machines. (No, I don't want to Install the OCS-Agent manually on those machines and import them in OCS later... I could get crushed ;-D ). Now OCS caught some new installed PCs and I want to import them in glpi to. (Automatic would be nice.. but see question 1 wink ) Now GLPI says, there are no new Computers to import. So I deleted all computers except the ones i added manually from GLPI and then tried to import all PCs from OCS... but still "No new machines to be imported". (yes, i purged the deleted machines from the Trash). So I deleted those manually added PCs to and voilla! A can import all OCS PCs again... Is there a problem with having manually added PCs and OCS imports?

3. Is there a way to export the PC-List back to OCS again? I find GLPI quite better for mass-editing.

Last edited by Evil-Wax (2007-11-26 13:08:45)

Offline

#2 2007-11-26 13:21:55

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

Re: OCS <-> GLPI Linking/Import/Export/CronJobs

Evil-Wax wrote:

1. From what I understand, GLPI has a automation on importing the inventory list from OCS. However this doesn't seem to work. I can import manually without problems though. Are there any options, setting or files I could check to see if they are set up correctly? Or is there a way to check if the automation works - or if not, if there were any errors?

with 0.7, automatic import can be done via plugin mass_ocs_import.

Evil-Wax wrote:

2. I have imported the complete List of PCs manually via "Tools\OCSNG\Import new computers" (French: Outils->OCSNG->Importation de nouveaux ordinateurs). Then I manually added about 20 computers witch either are not connected to our network or installed in some of the big industrial machines. (No, I don't want to Install the OCS-Agent manually on those machines and import them in OCS later... I could get crushed ;-D ). Now OCS caught some new installed PCs and I want to import them in glpi to. (Automatic would be nice.. but see question 1 wink ) Now GLPI says, there are no new Computers to import. So I deleted all computers except the ones i added manually from GLPI and then tried to import all PCs from OCS... but still "No new machines to be imported". (yes, i purged the deleted machines from the Trash). So I deleted those manually added PCs to and voilla! A can import all OCS PCs again... Is there a problem with having manually added PCs and OCS imports?

there's some configurations options in the OCSNG mode to specify automatic link between machines added in GLPI and machines coming from OCS.
This automatic link only works when the machines comes from ocs for the FIRST time.

Evil-Wax wrote:

3. Is there a way to export the PC-List back to OCS again? I find GLPI quite better for mass-editing.

no, in fact you should not import manually machines in OCS database (except inventories of machines not connected to the network).
the common use is :
1 installation of the inventory client on the machine
2 automatic or manual inventory
3 inventory is added (manually or automatically) in OCS db
4 glpi import script detect new machines or machines changes in configuration and import/update datas into glpi's db

Offline

#3 2007-11-26 14:33:37

Evil-Wax
Member
Registered: 2007-11-20
Posts: 4

Re: OCS <-> GLPI Linking/Import/Export/CronJobs

Thx for the fast response.

Ok I will check that plugin.


/EDIT
I could nor find that Plugin on the GLPI Page. How can I get it?

Last edited by Evil-Wax (2007-11-26 14:38:45)

Offline

#4 2007-11-26 14:42:27

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

Re: OCS <-> GLPI Linking/Import/Export/CronJobs

Offline

#5 2007-11-26 15:35:33

jp10558
Member
Registered: 2006-10-09
Posts: 101

Re: OCS <-> GLPI Linking/Import/Export/CronJobs

Evil-Wax wrote:

3. Is there a way to export the PC-List back to OCS again? I find GLPI quite better for mass-editing.

no, in fact you should not import manually machines in OCS database (except inventories of machines not connected to the network).
the common use is :
1 installation of the inventory client on the machine
2 automatic or manual inventory
3 inventory is added (manually or automatically) in OCS db
4 glpi import script detect new machines or machines changes in configuration and import/update datas into glpi's db

There's one big problem with this design, at least from the way things go where I work. Specifically, we order a batch of PCs, say 5-10. Now we order a little ahead of need. We've got the hardware sitting in storage, but it hasn't been turned on yet or assigned a name or anything. At some point we were thinking about inputting some information as we got the hardware in, and then later linking the OCSNG record to GLPI once it had been named etc (and we would then update the name etc in GLPI).

I expect that will still work? Or are you just suggesting that the automatic import will glitch?

Offline

#6 2007-11-26 15:44:54

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

Re: OCS <-> GLPI Linking/Import/Export/CronJobs

jp10558 wrote:

I expect that will still work? Or are you just suggesting that the automatic import will glitch?

yes it works by doing :
1 when you receive the machines, do a csv file with all the datas you want to inject in GLPI
2 inject theses datas with the data_injection plugin (without the name if you don't have it. If you have the serial number it should be fine)
3 configure the OCSNG mode for automatic linking
4 when the machine will be powered on and will send inventory to OCS, the automatic link will merge the informations injected via the plugin & the informations sent by OCS.

Offline

#7 2007-11-26 15:52:13

jp10558
Member
Registered: 2006-10-09
Posts: 101

Re: OCS <-> GLPI Linking/Import/Export/CronJobs

Why wouldn't I do the initial input via GLPI? Can't I just do "Link new OCS Machines to Existing GLPI machines"?

Offline

#8 2007-11-26 15:57:47

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

Re: OCS <-> GLPI Linking/Import/Export/CronJobs

you can create the machines 'by hand' or via csv injection, it's the same.
after you can link machines either via web console nor in automatic via mass_ocs_import, as you like

we just give you facilities to do the whole process in a more 'automatic' way wink

Offline

Board footer

Powered by FluxBB