3.2 How to Importation of the data into GLPI

Juan Fernando Villa Hernández edited this page Mar 13, 2015 · 1 revision

Importation of the data into GLPI Preparation prior to the injection into a production base

It may be judicious to create a test platform for qualification in order to make a test of the data to be injected, before “polluting” the database of your production GLPI in the event of error. This platform is composed of:

a GLPI with a copy of the base of production
the data_injection plugin

Define your models of files in the plugin and test them. At the end of the importation of the data are generated:

a report/ratio (in HTML or pdf) on the execution of scripts
a file CSV containing only rows that have been injected

Injection of the data in production

Install the data_injection plugin CSV (data_injection) on the GLPI of prod.
Create “models” from those of the base of qualification.
Verify the order into which you will inject data (see examples below)
Verify that the data has indeed been inserted

Example: You utilize an export tool inside a an application containing the financial information of existing machines (date of purchase, warranty period, etc) as well as connections to an active network (name of the asset + port) You export the data using this tool the network hardware which will not displayed by OCS (hubs, switchs). You have the number of ports per hardware. Procedure:

Create a model of injection for your network hardware
Inject your network hardware by indicating in the mappings the number of ports of the material
GLPI will create the associated hardware and ports (if you inject a 16 port switch, then 16 ports will be created automatically in GLPI)
Create a model of injection for computers
Inject your computers by indicating in the mappings the name of the active network and port on which it is connected
GLPI will create the computer and will try to connect it to the port of the specified hardware automatically.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.