Project

General

Profile

Bug #2190

name to address conversion failure on Windows XP

Added by Tomás Abad over 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Category:
core
Target version:
-
Start date:
07/30/2013
Due date:
% Done:

0%

For junior contributor:
No

Description

The agent

The tests

Information about the agent.

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent --version
FusionInventory Agent (2.2.9902) **THIS IS A DEVELOPMENT RELEASE **

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

Without any other FusionInventory Agent running in a daemon mode, I launch the agent as following:

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --config none --logger File --logfile "C:\Archivos de programa\FusionInventory-Agent\fusioninventory-agent.log" --httpd-trust 127.0.0.1,precumene.hgcr.sescam.jclm.es --ca-cert-file "C:\Archivos de programa\FusionInventory-Agent\certs\hgucr-cert.pem" --server https://precumene.hgcr.sescam.jclm.es/glpi/plugins/fusioninventory/ --no-fork --debug --debug --daemon

and this is the log.

[Tue Jul 30 12:41:17 2013][debug] Storage directory: ../../var
[Tue Jul 30 12:41:17 2013][debug] Lib directory: ../agent
[Tue Jul 30 12:41:17 2013][debug] [target server0] Next server contact planned for Tue Jul 30 13:12:28 2013
[Tue Jul 30 12:41:19 2013][debug] Available tasks:
[Tue Jul 30 12:41:19 2013][debug] - ESX: 2.2.1
[Tue Jul 30 12:41:19 2013][debug] - Inventory: 1.0
[Tue Jul 30 12:41:19 2013][debug] - WakeOnLan: 2.0
[Tue Jul 30 12:41:19 2013][debug] - NetDiscovery: 2.2.0
[Tue Jul 30 12:41:19 2013][debug] - Deploy: 2.0.4
[Tue Jul 30 12:41:19 2013][debug] - NetInventory: 2.2.0
[Tue Jul 30 12:41:19 2013][error] unable to get host address: El nombre solicitado es válido y se ha encontrado en la base de datos, pero no tiene asociados los datos correctos que se intentan resolver. 
[Tue Jul 30 12:41:19 2013][error] unable to get host address: El nombre solicitado es válido y se ha encontrado en la base de datos, pero no tiene asociados los datos correctos que se intentan resolver. 
[Tue Jul 30 12:41:19 2013][info] [http server] HTTPD service started at http://localhost:62354
[Tue Jul 30 12:41:19 2013][debug] FusionInventory Agent initialised

From the GLPI server 'precumene.hgcr.sescam.jclm.es', with IP 10.36.9.190, I try to force an inventory of this Windows computer (Tag 'FusInv Tasks'). I receive this message

Impossible to communicate with agent!

and this is what the agent logs.

...
...
...
[Tue Jul 30 12:41:19 2013][info] [http server] HTTPD service started at http://localhost:62354
[Tue Jul 30 12:41:19 2013][debug] FusionInventory Agent initialised
[Tue Jul 30 12:48:04 2013][debug] [http server] request /status from client 10.36.9.190
[Tue Jul 30 12:50:19 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Tue Jul 30 12:50:19 2013][debug] [http server] invalid request (untrusted address)
[Tue Jul 30 12:50:20 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Tue Jul 30 12:50:20 2013][debug] [http server] invalid request (untrusted address)
[Tue Jul 30 12:50:21 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Tue Jul 30 12:50:21 2013][debug] [http server] invalid request (untrusted address)
[Tue Jul 30 12:50:22 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Tue Jul 30 12:50:22 2013][debug] [http server] invalid request (untrusted address)
[Tue Jul 30 12:50:23 2013][debug] [http server] request /status from client 10.36.9.19

I stop the agent, and launch it again changing 'precumene.hgcr.sescam.jclm.es' for its IP.

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --config none --logger File --logfile "C:\Archivos de programa\FusionInventory-Agent\fusioninventory-agent.log" --httpd-trust 127.0.0.1,10.36.9.190 --ca-cert-file "C:\Archivos de programa\FusionInventory-Agent\certs\hgucr-cert.pem" --server https://precumene.hgcr.sescam.jclm.es/glpi/plugins/fusioninventory/ --no-fork --debug --debug --daemon

and, from GLPI, I try to force an inventory of the Windows computer again. Now I receive the message

The agent is running

and this is what the agent logs.

[Tue Jul 30 13:01:35 2013][debug] FusionInventory Agent (2.2.9902) **THIS IS A DEVELOPMENT RELEASE **
[Tue Jul 30 13:01:35 2013][debug] Configuration directory: ../../etc
[Tue Jul 30 13:01:35 2013][debug] Data directory: ../../share
[Tue Jul 30 13:01:35 2013][debug] Storage directory: ../../var
[Tue Jul 30 13:01:35 2013][debug] Lib directory: ../agent
[Tue Jul 30 13:01:35 2013][debug] [target server0] Next server contact planned for Tue Jul 30 13:12:28 2013
[Tue Jul 30 13:01:37 2013][debug] Available tasks:
[Tue Jul 30 13:01:37 2013][debug] - ESX: 2.2.1
[Tue Jul 30 13:01:37 2013][debug] - Inventory: 1.0
[Tue Jul 30 13:01:37 2013][debug] - WakeOnLan: 2.0
[Tue Jul 30 13:01:37 2013][debug] - NetDiscovery: 2.2.0
[Tue Jul 30 13:01:37 2013][debug] - Deploy: 2.0.4
[Tue Jul 30 13:01:37 2013][debug] - NetInventory: 2.2.0
[Tue Jul 30 13:01:37 2013][error] unable to get host address: El nombre solicitado es válido y se ha encontrado en la base de datos, pero no tiene asociados los datos correctos que se intentan resolver. 
[Tue Jul 30 13:01:37 2013][info] [http server] HTTPD service started at http://localhost:62354
[Tue Jul 30 13:01:37 2013][debug] FusionInventory Agent initialised
[Tue Jul 30 13:03:40 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Tue Jul 30 13:03:40 2013][debug] [http server] valid request, forcing execution right now
[Tue Jul 30 13:03:41 2013][debug] [http client] Using Compress::Zlib for compression
[Tue Jul 30 13:03:41 2013][debug2] [http client] sending message:
 <?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
  <DEVICEID>NOM_01viejo.hgcr.sescam.jclm.es-2013-07-29-13-27-02</DEVICEID>
  <QUERY>PROLOG</QUERY>
  <TOKEN>12345678</TOKEN>
</REQUEST>
[Tue Jul 30 13:03:45 2013][debug2] format: Zlib
[Tue Jul 30 13:03:45 2013][debug2] [http client] receiving message:
 <?xml version="1.0" encoding="UTF-8"?>
<REPLY>
   <RESPONSE>SEND</RESPONSE>
   <PROLOG_FREQ>4</PROLOG_FREQ>
</REPLY>
[Tue Jul 30 13:03:45 2013][debug] running task ESX in process -3920
[Tue Jul 30 13:03:45 2013][debug] [http server] request /status from client 10.36.9.190
[Tue Jul 30 13:03:45 2013][debug] FusionInventory ESX task 2.2.1
[Tue Jul 30 13:03:45 2013][debug2] https://precumene.hgcr.sescam.jclm.es/glpi/plugins/fusioninventory/?action=getConfig&task[ESX]=2.2.1&machineid=NOM_01viejo.hgcr.sescam.jclm.es-2013-07-29-13-27-02
[Tue Jul 30 13:03:45 2013][debug2] https://precumene.hgcr.sescam.jclm.es/glpi/plugins/fusinvinventory/b/esx/?action=getJobs&machineid=NOM_01viejo.hgcr.sescam.jclm.es-2013-07-29-13-27-02
...
...
...

Note: It works in Unix systems.

History

#1 Updated by Gonéri Le Bouder over 4 years ago

Hum, here it works: (Strawberry Perl 5.16 - 64bit).

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

The agent of the test uses this Strawberry Perl release.

C:\Archivos de programa\FusionInventory-Agent\perl\bin>perl.exe -version

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

In the log file there is an error, but I don't know what it is.

[Tue Jul 30 13:01:37 2013][debug] Available tasks:
[Tue Jul 30 13:01:37 2013][debug] - ESX: 2.2.1
[Tue Jul 30 13:01:37 2013][debug] - Inventory: 1.0
[Tue Jul 30 13:01:37 2013][debug] - WakeOnLan: 2.0
[Tue Jul 30 13:01:37 2013][debug] - NetDiscovery: 2.2.0
[Tue Jul 30 13:01:37 2013][debug] - Deploy: 2.0.4
[Tue Jul 30 13:01:37 2013][debug] - NetInventory: 2.2.0
[Tue Jul 30 13:01:37 2013][error] unable to get host address: El nombre solicitado es válido y se ha encontrado en la base de datos, pero no tiene asociados los datos correctos que se intentan resolver. 
...
...
...

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

I have tested it again but this time with the last stable version (fusioninventory-agent_windows-x86_2.3.0.exe).

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent --version
FusionInventory Agent (2.3.0)

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

I launch the agent...

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --config none --logger File --logfile "C:\Archiv
os de programa\FusionInventory-Agent\fusioninventory-agent.log" --httpd-trust 127.0.0.1,precumene.hgcr.sescam.jclm.es --
ca-cert-file "C:\Archivos de programa\FusionInventory-Agent\certs\hgucr-cert.pem" --server https://precumene.hgcr.sescam
.jclm.es/glpi/plugins/fusioninventory/ --no-fork --debug --debug --daemon
Use of uninitialized value $host in substitution (s///) at ../agent/FusionInventory/Agent/Tools/Network.pm line 129.
Use of uninitialized value $host in substitution (s///) at ../agent/FusionInventory/Agent/Tools/Network.pm line 129.

and force an inventory from GLPI, and this is the agent logfile.

[Fri Aug  2 10:45:00 2013][debug] FusionInventory Agent (2.3.0)
[Fri Aug  2 10:45:00 2013][debug] Configuration directory: ../../etc
[Fri Aug  2 10:45:00 2013][debug] Data directory: ../../share
[Fri Aug  2 10:45:00 2013][debug] Storage directory: ../../var
[Fri Aug  2 10:45:00 2013][debug] Lib directory: ../agent
[Fri Aug  2 10:45:01 2013][debug] [target server0] Next server contact planned for Fri Aug  2 11:06:09 2013
[Fri Aug  2 10:45:02 2013][debug] Available tasks:
[Fri Aug  2 10:45:02 2013][debug] - ESX: 2.2.1
[Fri Aug  2 10:45:02 2013][debug] - Inventory: 1.0
[Fri Aug  2 10:45:02 2013][debug] - WakeOnLan: 2.0
[Fri Aug  2 10:45:02 2013][debug] - NetDiscovery: 2.2.0
[Fri Aug  2 10:45:02 2013][debug] - Deploy: 2.0.4
[Fri Aug  2 10:45:02 2013][debug] - NetInventory: 2.2.0
[Fri Aug  2 10:45:02 2013][info] [http server] HTTPD service started at http://localhost:62354
[Fri Aug  2 10:45:02 2013][debug] FusionInventory Agent initialised
[Fri Aug  2 10:46:10 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Fri Aug  2 10:46:10 2013][debug] Server: Invalid chars in IP 
[Fri Aug  2 10:46:10 2013][debug] [http server] invalid request (untrusted address)
[Fri Aug  2 10:46:11 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Fri Aug  2 10:46:11 2013][debug] Server: Invalid chars in IP 
[Fri Aug  2 10:46:11 2013][debug] [http server] invalid request (untrusted address)
[Fri Aug  2 10:46:12 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Fri Aug  2 10:46:12 2013][debug] Server: Invalid chars in IP 
[Fri Aug  2 10:46:12 2013][debug] [http server] invalid request (untrusted address)
[Fri Aug  2 10:46:13 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Fri Aug  2 10:46:13 2013][debug] Server: Invalid chars in IP 
[Fri Aug  2 10:46:13 2013][debug] [http server] invalid request (untrusted address)
[Fri Aug  2 10:46:15 2013][debug] [http server] request /status from client 10.36.9.190

I don't know what are those lines

[debug] Server: Invalid chars in IP

Whether I repeat the test launching the agent as following (with the IP instead of the server name)

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --config none --logger File --logfile "C:\Archiv
os de programa\FusionInventory-Agent\fusioninventory-agent.log" --httpd-trust 127.0.0.1,10.36.9.190 --ca-cert-file "C:\A
rchivos de programa\FusionInventory-Agent\certs\hgucr-cert.pem" --server https://precumene.hgcr.sescam.jclm.es/glpi/plug
ins/fusioninventory/ --no-fork --debug --debug --daemon
Use of uninitialized value $host in substitution (s///) at ../agent/FusionInventory/Agent/Tools/Network.pm line 129.

all is correct.

[Fri Aug  2 11:09:46 2013][debug] FusionInventory Agent (2.3.0)
[Fri Aug  2 11:09:46 2013][debug] Configuration directory: ../../etc
[Fri Aug  2 11:09:46 2013][debug] Data directory: ../../share
[Fri Aug  2 11:09:46 2013][debug] Storage directory: ../../var
[Fri Aug  2 11:09:46 2013][debug] Lib directory: ../agent
[Fri Aug  2 11:09:46 2013][debug] [target server0] Next server contact planned for Fri Aug  2 11:55:41 2013
[Fri Aug  2 11:09:48 2013][debug] Available tasks:
[Fri Aug  2 11:09:48 2013][debug] - ESX: 2.2.1
[Fri Aug  2 11:09:48 2013][debug] - Inventory: 1.0
[Fri Aug  2 11:09:48 2013][debug] - WakeOnLan: 2.0
[Fri Aug  2 11:09:48 2013][debug] - NetDiscovery: 2.2.0
[Fri Aug  2 11:09:48 2013][debug] - Deploy: 2.0.4
[Fri Aug  2 11:09:48 2013][debug] - NetInventory: 2.2.0
[Fri Aug  2 11:09:48 2013][info] [http server] HTTPD service started at http://localhost:62354
[Fri Aug  2 11:09:48 2013][debug] FusionInventory Agent initialised
[Fri Aug  2 11:10:01 2013][debug] [http server] request /now/12345678 from client 10.36.9.190
[Fri Aug  2 11:10:01 2013][debug] Server: Invalid chars in IP 
[Fri Aug  2 11:10:01 2013][debug] [http server] valid request, forcing execution right now
[Fri Aug  2 11:10:02 2013][debug] [http client] Using Compress::Zlib for compression
[Fri Aug  2 11:10:02 2013][debug2] [http client] sending message:
...
...
...

Note: The client is a Microsoft Windows XP SP3 (x86)

#4 Updated by Guillaume Rousse over 4 years ago

  • Subject changed from The host names in the option 'httpd-trust' aren't resolved on Windows systems to name to address conversion failure on windows
  • Category set to core
  • Assignee set to Guillaume Rousse
  • Target version changed from 2.3.0 to 2.3.1

Same issue as #2193.

#5 Updated by Guillaume Rousse over 4 years ago

  • Target version deleted (2.3.1)

What's the version of Socket::GetAddrInfo shipped in the windows distribution ?

#6 Updated by Tomás Abad over 4 years ago

It's this Guillaume,

#  You may distribute under the terms of either the GNU General Public License
#  or the Artistic License (the same terms as Perl itself)
#
#  (C) Paul Evans, 2007-2012 -- leonerd@leonerd.org.uk

package Socket::GetAddrInfo;

use strict;
use warnings;

use Carp;

our $VERSION = '0.22';
...
...

#7 Updated by Tomás Abad about 4 years ago

The problem continues with FusionInventory Agent 2.3.2.

C:\Documents and Settings\Operador>cd "\Program Files\FusionInventory-Agent" 

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --version
FusionInventory Agent (2.3.2)

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --list-task
ESX (v2.2.1)
Inventory (v1.0)
WakeOnLan (v2.0)
NetDiscovery (v2.2.0)
Deploy (v2.0.4)
NetInventory (v2.2.0)
C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --config none -
-server https://precumene.hgcr.sescam.jclm.es/glpi/plugins/fusioninventory/ --no
-task Inventory --ca-cert-file "C:\Program files\FusionInventory-Agent\certs\hgu
cr-cert.pem" --httpd-trust 127.0.0.1/32,10.36.9.190/32 --logger File --logfile " 
C:\Program files\FusionInventory-Agent\fusioninventory-agent.log" --daemon --no-
fork --debug 2
Use of uninitialized value $host in substitution (s///) at ../agent/FusionInvent
ory/Agent/Tools/Network.pm line 142.

#8 Updated by Gonéri Le Bouder about 4 years ago

The warning has been fixed in commit:83c1f08477e54d19d8095255fd3309c5f6629e95 by Sébastien Aperghis-Tramoni. I think the main problem remains.

#9 Updated by Guillaume Rousse about 4 years ago

Simple test case:
perl -I lib/ -MFusionInventory::Agent::Tools::Network -MData::Dumper -e 'print Dumper(resolv("precumene.hgcr.sescam.jclm.es"))'

Can you try with different versions of perl itself (strawberry perl 5.18.1.1 is available) and of operating system, to see if it makes any difference ?

#10 Updated by Tomás Abad about 4 years ago

Microsoft Windows XP Professional SP3 (x86)

C:\>ping -n 1 precumene.hgcr.sescam.jclm.es

Pinging precumene.hgcr.sescam.jclm.es [10.36.9.190] with 32 bytes of data:

Reply from 10.36.9.190: bytes=32 time<1ms TTL=64

Ping statistics for 10.36.9.190:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --version
FusionInventory Agent (2.3.2)

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --list-task
ESX (v2.2.1)
Inventory (v1.0)
WakeOnLan (v2.0)
NetDiscovery (v2.2.0)
Deploy (v2.0.4)
NetInventory (v2.2.0)

Test with the embedded Strawberry Perl 5.16.3 in fusioninventory-agent_windows-x86_2.3.2.exe.

C:\Program Files\FusionInventory-Agent\perl>bin\perl.exe -version

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-t
hread

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\Program Files\FusionInventory-Agent\perl>bin\perl.exe -I agent/ -I lib/ -I si
te/ -I vendor/ -MFusionInventory::Agent::Tools::Network -MData::Dumper -e "print
 Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
Use of uninitialized value $host in substitution (s///) at agent//FusionInventor
y/Agent/Tools/Network.pm line 142.

Test with Strawberry Perl 5.16.3.1 Portable Edition for x86

C:\perl\5.16.3.1>perl\bin\perl.exe -version

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-t
hread

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\perl\5.16.3.1>portableshell.bat
----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.portable.TXT for more info
----------------------------------------------
Perl executable: C:\perl\5.16.3.1\perl\bin\perl.exe
Perl version   : 5.16.3 / MSWin32-x86-multi-thread

C:\perl\5.16.3.1>cpanm --install --auto-cleanup 1 --skip-installed --notest --quiet App::cpanminus
Successfully installed App-cpanminus-1.7001 (upgraded from 1.6005)
1 distribution installed

C:\perl\5.16.3.1>cpanm --install --auto-cleanup 1 --skip-satisfied --notest --quiet Archive::Extract Crypt::DES Compress
::Zlib Digest::MD5 Digest::SHA File::Copy::Recursive File::Which HTTP::Daemon IO::Socket::SSL JSON LWP LWP::Protocol::ht
tps Net::IP Net::NBName Net::SNMP Parse::EDID POE::Component::Client::Ping Socket::GetAddrInfo Text::Template UNIVERSAL:
:require URI::Escape Win32::Daemon Win32::Job Win32::OLE Win32::TieRegistry XML::TreePP
You have Archive::Extract (0.68)
You have Crypt::DES (2.05)
You have Compress::Zlib (2.060)
You have Digest::MD5 (2.52)
You have Digest::SHA (5.84)
You have File::Copy::Recursive (0.38)
You have File::Which (1.09)
You have HTTP::Daemon (6.01)
You have IO::Socket::SSL (1.84)
You have JSON (2.53)
You have LWP (6.04)
You have LWP::Protocol::https (6.03)
Successfully installed Net-IP-1.26
Successfully installed Net-NBName-0.26
Successfully installed Net-SNMP-v6.0.1
Successfully installed Parse-EDID-v1.0.4
Successfully installed POE-Test-Loops-1.353
Successfully installed Win32-Console-0.09
Successfully installed Win32-Job-0.04
Successfully installed Exporter-5.68 (upgraded from 5.67)
Successfully installed IO-Pipely-0.005
Successfully installed POE-1.356
Successfully installed POE-Component-Client-Ping-1.173
Successfully installed ExtUtils-CChecker-0.08
Successfully installed Socket-GetAddrInfo-0.22
Successfully installed Text-Template-1.46
Successfully installed UNIVERSAL-require-0.15
You have URI::Escape (3.31)
Successfully installed Win32-Daemon-20110117
You have Win32::OLE (0.1709)
You have Win32::TieRegistry (0.26)
Successfully installed XML-TreePP-0.41
17 distributions installed

C:\perl\5.16.3.1>perl.exe -I "C:/Program Files/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools::Netwo
rk -MData::Dumper -e "print Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
Use of uninitialized value $host in substitution (s///) at C:/Program Files/FusionInventory-Agent/perl/agent//FusionInve
ntory/Agent/Tools/Network.pm line 142.

C:\perl\5.16.3.1>exit
C:\perl\5.16.3.1>

Test with Strawberry Perl 5.18.1.1 Portable Edition for x86

C:\perl\5.18.1.1>perl\bin\perl.exe -version

This is perl 5, version 18, subversion 1 (v5.18.1) built for MSWin32-x86-multi-thread-64int

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\perl\5.18.1.1>portableshell.bat
----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.portable.TXT for more info
----------------------------------------------
Perl executable: C:\perl\5.18.1.1\perl\bin\perl.exe
Perl version   : 5.18.1 / MSWin32-x86-multi-thread-64int

C:\perl\5.18.1.1>cpanm --install --auto-cleanup 1 --skip-installed --notest --quiet App::cpanminus
Successfully installed App-cpanminus-1.7001 (upgraded from 1.6940)
1 distribution installed

C:\perl\5.18.1.1>cpanm --install --auto-cleanup 1 --skip-satisfied --notest --quiet Archive::Extract Crypt::DES Compress
::Zlib Digest::MD5 Digest::SHA File::Copy::Recursive File::Which HTTP::Daemon IO::Socket::SSL JSON LWP LWP::Protocol::ht
tps Net::IP Net::NBName Net::SNMP Parse::EDID POE::Component::Client::Ping Socket::GetAddrInfo Text::Template UNIVERSAL:
:require URI::Escape Win32::Daemon Win32::Job Win32::OLE Win32::TieRegistry XML::TreePP
Successfully reinstalled Archive-Extract-0.68
You have Crypt::DES (2.07)
You have Compress::Zlib (2.061)
You have Digest::MD5 (2.53)
You have Digest::SHA (5.85)
You have File::Copy::Recursive (0.38)
You have File::Which (1.09)
You have HTTP::Daemon (6.01)
You have IO::Socket::SSL (1.953)
You have JSON (2.59)
You have LWP (6.05)
You have LWP::Protocol::https (6.04)
Successfully installed Net-IP-1.26
Successfully installed Net-NBName-0.26
Successfully installed Net-SNMP-v6.0.1
Successfully installed Parse-EDID-v1.0.4
Successfully installed POE-Test-Loops-1.353
Successfully installed IO-Pipely-0.005
Successfully installed Win32-Job-0.04
Successfully installed Win32-Console-0.09
Successfully installed POE-1.356
Successfully installed POE-Component-Client-Ping-1.173
Successfully installed ExtUtils-CChecker-0.08
Successfully installed Socket-GetAddrInfo-0.22
Successfully installed Text-Template-1.46
Successfully installed UNIVERSAL-require-0.15
You have URI::Escape (3.31)
Successfully installed Win32-Daemon-20110117
You have Win32::OLE (0.1709)
You have Win32::TieRegistry (0.26)
Successfully installed XML-TreePP-0.41
17 distributions installed

C:\perl\5.18.1.1>perl.exe -I "C:/Program Files/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools::Netwo
rk -MData::Dumper -e "print Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
Use of uninitialized value $host in substitution (s///) at C:/Program Files/FusionInventory-Agent/perl/agent/FusionInven
tory/Agent/Tools/Network.pm line 142.

C:\perl\5.18.1.1>exit
C:\perl\5.18.1.1>

Conclusion: The error exists in all the cases.

Note: Now, I haven't got any other system different to this one for to make more tests.

#11 Updated by Tomás Abad about 4 years ago

Microsoft Windows 7 Professional SP1 (x64)

C:\>ping -n 1 precumene.hgcr.sescam.jclm.es

Pinging precumene.hgcr.sescam.jclm.es [10.36.9.190] with 32 bytes of data:
Reply from 10.36.9.190: bytes=32 time<1ms TTL=128

Ping statistics for 10.36.9.190:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --version
FusionInventory Agent (2.3.2)

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --list-task
ESX (v2.2.1)
Inventory (v1.0)
WakeOnLan (v2.0)
NetDiscovery (v2.2.0)
Deploy (v2.0.4)
NetInventory (v2.2.0)

Test with the embedded Strawberry Perl 5.16.3 in fusioninventory-agent_windows-x64_2.3.2.exe.

C:\Program Files\FusionInventory-Agent\perl>bin\perl.exe -version

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\Program Files\FusionInventory-Agent\perl>bin\perl.exe -I agent/ -I lib/ -I site/ -I vendor/ -MFusionInventory::Agent:
:Tools::Network -MData::Dumper -e "print Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
$VAR1 = bless( {
                 'binip' => '00001010001001000000100110111110',
                 'prefixlen' => '32',
                 'is_prefix' => 1,
                 'ip' => '10.36.9.190',
                 'ipversion' => '4',
                 'binmask' => '11111111111111111111111111111111',
                 'last_bin' => '00001010001001000000100110111110',
                 'last_ip' => '10.36.9.190'
               }, 'Net::IP' );

Test with Strawberry Perl 5.16.3.1 Portable Edition for x64

C:\perl\5.16.3.1\x64>perl\bin\perl.exe -version

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\perl\5.16.3.1\x64>portableshell.bat
----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.portable.TXT for more info
----------------------------------------------
Perl executable: C:\perl\5.16.3.1\x64\perl\bin\perl.exe
Perl version   : 5.16.3 / MSWin32-x64-multi-thread

C:\perl\5.16.3.1\x64>cpanm --install --auto-cleanup 1 --skip-installed --notest --quiet App::cpanminus
Successfully installed App-cpanminus-1.7001 (upgraded from 1.6005)
1 distribution installed

C:\perl\5.16.3.1\x64>cpanm --install --auto-cleanup 1 --skip-satisfied --notest --quiet Archive::Extract Crypt::DES Comp
ress::Zlib Digest::MD5 Digest::SHA File::Copy::Recursive File::Which HTTP::Daemon IO::Socket::SSL JSON LWP LWP::Protocol
::https Net::IP Net::NBName Net::SNMP Parse::EDID POE::Component::Client::Ping Socket::GetAddrInfo Text::Template UNIVER
SAL::require URI::Escape Win32::Daemon Win32::Job Win32::OLE Win32::TieRegistry XML::TreePP
You have Archive::Extract (0.68)
You have Crypt::DES (2.05)
You have Compress::Zlib (2.060)
You have Digest::MD5 (2.52)
You have Digest::SHA (5.84)
You have File::Copy::Recursive (0.38)
You have File::Which (1.09)
You have HTTP::Daemon (6.01)
You have IO::Socket::SSL (1.84)
You have JSON (2.53)
You have LWP (6.04)
You have LWP::Protocol::https (6.03)
Successfully installed Net-IP-1.26
Successfully installed Net-NBName-0.26
Successfully installed Net-SNMP-v6.0.1
Successfully installed Parse-EDID-v1.0.4
Successfully installed POE-Test-Loops-1.353
Successfully installed Win32-Console-0.09
Successfully installed Win32-Job-0.04
Successfully installed Exporter-5.68 (upgraded from 5.67)
Successfully installed IO-Pipely-0.005
Successfully installed POE-1.356
Successfully installed POE-Component-Client-Ping-1.173
Successfully installed ExtUtils-CChecker-0.08
Successfully installed Socket-GetAddrInfo-0.22
Successfully installed Text-Template-1.46
Successfully installed UNIVERSAL-require-0.15
You have URI::Escape (3.31)
Successfully installed Win32-Daemon-20110117
You have Win32::OLE (0.1709)
You have Win32::TieRegistry (0.26)
Successfully installed XML-TreePP-0.41
17 distributions installed

C:\perl\5.16.3.1\x64>perl.exe -I "C:/Program Files/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools::N
etwork -MData::Dumper -e "print Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
$VAR1 = bless( {
                 'binip' => '00001010001001000000100110111110',
                 'prefixlen' => '32',
                 'is_prefix' => 1,
                 'ip' => '10.36.9.190',
                 'ipversion' => '4',
                 'binmask' => '11111111111111111111111111111111',
                 'last_bin' => '00001010001001000000100110111110',
                 'last_ip' => '10.36.9.190'
               }, 'Net::IP' );

C:\perl\5.16.3.1\x64>exit
C:\perl\5.16.3.1\x64>

Test with Strawberry Perl 5.18.1.1 Portable Edition for x64

C:\perl\5.18.1.1\x64>perl\bin\perl.exe -version

This is perl 5, version 18, subversion 1 (v5.18.1) built for MSWin32-x64-multi-thread

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\perl\5.18.1.1\x64>portableshell.bat
----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.portable.TXT for more info
----------------------------------------------
Perl executable: C:\perl\5.18.1.1\x64\perl\bin\perl.exe
Perl version   : 5.18.1 / MSWin32-x64-multi-thread

C:\perl\5.18.1.1\x64>cpanm --install --auto-cleanup 1 --skip-installed --notest --quiet App::cpanminus
Successfully installed App-cpanminus-1.7001 (upgraded from 1.6940)
1 distribution installed

C:\perl\5.18.1.1\x64>
C:\perl\5.18.1.1\x64>cpanm --install --auto-cleanup 1 --skip-satisfied --notest --quiet Archive::Extract Crypt::DES Comp
ress::Zlib Digest::MD5 Digest::SHA File::Copy::Recursive File::Which HTTP::Daemon IO::Socket::SSL JSON LWP LWP::Protocol
::https Net::IP Net::NBName Net::SNMP Parse::EDID POE::Component::Client::Ping Socket::GetAddrInfo Text::Template UNIVER
SAL::require URI::Escape Win32::Daemon Win32::Job Win32::OLE Win32::TieRegistry XML::TreePP
Successfully reinstalled Archive-Extract-0.68
You have Crypt::DES (2.07)
You have Compress::Zlib (2.061)
You have Digest::MD5 (2.53)
You have Digest::SHA (5.85)
You have File::Copy::Recursive (0.38)
You have File::Which (1.09)
You have HTTP::Daemon (6.01)
You have IO::Socket::SSL (1.953)
You have JSON (2.59)
You have LWP (6.05)
You have LWP::Protocol::https (6.04)
Successfully installed Net-IP-1.26
Successfully installed Net-NBName-0.26
Successfully installed Net-SNMP-v6.0.1
Successfully installed Parse-EDID-v1.0.4
Successfully installed POE-Test-Loops-1.353
Successfully installed Win32-Console-0.09
Successfully installed Win32-Job-0.04
Successfully installed IO-Pipely-0.005
Successfully installed POE-1.356
Successfully installed POE-Component-Client-Ping-1.173
Successfully installed ExtUtils-CChecker-0.08
Successfully installed Socket-GetAddrInfo-0.22
Successfully installed Text-Template-1.46
Successfully installed UNIVERSAL-require-0.15
You have URI::Escape (3.31)
Successfully installed Win32-Daemon-20110117
You have Win32::OLE (0.1709)
You have Win32::TieRegistry (0.26)
Successfully installed XML-TreePP-0.41
17 distributions installed

C:\perl\5.18.1.1\x64>perl.exe -I "C:/Program Files/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools::N
etwork -MData::Dumper -e "print Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
$VAR1 = bless( {
                 'ipversion' => '4',
                 'binmask' => '11111111111111111111111111111111',
                 'ip' => '10.36.9.190',
                 'binip' => '00001010001001000000100110111110',
                 'prefixlen' => '32',
                 'is_prefix' => 1,
                 'last_ip' => '10.36.9.190',
                 'last_bin' => '00001010001001000000100110111110'
               }, 'Net::IP' );

C:\perl\5.18.1.1\x64>exit
C:\perl\5.18.1.1\x64>

#12 Updated by Tomás Abad about 4 years ago

Microsoft Windows 7 Professional SP1 (x64)

Continuation...

Test with Strawberry Perl 5.16.3.1 Portable Edition for x86

C:\perl\5.16.3.1\x86>perl\bin\perl.exe -version

This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\perl\5.16.3.1\x86>portableshell.bat
----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.portable.TXT for more info
----------------------------------------------
Perl executable: C:\perl\5.16.3.1\x86\perl\bin\perl.exe
Perl version   : 5.16.3 / MSWin32-x86-multi-thread

C:\perl\5.16.3.1\x86>cpanm --install --auto-cleanup 1 --skip-installed --notest --quiet App::cpanminus
Successfully installed App-cpanminus-1.7001 (upgraded from 1.6005)
1 distribution installed

C:\perl\5.16.3.1\x86>cpanm --install --auto-cleanup 1 --skip-satisfied --notest --quiet Archive::Extract Crypt::DES Comp
ress::Zlib Digest::MD5 Digest::SHA File::Copy::Recursive File::Which HTTP::Daemon IO::Socket::SSL JSON LWP LWP::Protocol
::https Net::IP Net::NBName Net::SNMP Parse::EDID POE::Component::Client::Ping Socket::GetAddrInfo Text::Template UNIVER
SAL::require URI::Escape Win32::Daemon Win32::Job Win32::OLE Win32::TieRegistry XML::TreePP
You have Archive::Extract (0.68)
You have Crypt::DES (2.05)
You have Compress::Zlib (2.060)
You have Digest::MD5 (2.52)
You have Digest::SHA (5.84)
You have File::Copy::Recursive (0.38)
You have File::Which (1.09)
You have HTTP::Daemon (6.01)
You have IO::Socket::SSL (1.84)
You have JSON (2.53)
You have LWP (6.04)
You have LWP::Protocol::https (6.03)
Successfully installed Net-IP-1.26
Successfully installed Net-NBName-0.26
Successfully installed Net-SNMP-v6.0.1
Successfully installed Parse-EDID-v1.0.4
Successfully installed POE-Test-Loops-1.353
Successfully installed Win32-Console-0.09
Successfully installed Win32-Job-0.04
Successfully installed Exporter-5.68 (upgraded from 5.67)
Successfully installed IO-Pipely-0.005
Successfully installed POE-1.356
Successfully installed POE-Component-Client-Ping-1.173
Successfully installed ExtUtils-CChecker-0.08
Successfully installed Socket-GetAddrInfo-0.22
Successfully installed Text-Template-1.46
Successfully installed UNIVERSAL-require-0.15
You have URI::Escape (3.31)
Successfully installed Win32-Daemon-20110117
You have Win32::OLE (0.1709)
You have Win32::TieRegistry (0.26)
Successfully installed XML-TreePP-0.41
17 distributions installed

C:\perl\5.16.3.1\x86>perl.exe -I "C:/Program Files/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools::N
etwork -MData::Dumper -e "print Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
$VAR1 = bless( {
                 'binip' => '00001010001001000000100110111110',
                 'prefixlen' => '32',
                 'is_prefix' => 1,
                 'ip' => '10.36.9.190',
                 'ipversion' => '4',
                 'binmask' => '11111111111111111111111111111111',
                 'last_bin' => '00001010001001000000100110111110',
                 'last_ip' => '10.36.9.190'
               }, 'Net::IP' );

C:\perl\5.16.3.1\x86>C:\perl\5.16.3.1\x64>exit
C:\perl\5.16.3.1\x86>

Test with Strawberry Perl 5.18.1.1 Portable Edition for x86

C:\perl\5.18.1.1\x86>perl\bin\perl.exe -version

This is perl 5, version 18, subversion 1 (v5.18.1) built for MSWin32-x86-multi-thread-64int

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\perl\5.18.1.1\x86>portableshell.bat
----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.portable.TXT for more info
----------------------------------------------
Perl executable: C:\perl\5.18.1.1\x86\perl\bin\perl.exe
Perl version   : 5.18.1 / MSWin32-x86-multi-thread-64int

C:\perl\5.18.1.1\x86>cpanm --install --auto-cleanup 1 --skip-installed --notest --quiet App::cpanminus
Successfully installed App-cpanminus-1.7001 (upgraded from 1.6940)
1 distribution installed

C:\perl\5.18.1.1\x86>cpanm --install --auto-cleanup 1 --skip-satisfied --notest --quiet Archive::Extract Crypt::DES Comp
ress::Zlib Digest::MD5 Digest::SHA File::Copy::Recursive File::Which HTTP::Daemon IO::Socket::SSL JSON LWP LWP::Protocol
::https Net::IP Net::NBName Net::SNMP Parse::EDID POE::Component::Client::Ping Socket::GetAddrInfo Text::Template UNIVER
SAL::require URI::Escape Win32::Daemon Win32::Job Win32::OLE Win32::TieRegistry XML::TreePP
Successfully reinstalled Archive-Extract-0.68
You have Crypt::DES (2.07)
You have Compress::Zlib (2.061)
You have Digest::MD5 (2.53)
You have Digest::SHA (5.85)
You have File::Copy::Recursive (0.38)
You have File::Which (1.09)
You have HTTP::Daemon (6.01)
You have IO::Socket::SSL (1.953)
You have JSON (2.59)
You have LWP (6.05)
You have LWP::Protocol::https (6.04)
Successfully installed Net-IP-1.26
Successfully installed Net-NBName-0.26
Successfully installed Net-SNMP-v6.0.1
Successfully installed Parse-EDID-v1.0.4
Successfully installed POE-Test-Loops-1.353
Successfully installed Win32-Console-0.09
Successfully installed IO-Pipely-0.005
Successfully installed Win32-Job-0.04
Successfully installed POE-1.356
Successfully installed POE-Component-Client-Ping-1.173
Successfully installed ExtUtils-CChecker-0.08
Successfully installed Socket-GetAddrInfo-0.22
Successfully installed Text-Template-1.46
Successfully installed UNIVERSAL-require-0.15
You have URI::Escape (3.31)
Successfully installed Win32-Daemon-20110117
You have Win32::OLE (0.1709)
You have Win32::TieRegistry (0.26)
Successfully installed XML-TreePP-0.41
17 distributions installed

C:\perl\5.18.1.1\x86>perl.exe -I "C:/Program Files/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools::N
etwork -MData::Dumper -e "print Dumper(resolv('precumene.hgcr.sescam.jclm.es'))" 
$VAR1 = bless( {
                 'last_bin' => '00001010001001000000100110111110',
                 'last_ip' => '10.36.9.190',
                 'binip' => '00001010001001000000100110111110',
                 'ip' => '10.36.9.190',
                 'prefixlen' => '32',
                 'binmask' => '11111111111111111111111111111111',
                 'is_prefix' => 1,
                 'ipversion' => '4'
               }, 'Net::IP' );

C:\perl\5.18.1.1\x86>exit
C:\perl\5.18.1.1\x86>

Conclusion: The #2190 bug doesn't appear in Windows 7 SP1 (x64)

Guillaume, should I do more tests?

#13 Updated by Guillaume Rousse about 4 years ago

The problem seems specific to Windows XP, no need for more tests.

#14 Updated by Tomás Abad about 4 years ago

Is there any news about this issue?

#15 Updated by Tomás Abad about 4 years ago

With the new FusionInventory Agent 2.3.3 for Windows.

  • Installed on a Windows XP Professional Version 2002 SP3 (x86)
C:\Program Files\FusionInventory-Agent>perl\bin\perl.exe -version

This is perl 5, version 18, subversion 1 (v5.18.1) built for MSWin32-x86-multi-thread-64int

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --version
FusionInventory Agent (2.3.3)

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --list-task
NetDiscovery (v2.2.0)
ESX (v2.2.1)
WakeOnLan (v2.0)
Deploy (v2.0.4)
Inventory (v1.0)
NetInventory (v2.2.0)

C:\Program Files\FusionInventory-Agent>fusioninventory-agent.bat --config none --server https://precumene.hgcr.sescam.jc
lm.es/glpi/plugins/fusioninventory/ --no-task Inventory --ca-cert-file "C:\Program Files\FusionInventory-Agent\certs\hgu
cr-cert.pem" --httpd-trust 127.0.0.1,10.36.9.190 --logger File --logfile "C:\Program Files\FusionInventory-Agent\fusioni
nventory-agent.log" --daemon --no-fork --debug --debug
Use of uninitialized value $host in substitution (s///) at ../agent/FusionInventory/Agent/Tools/Network.pm line 142.

The error persists.

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

With the new FusionInventory Agent 2.3.9 for Windows.

  • Installed on a Windows XP Professional Version 2002 SP3 (x86)
C:\Archivos de programa\FusionInventory-Agent\perl\bin>perl.exe -version

This is perl 5, version 20, subversion 0 (v5.20.0) built for MSWin32-x86-multi-thread-64int

Copyright 1987-2014, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

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

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

C:\Archivos de programa\FusionInventory-Agent>fusioninventory-agent.bat --config none --server https://inventariopre.ses
cam.jclm.es/plugins/fusioninventory/ --no-task Inventory --ca-cert-dir "C:\Archivos de programa\FusionInventory-Agent\ce
rts" --httpd-trust 127.0.0.1 --logger File --logfile "C:\Archivos de programa\FusionInventory-Agent\fusioninventory-agen
t.log" --daemon --no-fork --debug
Terminating on signal SIGINT(2)
¿Desea terminar el trabajo por lotes (S/N)? n

C:\Archivos de programa\FusionInventory-Agent>

it works perfectly!. Thit is a proof.

[Fri Jul 25 10:32:49 2014][debug] FusionInventory Agent (2.3.9)
[Fri Jul 25 10:32:49 2014][debug] Configuration directory: ../../etc
[Fri Jul 25 10:32:49 2014][debug] Data directory: ../../share
[Fri Jul 25 10:32:49 2014][debug] Storage directory: ../../var
[Fri Jul 25 10:32:49 2014][debug] Lib directory: ../agent
[Fri Jul 25 10:32:49 2014][debug] [target server0] Next server contact planned for Fri Jul 25 11:12:00 2014
[Fri Jul 25 10:32:50 2014][debug] Available tasks:
[Fri Jul 25 10:32:50 2014][debug] - NetInventory: 2.2.0
[Fri Jul 25 10:32:50 2014][debug] - Deploy: 2.0.4
[Fri Jul 25 10:32:50 2014][debug] - NetDiscovery: 2.2.0
[Fri Jul 25 10:32:50 2014][debug] FusionInventory Agent initialised
[Fri Jul 25 10:33:28 2014][debug] [http server] request /status from client 10.60.22.43
[Fri Jul 25 10:33:29 2014][debug] [http server] request /now/12345678 from client 10.60.22.43
[Fri Jul 25 10:33:29 2014][debug] [http server] rescheduling next contact for target https://inventariopre.sescam.jclm.es/plugins/fusioninventory/ right now
[Fri Jul 25 10:33:30 2014][debug] [http client] Using Compress::Zlib for compression
[Fri Jul 25 10:33:33 2014][debug] running task NetInventory in process -3736
[Fri Jul 25 10:33:33 2014][info] task NetInventory execution not requested
[Fri Jul 25 10:33:39 2014][debug] running task Deploy in process -884
[Fri Jul 25 10:33:40 2014][debug] Nothing to do
[Fri Jul 25 10:33:45 2014][debug] running task NetDiscovery in process -1020
[Fri Jul 25 10:33:45 2014][debug] FusionInventory NetDiscovery task 2.2.0
[Fri Jul 25 10:33:45 2014][debug] [http client] Using Compress::Zlib for compression
[Fri Jul 25 10:33:45 2014][info] Can't run nmap, nmap detection can't be used
[Fri Jul 25 10:33:50 2014][debug] Thread 1 created
[Fri Jul 25 10:33:51 2014][debug] Thread 2 created
[Fri Jul 25 10:33:51 2014][debug] Thread 3 created
[Fri Jul 25 10:33:51 2014][debug] Thread 4 created
[Fri Jul 25 10:33:51 2014][debug] scanning range: 10.36.0.1-10.36.0.4
[Fri Jul 25 10:33:51 2014][debug] Thread 1 switched to RUN state
[Fri Jul 25 10:33:51 2014][debug] thread 1: scanning 10.36.0.1
[Fri Jul 25 10:33:52 2014][debug] Thread 2 switched to RUN state
[Fri Jul 25 10:33:52 2014][debug] thread 2: scanning 10.36.0.2
[Fri Jul 25 10:33:52 2014][debug] Thread 3 switched to RUN state
[Fri Jul 25 10:33:52 2014][debug] thread 3: scanning 10.36.0.3
[Fri Jul 25 10:33:52 2014][debug] Thread 4 switched to RUN state
[Fri Jul 25 10:33:52 2014][debug] thread 4: scanning 10.36.0.4
[Fri Jul 25 10:34:21 2014][debug] thread 1: scanning 10.36.0.1 with snmp credentials 2: failure
[Fri Jul 25 10:34:21 2014][debug] thread 3: scanning 10.36.0.3 with snmp credentials 2: failure
[Fri Jul 25 10:34:21 2014][debug] thread 2: scanning 10.36.0.2 with snmp credentials 2: failure
[Fri Jul 25 10:34:21 2014][debug] thread 4: scanning 10.36.0.4 with snmp credentials 2: failure
[Fri Jul 25 10:34:48 2014][debug] thread 1: scanning 10.36.0.1 with snmp credentials 1: failure
[Fri Jul 25 10:34:48 2014][debug] thread 3: scanning 10.36.0.3 with snmp credentials 1: failure
[Fri Jul 25 10:34:49 2014][debug] thread 2: scanning 10.36.0.2 with snmp credentials 1: failure
[Fri Jul 25 10:34:49 2014][debug] thread 4: scanning 10.36.0.4 with snmp credentials 1: failure
[Fri Jul 25 10:35:16 2014][debug] thread 1: scanning 10.36.0.1 with snmp credentials 3: failure
[Fri Jul 25 10:35:16 2014][debug] thread 1: nothing found for 10.36.0.1
[Fri Jul 25 10:35:16 2014][debug] Thread 1 switched to STOP state
[Fri Jul 25 10:35:16 2014][debug] thread 3: scanning 10.36.0.3 with snmp credentials 3: failure
[Fri Jul 25 10:35:16 2014][debug] thread 3: nothing found for 10.36.0.3
[Fri Jul 25 10:35:16 2014][debug] Thread 3 switched to STOP state
[Fri Jul 25 10:35:16 2014][debug] thread 2: scanning 10.36.0.2 with snmp credentials 3: failure
[Fri Jul 25 10:35:16 2014][debug] thread 2: nothing found for 10.36.0.2
[Fri Jul 25 10:35:16 2014][debug] Thread 2 switched to STOP state
[Fri Jul 25 10:35:16 2014][debug] thread 4: scanning 10.36.0.4 with snmp credentials 3: failure
[Fri Jul 25 10:35:16 2014][debug] thread 4: nothing found for 10.36.0.4
[Fri Jul 25 10:35:16 2014][debug] Thread 4 switched to STOP state
[Fri Jul 25 10:35:17 2014][debug] Thread 4 deleted
[Fri Jul 25 10:35:18 2014][debug] Thread 1 deleted
[Fri Jul 25 10:35:18 2014][debug] Thread 3 deleted
[Fri Jul 25 10:35:18 2014][debug] Thread 2 deleted

It seems #2607 resolves this bug too.

I want to do another one test, in any case.

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

Hello,

I don't know why this test doesn't work.

F:\perl\5.20.0.1>perl\bin\perl.exe -version

This is perl 5, version 20, subversion 0 (v5.20.0) built for MSWin32-x86-multi-thread-64int

Copyright 1987-2014, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

F:\perl\5.20.0.1>portableshell.bat
----------------------------------------------
 Welcome to Strawberry Perl Portable Edition!
 * URL - http://www.strawberryperl.com/
 * see README.TXT for more info
----------------------------------------------
Perl executable: F:\perl\5.20.0.1\perl\bin\perl.exe
Perl version   : 5.20.0 / MSWin32-x86-multi-thread-64int

F:\perl\5.20.0.1>cpanm --install --auto-cleanup 1 --skip-installed --notest --quiet App::cpanminus
App::cpanminus is up to date. (1.7004)

F:\perl\5.20.0.1>cpanm --install --auto-cleanup 1 --skip-satisfied --notest --quiet Archive::Extract Compress::Zlib Cryp
t::DES Digest::MD5 Digest::SHA File::Copy::Recursive File::Which HTTP::Daemon IO::Socket::SSL JSON LWP LWP::Protocol::ht
tps Net::IP Net::NBName Net::Write Net::Write::Layer2 Net::SNMP Parse::EDID POE::Component::Client::Ping Socket::GetAddr
Info Text::Template UNIVERSAL::require URI::Escape Win32::Daemon Win32::Job Win32::OLE Win32::TieRegistry XML::TreePP
You have Archive::Extract (0.72)
You have Compress::Zlib (2.064)
You have Crypt::DES (2.07)
You have Digest::MD5 (2.53)
You have Digest::SHA (5.91)
You have File::Copy::Recursive (0.38)
You have File::Which (1.09)
You have HTTP::Daemon (6.01)
You have IO::Socket::SSL (1.991)
You have JSON (2.90)
You have LWP (6.06)
You have LWP::Protocol::https (6.04)
Successfully installed Net-IP-1.26
Successfully installed Net-NBName-0.26
Successfully installed Class-Gomor-1.02
! Configure failed for Net-Pcap-0.17. See F:\perl\5200~1.1\data\.cpanm\work\1406297027.3384\build.log for details.
! Installing the dependencies failed: Module 'Net::Pcap' is not installed
! Bailing out the installation for Net-Write-1.07.
Successfully installed Net-SNMP-v6.0.1
Successfully installed Parse-EDID-v1.0.6
Successfully installed POE-Test-Loops-1.358
Successfully installed IO-Pipely-0.005
Successfully installed POE-1.364
Successfully installed POE-Component-Client-Ping-1.174
Successfully installed ExtUtils-CChecker-0.09
Successfully installed Socket-GetAddrInfo-0.22
Successfully installed Text-Template-1.46
Successfully installed UNIVERSAL-require-0.17
You have URI::Escape (3.31)
You have Win32::Daemon (20131206)
You have Win32::Job (0.05)
You have Win32::OLE (0.1712)
You have Win32::TieRegistry (0.26)
Successfully installed XML-TreePP-0.42
14 distributions installed

F:\perl\5.20.0.1>perl.exe -I "C:/Archivos de programa/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools
::Network -MData::Dumper -e "print Dumper(resolv('inventariopre.sescam.jclm.es'))" 
Undefined subroutine &main::resolv called at -e line 1.

F:\perl\5.20.0.1>

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

Yes, it was the problem.

F:\perl\5.20.0.1>perl.exe -I "C:/Archivos de programa/FusionInventory-Agent/perl/agent/" -MFusionInventory::Agent::Tools
::Network -MData::Dumper -e "print Dumper(resolve('inventariopre.sescam.jclm.es'))" 
$VAR1 = bless( {
                 'binmask' => '11111111111111111111111111111111',
                 'is_prefix' => 1,
                 'binip' => '00001010001111000001011000101011',
                 'last_bin' => '00001010001111000001011000101011',
                 'ip' => '10.60.22.43',
                 'prefixlen' => '32',
                 'last_ip' => '10.60.22.43',
                 'ipversion' => '4'
               }, 'Net::IP' );

Y:\tmp\perl>

Confirmed, this issue disappears with Strawberry Perl 5.20.0.1.

Guillaume, do you close this issue or do you chage its project and assign it to me?.

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

  • Subject changed from name to address conversion failure on windows to name to address conversion failure on Windows XP

Also available in: Atom PDF