Bug #2937

Agent wake on lan doesn't work

Added by Fran├žois Pahud about 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:05/04/2015
Priority:NormalDue date:
Assignee:Guillaume Rousse% Done:

0%

Category:wake-on-lan
Target version:2.3.17
For junior contributor:No

Description

GLIP 0.84.8 / FI: 0.84+3.5 / Agent 2.3.16 / serveur wamp 2.4 / MS serveur 2008 R

During the execution of the agent (Wakeonlan) I receive the following error message in the agent logfile and Wake on lan doesnt work:

[Mon Apr 27 17:52:15 2015][error] Can't use string ("1") as a HASH ref while "strict refs" in use at ../agent/FusionInventory/Agent/Task/WakeOnLan.pm line 32

History

#1 Updated by Fran├žois Pahud about 2 years ago

On test more,
if I comment line 3 ( use Strict; ) in WakeOnLan.pm file, I don't receive the message: Can't use string ("1") as a HASH..........
But I receive an other error message: [error] no mac address defined

And with debug 2, I notice that Mac Adresse is present:

<?xml version="1.0" encoding="UTF-8" ?>
&lt;REQUEST&gt;
&lt;DEVICEID&gt;CHMS0017.emea.busch.inet-2015-05-05-17-25-25&lt;/DEVICEID&gt;
&lt;QUERY&gt;PROLOG&lt;/QUERY&gt;
&lt;TOKEN&gt;12345678&lt;/TOKEN&gt;
&lt;/REQUEST&gt;
[Wed May 6 08:34:16 2015][debug2] format: Zlib
[Wed May 6 08:34:16 2015][debug2] [http client] receiving message:
<?xml version="1.0" encoding="UTF-8"?>
&lt;REPLY&gt;
&lt;OPTION&gt;
&lt;NAME&gt;WAKEONLAN&lt;/NAME&gt;
&lt;PARAM MAC="6c:0b:84:0a:14:51"&gt;
&lt;/PARAM&gt;
&lt;/OPTION&gt;
&lt;RESPONSE&gt;SEND&lt;/RESPONSE&gt;
&lt;PROLOG_FREQ&gt;6&lt;/PROLOG_FREQ&gt;
&lt;/REPLY&gt;

#2 Updated by Guillaume Rousse about 2 years ago

  • Status changed from New to Closed
  • Assignee changed from David Durieux to Guillaume Rousse
  • Target version set to 2.3.17

Fixed in commit #a36f5fa.

#3 Updated by Guillaume Rousse about 2 years ago

  • Status changed from Closed to Resolved

Oops, waiting for release to be closed.

#4 Updated by Guillaume Rousse over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF