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 2011-07-11 19:05:32

mickythekiller
Member
Registered: 2011-07-08
Posts: 216

ipsrc

Bonjour,
j'aimerais retrouver l'adresse ip source ipsrc de la table hardware ocs sous GLPI mais je ne l'a vois pas...
comment faire svp ?
merci


OCS 2.1.2 / GLPI 0.85.2 + OCS Inventory NG 1.1.0 + plugins

Offline

#2 2011-08-23 23:39:38

mickythekiller
Member
Registered: 2011-07-08
Posts: 216

Re: ipsrc

C'est bien dommage de perdre une info qui est remonté sad


OCS 2.1.2 / GLPI 0.85.2 + OCS Inventory NG 1.1.0 + plugins

Offline

#3 2011-08-24 00:50:45

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: ipsrc

C'est quoi ca "adresse ip source ipsrc" ?

Offline

#4 2011-08-24 08:11:18

mickythekiller
Member
Registered: 2011-07-08
Posts: 216

Re: ipsrc

C'est l'adresse ip publique utilisée lors de l'install OCS
En interne çà à peu d'interet mais pour des clients externe c'est utile couplé aux liens protocolés par exemple
Table HARDWARE


OCS 2.1.2 / GLPI 0.85.2 + OCS Inventory NG 1.1.0 + plugins

Offline

#5 2014-09-26 23:45:03

mickythekiller
Member
Registered: 2011-07-08
Posts: 216

Re: ipsrc

Bonjour
cette info à t'elle été intégrée dans GLPI ?!


OCS 2.1.2 / GLPI 0.85.2 + OCS Inventory NG 1.1.0 + plugins

Offline

#6 2014-09-27 11:50:13

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: ipsrc

Ah bah pour fusion ca remonte, pour OCS, faut le coder

Offline

#7 2014-09-27 11:54:13

mickythekiller
Member
Registered: 2011-07-08
Posts: 216

Re: ipsrc

c'est possible de rajouter cette demande au plugin ocs ?


OCS 2.1.2 / GLPI 0.85.2 + OCS Inventory NG 1.1.0 + plugins

Offline

#8 2014-09-27 16:18:41

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: ipsrc

Offline

#9 2014-09-27 16:19:39

mickythekiller
Member
Registered: 2011-07-08
Posts: 216

Re: ipsrc

Merci smile


OCS 2.1.2 / GLPI 0.85.2 + OCS Inventory NG 1.1.0 + plugins

Offline

#10 2014-10-09 16:18:20

dcecchetto
Member
Registered: 2014-10-09
Posts: 1

Re: ipsrc

I'm aready add this data for test purpose,

I add this field on table glpi_plugin_ocsinventoryng_ocslinks:

`last_ocs_conn` datetime default NULL,
 `ip_src` varchar(255) collate utf8_unicode_ci default NULL

Then i modify the query on ocsserver.class.php:

            $query = "UPDATE `glpi_plugin_ocsinventoryng_ocslinks`
                      SET `last_update` = '" . $_SESSION["glpi_currenttime"] . "',
                          `last_ocs_update` = '" . $data_ocs["LASTDATE"] . "',
                          `ocs_agent_version` = '".$data_ocs["USERAGENT"]." ',
                          `last_ocs_conn` = '" . $data_ocs["LASTCOME"] . "',
                          `ip_src` = '".$data_ocs["IPSRC"]." '
                          
                      WHERE `id` = '$ID'";

and finally i modify the tab_glpi on ocslink.class.php:

echo "<table class='tab_glpi'>";
                  echo "<tr class='tab_bg_1'><th colspan='2'>".__('OCS Inventory NG')."</th>";
                  echo "<tr class='tab_bg_1'><td>".__('Last OCSNG inventory date', 'ocsinventoryng');
                  echo "</td><td>".Html::convDateTime($data["last_ocs_update"]).'</td></tr>';
                  echo "<tr class='tab_bg_1'><td>".__('Last OCSNG connection date', 'ocsinventoryng');
                  echo "</td><td>".Html::convDateTime($data["last_ocs_conn"]).'</td></tr>';
                  echo "<tr class='tab_bg_1'><td>".__('GLPI import date',  'ocsinventoryng');
                  echo "</td><td>".Html::convDateTime($data["last_update"]).'</td></tr>';
                  echo "<tr class='tab_bg_1'><td>".__('Inventory agent',  'ocsinventoryng');
                  echo "</td><td>".$data["ocs_agent_version"].'</td></tr>';
                  echo "<tr class='tab_bg_1'><td>".__('IP Source',  'ocsinventoryng');
                  echo "</td><td>".$data["ip_src"].'</td></tr>';
                  echo "<tr class='tab_bg_1'><td>".__('Server');
                  echo "</td><td>";

Davide

Offline

#11 2014-10-25 20:16:29

mickythekiller
Member
Registered: 2011-07-08
Posts: 216

Re: ipsrc

Super,
si y a déjà le code çà va etre rapide de l'intégré dans la prochaine version
merci


OCS 2.1.2 / GLPI 0.85.2 + OCS Inventory NG 1.1.0 + plugins

Offline

#12 2015-01-31 16:36:24

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: ipsrc

Ajouté en 1.1.0. Je clos


Xavier Caillaud
Blog GLPI Infotel

Offline

Board footer

Powered by FluxBB