I often find myself out of the office for work and with the need to access my lab remotely.
Because I hate wasting current, I normally leave on only my mini-server with Nethserver installed and, via WOL l activate what I need at the moment (QNAP nas, another self-made NAS with FreeNAS, whitebox ESXi etc.).
This function is already implemented in Nethserver, simply give the command via SSH:
# ether-wake -i <interface_name (eth0, eth1, etc.)> 00:22:68:5E:34:06 (MAC Address of device you want to activate)
It would be very convenient, and probably easy to implement a WOL management page , maybe under “Administration”.
For example, the MAC address management could be made through the page of the DNS host via an optional field.
Also, I think that this feature could be useful in the management of network backup, for example managing a script that wakes up the target, backing up and at the end of the task switch-off the target.
Do you think it is possible to implement a similar function?
Thank you in advance
I can see a small package for this being very useful to NS.
But it has to be analysed and the best approach taken.
For example a list of currently configured static ip leases could appear and you select the desired host and click “Wake”
At the top of that list / or drop-down you can have a “user enter MAC address” field.
if you know the mac address of the device and it is not added to static leases in DHCP you can enter it manually.
glad to know that you like my idea
The approach could be twofold: if I make a DHCP reservation (or static IP lease) I alread have a list of MAC address (that’s obvious, I need to bind an IP to a physical address in order to allow the reservation). But not everybody uses DHCP reservations, especially when you have few clients on a lan. Hence the idea of adding an optional field (optional as “non mandatory”) in the DNS host list. In this case the WOL management page could get the IP/MAC bindings from both DHCP reservations AND DNS hosts.
Another cool feature could be adding a sort of MAC autodiscover, given the IP address. Trivially a GUI for
Hi @ladvv and welcome to the NethServer community! I am glad you’ve found our forums and started asking questions.
NethServer is a community driven project so the correct answer to your question is: because nobody yet developed the module.
That might sound too simple as an answer but in essence it is what NethServer is all about and gets its power from: ideas from community members that need a feature and start working on it so the feature becomes available.
There is quite a simple procedure for new features and you started off with the first step by creating a feature request.
In the feature request we will discuss what would be necessary to accomplish the request and if there are multiple options.
The 2nd step is creating a new topic with a howto install the feature on NethServer.
The 3rd step is creating the module.
Maybe you can explain a bit what you would like to see in WOL support in NethServer. Maybe even a bit of background info on the feature, how Linux/CentOS/NethServer can support WOL and what networkcards support WOL.
Should there be some autodiscovery of Mac addresses available for WOL implementation? I don’t know if it is possible, but should there be some kind of “human readable translation” from macaddress to IP/device?
Looking forward to your response and cooperation in creating this feature.
We already did it here. Probably an official implementation though has to be much more integrated (e.g. inside the DHCP module, for example) as we also ‘hijacked’ the hosts db for our purposes there. Most of the code needed for the NethGUI is indeed in the repo.