Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Is WakeOnLan broken in 2.7 [closed]

Hello,

after upgrading to 2.7 WakeOnLan seems to be broken again. On 2.6 I've patched like described here "https://github.com/OCSInventory-NG/OCSInventory-ocsreports/pull/340/files".  Do i need to patch 2.7 also or  did I miss some configuration after upgrading.

Thank you & with best regards
closed with the note: Resolved
in OCS Inventory NG server for Unix by (220 points)
closed by

2 Answers

0 votes

Hi  

Thank you for this post. I can fix the WOL bug in 2.6

by (180 points)
0 votes

It's just a small typo:

require/wol/WakeOnLan.php returns true so the following is working 

ms_computer.php

//Wake On Lan function

       if ($wol->wol_send == $l->g(true)) {
            msg_info( $l->g(1282).$wol->wol_send . "=>" . $wol_item->MACADDR . "/" . $wol_item->IPADDRESS);
        } else {
            msg_error($l->g(1282).$wol->wol_send . "=>" . $wol_item->MACADDR . "/" . $wol_item->IPADDRESS);
        }
instead of
    if ($wol->wol_send == $l->g(1282)) {
            msg_info($wol->wol_send . "=>" . $wol_item->MACADDR . "/" . $wol_item->IPADDRESS);
        } else {
            msg_error($wol->wol_send . "=>" . $wol_item->MACADDR . "/" . $wol_item->IPADDRESS);
        }
by (220 points)
 
Powered by Question2Answer
...