WD My Cloud(Gen2) wake on lan

Hello, everyone who may concern this topic.

I have read many articles about this topic which is about wake on lan in my cloud(2gen) firmware version v2.xxx. there is no way to do that and official support answered of this question they do not support this feature.
Anyway, I am pretty sure there is some way to do this thing (WOL) in this device.
I tried once shut it via ssh down and it works. so I think it would work to turn it on when it’s ready status.(it’s still power on when I shut it down only linux system via ssh).

or is there something good for power control this device ? I don’t really think it sleeps(HDD sleep) when I don’t use it though.( I know there is power off button on webpage controller)

The My Cloud does not support WOL. One way to achieve this would be to use one of the smart plugs. Shutdown the My Cloud then turn off the smart plug. When you want to wake up the My Cloud just turn on the smart plug.

What makes you think that? For WOL to work the networking hardware/firmware on the My Cloud has to support it. The idea of using WOL had been discussed numerous times in the past. The single bay My Cloud hardware/firmware does not (apparently) support it.

And generally when one shuts down a My Cloud, while the drive spins down and is no longer accessible. There is still power flowing (at least in the first gen v4.x versions) to the network port. As Rac8006 suggested some sort of smart plug (or automated/controlled power switch) is probably the best way to go about trying to remotely turn on a My Cloud that has been shut down.

Appreciate your reply. I may go for just sleep mode instead of smart switch.

Because it can be turned off via ssh packet so.
Anyway thanks

What can be turned off? The My Cloud itself? What SSH command are you issuing?

If I remember right from past discussions on this issue, if one issues the following command via SSH it should report back what the network port/adapter hardware on the My Cloud and should indicate if WOL is supported (or not) by the network port/adapter hardware.

ethtool eth0

For example the results on a first gen v4.x My Cloud indicates no WOL support:

# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Current message level: 0x00000036 (54)
probe link ifdown ifup
Link detected: yes

As I understand it from when I last looked at the WOL issue the network port/adapter should return the following two values in order to support WOL.

Supports Wake-on:
Wake-on:

I sent command shutdown to the device via ssh.
After it the OS is turned off but device power is still on.

Ssh sshd@“ip” sudo poweroff

However, I haven’t checked the specification of eth0 though.

#ethtool egiga0

Settings for egiga0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: uag
Wake-on: d
Link detected: yes

this is what I can see of lan specification.

and just now

root@WDMyCloud root # sudo ethtool egiga0 | grep -i wake
Supports Wake-on: uag
Wake-on: d
root@WDMyCloud root # sudo ethtool -s egiga0 wol g
root@WDMyCloud root # sudo ethtool egiga0 | grep -i wake
Supports Wake-on: uag
Wake-on: g

does it mean it’s not support wake on ? (uag)

I read that as it supports uag. But only g is set.

The shutdown command has nothing to do with WOL. One can issue a number of Linux commands to the My Cloud using SSH. For example one could issue a reboot/restart command. All poweroff is doing is telling the My Cloud Linux firmware to shut down Linux (the My Cloud OS) and issue the power off command if the hardware supports it. The single bay My Cloud firmware and hardware would need wake on lan support and apparently it doesn’t.

One can test this by shutting down their My Cloud and issuing (using the appropriate software or code for their OS) the wake on lan command. Or if they have a router that supports issuing the wake on lan command, instruct the router to issue the command.

Edit to add: The following link sort of explains in general how to enable Wake on Lan in certain cases.

https://www.calculate-linux.org/main/en/wake-on-lan_configuration

I meant to do poweroff command for shutting down it.
Of course I sent command that
wakeonlan command which is

wakeonlan -p IP SUBNETMASK MACADDRESS
But it never works(waken) after os is shutting down.