Bug #2733

FIA 2.3.11.1 on Windows OS doesn't get information about networks

Added by Tomás Abad over 2 years ago. Updated over 2 years ago.

Status:ClosedStart date:09/26/2014
Priority:NormalDue date:
Assignee:Guillaume Rousse% Done:

100%

Category:inventory
Target version:2.3.12
For junior contributor:No

Description

The environment

The bug

The <NETWORKS>...</NETWORKS> are missing.


C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --version
FusionInventory Agent (2.3.11.1)

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --list-tasks
NetDiscovery (v2.2.0)
NetInventory (v2.2.0)
Inventory (v1.0)
Deploy (v2.0.4)
WakeOnLan (v2.0)

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-inventory.bat --version
Inventory task 1.0

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-inventory.bat
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <ACCESSLOG>
      <LOGDATE>2014-09-26 14:20:06</LOGDATE>
    </ACCESSLOG>
    <BIOS>
      <ASSETTAG>No Asset Tag</ASSETTAG>
      <BDATE>07/31/2013</BDATE>
      <BMANUFACTURER>Phoenix Technologies LTD</BMANUFACTURER>
      <BVERSION>6.00</BVERSION>
      <MMANUFACTURER>Intel Corporation</MMANUFACTURER>
      <MMODEL>440BX Desktop Reference Platform</MMODEL>
      <MSN>None</MSN>
      <SKUNUMBER />  <SMANUFACTURER>VMware, Inc.</SMANUFACTURER>
      <SMODEL>VMware Virtual Platform</SMODEL>
      <SSN>VMware-56 4d 8c 7b 65 91 cb d3-0c d6 fa 48 f6 58 6e 30</SSN>
    </BIOS>
    ...
    ...                                  <<<----- There isn't any <NETWORKS>...<NETWORKS>
    ...                                           in the output.
    ...
    <VERSIONCLIENT />  <VIDEOS>
      <CHIPSET>VMware SVGA II</CHIPSET>
      <NAME>VMware SVGA II</NAME>
      <RESOLUTION>1276x901</RESOLUTION>
    </VIDEOS>
    <VIDEOS>
      <NAME>Mirage Driver</NAME>
    </VIDEOS>
  </CONTENT>
  <DEVICEID />  <QUERY>INVENTORY</QUERY>
</REQUEST>

Regards,

inventory-out.txt Magnifier (22 KB) Tomás Abad, 09/29/2014 08:43 AM

network.reg (3.7 KB) Tomás Abad, 10/02/2014 12:20 PM

History

#1 Updated by Tomás Abad over 2 years ago

More information. There isn't any error message in the output command.

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --version
FusionInventory Agent (2.3.11.1)

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-inventory.bat --version
Inventory task 1.0

C:\Program files\FusionInventory-Agent>fusioninventory-inventory.bat --debug --debug --debug --verbose > c:\tmp\inventory.txt 2> c:\tmp\inventory-out.txt

#2 Updated by Guillaume Rousse over 2 years ago

  • Category set to inventory
  • Status changed from New to Feedback

I can't reproduce the issue on any Windows machine I can access, none of which being XP, tough.

Does the following command (to be adapted to your setup) produce any sensible output ?
perl -I lib -MFusionInventory::Agent::Tools::Win32 -MData::Dumper -e "print Dumper(getInterfaces())"

#3 Updated by Tomás Abad over 2 years ago

Hello Guillaume,

Here you have more information about the operating system...

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-inventory.bat
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <CONTENT>
    <ACCESSLOG>
      <LOGDATE>2014-10-02 10:27:32</LOGDATE>
    </ACCESSLOG>
    <BIOS>
      <ASSETTAG>No Asset Tag</ASSETTAG>
      <BDATE>07/31/2013</BDATE>
      <BMANUFACTURER>Phoenix Technologies LTD</BMANUFACTURER>
      <BVERSION>6.00</BVERSION>
      <MMANUFACTURER>Intel Corporation</MMANUFACTURER>
      <MMODEL>440BX Desktop Reference Platform</MMODEL>
      <MSN>None</MSN>
      <SKUNUMBER />  <SMANUFACTURER>VMware, Inc.</SMANUFACTURER>
      <SMODEL>VMware Virtual Platform</SMODEL>
      <SSN>VMware-56 4d 8c 7b 65 91 cb d3-0c d6 fa 48 f6 58 6e 30</SSN>
    </BIOS>
    ...
    ...
    ...
    <HARDWARE>
      <ARCHNAME>MSWin32-x86-multi-thread-64int</ARCHNAME>
      <CHASSIS_TYPE>Other</CHASSIS_TYPE>
      <CHECKSUM>131071</CHECKSUM>
      <ETIME>66</ETIME>
      <LASTLOGGEDUSER>myuser</LASTLOGGEDUSER>
      <MEMORY>1073201152</MEMORY>
      <NAME>mymachine</NAME>
      <OSCOMMENTS>Service Pack 3</OSCOMMENTS>
      <OSNAME>Microsoft Windows XP Professional</OSNAME>
      <OSVERSION>5.1.2600</OSVERSION>
      <PROCESSORN>1</PROCESSORN>
      <PROCESSORS>2700</PROCESSORS>
      <PROCESSORT>Intel(R) Core(TM) i5-2500S CPU @ 2.70GHz</PROCESSORT>
      <USERID>myuser</USERID>
      <UUID>XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX</UUID>
      <VMSYSTEM>Physical</VMSYSTEM>
      <WINCOMPANY>My Dear Company</WINCOMPANY>
      <WINLANG>3082</WINLANG>
      <WINOWNER>Admin</WINOWNER>
      <WINPRODID>XXXXX-XXX-XXXXXXX-XXXXX</WINPRODID>
      <WINPRODKEY>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</WINPRODKEY>
      <WORKGROUP>my.dear.company.es</WORKGROUP>
    </HARDWARE>
    ...
    ...                                  <<<----- There isn't any <NETWORKS>...<NETWORKS>
    ...                                           in the output.
    ...
    <VERSIONCLIENT />  <VIDEOS>
      <CHIPSET>VMware SVGA II</CHIPSET>
      <NAME>VMware SVGA II</NAME>
      <RESOLUTION>1276x901</RESOLUTION>
    </VIDEOS>
    <VIDEOS>
      <NAME>Mirage Driver</NAME>
    </VIDEOS>
  </CONTENT>
  <DEVICEID />  <QUERY>INVENTORY</QUERY>
</REQUEST>

and, of course, the requested information.

C:\Archivos de programa\FusionInventory-Agent\perl\bin>perl -I ../lib -I ../agent -MFusionInventory::Agent::Tools::Win32 -MData::Dumper -e "print Dumper(getInterfaces())" 
$VAR1 = {
          'PCIID' => undef,
          'PNPDEVICEID' => 'ROOT\\MS_PPTPMINIPORT\\0000',
          'MACADDR' => '50:50:54:50:30:30',
          'dns' => undef,
          'VIRTUALDEV' => 1,
          'DESCRIPTION' => 'Minipuerto WAN (PPTP)',
          'STATUS' => 'Down',
          'MTU' => undef
        };
$VAR2 = {
          'MTU' => undef,
          'STATUS' => 'Down',
          'DESCRIPTION' => 'Minipuerto WAN (PPPOE)',
          'dns' => undef,
          'VIRTUALDEV' => 1,
          'MACADDR' => '33:50:6F:45:30:30',
          'PNPDEVICEID' => 'ROOT\\MS_PPPOEMINIPORT\\0000',
          'PCIID' => undef
        };
$VAR3 = {
          'DESCRIPTION' => 'Minipuerto del administrador de paquetes',
          'STATUS' => 'Down',
          'MTU' => undef,
          'PCIID' => undef,
          'PNPDEVICEID' => 'ROOT\\MS_PSCHEDMP\\0001',
          'MACADDR' => '0A:40:20:52:41:53',
          'dns' => undef,
          'VIRTUALDEV' => 1
        };
$VAR4 = {
          'MACADDR' => '0A:40:20:52:41:53',
          'VIRTUALDEV' => 1,
          'dns' => undef,
          'PCIID' => undef,
          'PNPDEVICEID' => 'ROOT\\MS_PSCHEDMP\\0002',
          'MTU' => undef,
          'DESCRIPTION' => 'Minipuerto del administrador de paquetes',
          'STATUS' => 'Down'
        };
$VAR5 = {
          'IPDHCP' => '192.168.8.254',
          'DESCRIPTION' => 'VMware Accelerated AMD PCNet Adapter - Minipuerto del administrador de paquetes',
          'STATUS' => 'Up',
          'IPADDRESS' => '192.168.8.135',
          'MTU' => undef,
          'IPSUBNET' => '192.168.8.0',
          'PCIID' => '1022:2000:2000:1022',
          'PNPDEVICEID' => 'PCI\\VEN_1022&DEV_2000&SUBSYS_20001022&REV_10\\4&47B7341&0&0088',
          'IPMASK' => '255.255.255.0',
          'IPGATEWAY' => '192.168.8.2',
          'MACADDR' => '00:0C:29:58:6E:30',
          'VIRTUALDEV' => 0,
          'dns' => '192.168.8.2'
        };
$VAR6 = {
          'MTU' => undef,
          'STATUS' => 'Down',
          'DESCRIPTION' => 'Minipuerto del administrador de paquetes',
          'dns' => undef,
          'VIRTUALDEV' => 1,
          'MACADDR' => '00:0C:29:58:6E:30',
          'PNPDEVICEID' => 'ROOT\\MS_PSCHEDMP\\0003',
          'PCIID' => undef
        };

Regards,

#4 Updated by Guillaume Rousse over 2 years ago

The issue probably comes from the new interface type identification function, then.

First test, just comment out the call to _getType() function, at line 32 of FusionInventory::Agent::Task::Inventory::Win32::Networks module.

Second test (if first one shows a difference, of course), call manually this function with every relevant values (the PNPDEVICEID values from your previous reply):
perl -I lib -IFusionInventory::Agent::Task::Inventory::Win32::Networks -e "print FusionInventory::Agent::Task::Inventory::Win32::Networks::_getType(shift)" <value>

/me thinks a dedicated debugging tool would make this command-line gymnastic easier :/

#5 Updated by Tomás Abad over 2 years ago

Hello Guillaume,

First test

Now, with that line commented, the XML file include <NETWORKS>...</NETWORKS> sections.

Second test

C:\Archivos de programa\FusionInventory-Agent\perl\bin>perl -I ../lib -I ../agent -MFusionInventory::Agent::Task::Invent
ory::Win32::Networks -e "print FusionInventory::Agent::Task::Inventory::Win32::Networks::_getType(shift)" "PCI\VEN_1022&
amp;DEV_2000&amp;SUBSYS_20001022&amp;REV_10\4&amp;47B7341&amp;0&amp;0088" 
Can't use string ("Adaptadores de red") as a HASH ref while "strict refs" in use at ../agent/FusionInventory/Agent/Task/
Inventory/Win32/Networks.pm line 60.

The error is the same for each PNPDEVICEID.

Regards,

#6 Updated by Guillaume Rousse over 2 years ago

Can you attach a registry dump from HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Network/{4D36E972-E325-11CE-BFC1-08002BE10318} ?

#7 Updated by Tomás Abad over 2 years ago

Hello Guillaume,

Here you have the registry information.

Regards,

#8 Updated by Guillaume Rousse over 2 years ago

  • Status changed from Feedback to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:828f11a033194c7a13bf17de2a5472287b809588.

#9 Updated by Guillaume Rousse over 2 years ago

Applied in changeset commit:f2d7364aee1e36cc6ed8e91ec78f0d0173533de9.

#10 Updated by Guillaume Rousse over 2 years ago

  • Assignee set to Guillaume Rousse
  • Target version set to 2.3.12
  • % Done changed from 100 to 0

#11 Updated by Guillaume Rousse over 2 years ago

  • % Done changed from 0 to 100

#12 Updated by Tomás Abad over 2 years ago

Hello Guillaume,

Conformed, it works.

Regards,

#13 Updated by Guillaume Rousse over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF