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 2024-07-15 23:10:42

paologri
Member
Registered: 2020-12-06
Posts: 10

Import Network equipment with xml file problem.

Hello,
I have a problem with import xml file.
This is an example:

<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>Aruba JL261A 2930F-24G-PoE+-4SFP Switch, revision WC.16.05.0007, ROM WC.16.01.0005 (/ws/swbuildm/rel_venice_qaoff/code/build/lvm(swbuildm_rel_venice_qaoff_rel_venice))</DESCRIPTION>
      <DNSHOSTNAME>192.168.0.10</DNSHOSTNAME>
      <FIRMWARE>WC.16.05.0007</FIRMWARE>
      <IP>192.168.0.10</IP>
      <IPS>
        <IP>127.0.0.1</IP>
        <IP>192.168.0.10</IP>
      </IPS>
      <LOCATION>CED</LOCATION>
      <MAC>11:22:33:44:55:66</MAC>
      <MANUFACTURER>Hewlett-Packard</MANUFACTURER>
      <MODEL>Aruba 2930F-24G-PoE+-4SFP</MODEL>
      <SERIAL>AFG6YHLN2B</SERIAL>
      <SNMPHOSTNAME>AAAA-SW-CED0</SNMPHOSTNAME>
      <TYPE>NETWORKING</TYPE>
      <UPTIME>351 days, 07:16:30.12</UPTIME>
    </DEVICE>
    <MODULEVERSION>4.1</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>

After the correct import, I permanently delete the network port (in this case: Management) and reload the xml. The import function does not recreate the Management port.
The answer is:
The file was imported successfully.
ELEMENTS: Import denied (no log)

If I permanently delete the network equipment and then upload the xml file, the Management port is correctly created.
My setup is a fresh installation of glpi 10.0.15 with empty database without plugins.
Do you have any suggestions?
Thanks

Paolo

Offline

#2 2024-07-16 07:32:57

paologri
Member
Registered: 2020-12-06
Posts: 10

Re: Import Network equipment with xml file problem.

Hello,
Same test with a printer: no problems
this is the xml of test:

<REQUEST>
  <CONTENT>
    <DEVICE>
      <AUTHSNMP>1</AUTHSNMP>
      <DESCRIPTION>OLIVETTI Printing System</DESCRIPTION>
      <DNSHOSTNAME>192.168.0.17</DNSHOSTNAME>
      <IP>192.168.0.17</IP>
      <IPS>
        <IP>172.20.173.17</IP>
      </IPS>
      <LOCATION>AAAA-LOC</LOCATION>
      <MAC>11:22:33:44:55:66</MAC>
      <MANUFACTURER>Kyocera</MANUFACTURER>
      <MODEL>d-COPIA 5514MF</MODEL>
      <SERIAL>0762093191</SERIAL>
      <SNMPHOSTNAME>AAAA-PRT-TEST</SNMPHOSTNAME>
      <TYPE>PRINTER</TYPE>
      <UPTIME>5 days, 23:30:48.68</UPTIME>
    </DEVICE>
    <MODULEVERSION>6.1</MODULEVERSION>
    <PROCESSNUMBER>1</PROCESSNUMBER>
  </CONTENT>
  <DEVICEID>foo</DEVICEID>
  <QUERY>NETDISCOVERY</QUERY>
</REQUEST>

Offline

Board footer

Powered by FluxBB