i-doit / INVENTORY README
------------------------------------------------------------------------------------------------------------

The inventory scripts are taken from h-inventory.
http://www.h-inventory.com/

Some of them are formatted and extended to work with the i-doit framework.
http://www.i-doit.org

H-Inventory Licence: GNU GENERAL PUBLIC LICENSE / Copyright (C) 1989, 1991 Free Software Foundation, Inc.
i-doit Licence:      http://dev.perl.org/perl6/rfc/346.html Artistic License 2.0

Author:  dennis stuecken <dstuecken@synetics.de>

------------------------------------------------------------------------------------------------------------

Examples:

First of all, you have to check the database connection of your mandator in:
 i-doit-directory/src/handler/config/isys_handler_import.inc.php

This is the efault config for a connection to mandator-id: "1" with username "admin" and password "admin"

--
$g_userconf = array(
        "user"                  => "admin",
        "pass"                  => "admin",
        "mandator_id"   	=> 1
 );
--

------------------------------------------------------------------------------------------------------------

Your i-doit should be prepared to start the import processes now:

------------------------------------------------------------------------------------------------------------

1. i-doit Windows inventory of ONE client / server

1.1 Start an inventory on your Client / Server
    # cd scripts/hinventoryWindows
    
1.2 Fill in your ip addresses in computer.txt

1.3 Start the inventory script
    # scan.bat

1.4 Copy the created XML Files into your i-doit directory
    For example: 
    # copy *.xml "C:\Program Files\Apache Software Foundation\htdocs\i-doit\imports"

1.5 Start an import of one client

1.5.1 Change to your i-doit directory
    # cd "C:\Program Files\Apache Software Foundation\htdocs\i-doit"

1.5.2 Retrieve the ID of the object-type you would like to import
    # C:\Programme\PHP\bin\php5.exe controller.php -v -m import

1.5.3 The import:
    # C:\Programme\PHP\bin\php5.exe controller.php -v -m import xml-file-path inventory object-type-id
                                                   /\                             /\           /\
                                              verbose mode        /\           XML-Type     Object-Type (numeric format)
                                                     the path can be relative to 
                                                      i-doit or a complete one

1.5.3 Example to import a client:
    # C:\Programme\PHP\bin\php5.exe controller.php -v -m import import/your-exported-client.xml inventory 10
   
    Where inventory is the type of the XML-File and 10 is the object-type client.

1.6 Your client should be import to i-doit now. Try logging in and check your client objects

