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 2022-09-16 12:35:31

doesntMatter
Member
Registered: 2016-07-06
Posts: 108

SNMP Import: Update only not working

Hello,

I'm using glpi & fusioninventory to update the previously manual added devices. Now I'm trying to Update the existing PDU/USV:

- made a network port with the IP adress for the pdu
- try to run a snmp import
=> Logfile: Import not allowed: [ip]:X.X.X.X, [name]:10, [entities_id]:0

Ideas how to update the device if there is only the IP as Networkport known?

Offline

#2 2022-09-16 15:11:44

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: SNMP Import: Update only not working

Hi doesntMatter,

if you have too few informations, this may be just impossible or even useless if inventory is incomplete.

Firstly how do you make the snmp import ? And what informations are you setting for the devices ? Just name and ip ? Or what else ?


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2022-09-16 16:30:05

doesntMatter
Member
Registered: 2016-07-06
Posts: 108

Re: SNMP Import: Update only not working

Hi Guillaume,

i try to import via snmp agent. I created a pdu, setting only Networkports with IP, Mac and tried a snmp-import.

I believe there is somewhere a rule which prevents adding/updating the pdu.
=> I created rule for update/import PDU (based on Mac and Serial) because there was no rule in glpi and the same in fusioninventory.
=> Should I check there anything more according this? Updating of printer and so on is working fine...

fusioninventory-netdiscovery.bat --first X.X.X.X --last X.X.X.X--credentials version:1,community:public
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHSNMP>1</AUTHSNMP>
      <CONTACT>Service Informatique</CONTACT>
      <DESCRIPTION>Netman 204</DESCRIPTION>
      <DNSHOSTNAME>X.X.X.X</DNSHOSTNAME>
      <FIRMWARE>SWMXXX-XX-XX</FIRMWARE>
      <IP>X.X.X.X</IP>
      <IPS>
        <IP>X.X.X.X</IP>
        <IP>127.0.0.1</IP>
      </IPS>
      <LOCATION>ASDF</LOCATION>
      <MAC>ASDF</MAC>
      <MANUFACTURER>RPS SpA</MANUFACTURER>
      <MODEL>SEP 2200</MODEL>
      <SNMPHOSTNAME>ASDF</SNMPHOSTNAME>
      <TYPE>NETWORKING</TYPE>
      <UPTIME>14 minutes, 15.65</UPTIME>
    </DEVICE>
    <MODULEVERSION>4.2</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>

Offline

#4 2022-09-16 18:37:26

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: SNMP Import: Update only not working

You may try to enable the "NetworkEquipment update (by mac)" rule which is disabled by default as it can involve bad side-effects.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#5 2022-09-19 11:39:46

doesntMatter
Member
Registered: 2016-07-06
Posts: 108

Re: SNMP Import: Update only not working

I did and got some updates for printer which didn^t work before due missing information - but this do not change anything regarding this topic...

Last edited by doesntMatter (2022-09-19 11:40:31)

Offline

#6 2022-09-19 14:55:39

doesntMatter
Member
Registered: 2016-07-06
Posts: 108

Re: SNMP Import: Update only not working

Any Idea why the fusioninventory-discover-job-logfile is not showing the mac-adress?  Maybe that`s the point, fusioninventory-netdiscovery.bat is showing the Macadress.

In the Logfile of the job i see only [ip]:X.X.X.X, [name]:10, [entities_id]:0 and the IP-rule for import is disabled/not existing.

Last edited by doesntMatter (2022-09-19 14:56:47)

Offline

Board footer

Powered by FluxBB