English 中文(简体)
可以用装置本身来唤醒伊恩·芬奇顿的作品
原标题:Can wake on lan funciton work by the device itself
There s a device with WOL function and it s enabled in Linux. In order to test the functionality of WOL I can wake it up by another computer (wakeonlan -i device_ip device_mac) where can I find the log or message about WOL success after this sent command if I do the command on the device itself when its power state is ON, can I get any successful message?
问题回答
You could use a network analyzer tool like WireShark to see the magic packet sent from another device if that s what you mean.
Wake-on-Lan is "fire and forget" so there is noting to log. Wikipedia has a pretty good explanation about how WoL works, particularly this seens relevant: "Since the magic packet is only scanned for the string above, and not actually parsed by a full protocol stack, it could be sent as payload of any network- and transport-layer protocol, although it is typically sent as a UDP datagram to port 0 (reserved port number),[6] 7 (Echo Protocol) or 9 (Discard Protocol),[7] or directly over Ethernet using EtherType 0x0842.[8] A connection-oriented transport-layer protocol like TCP is less suited for this task as it requires establishing an active connection before sending user data." It really is that simple: a simple "magic" packet containing the MAC address will wake up the computer if it parses by it s interface. IP is irrelevant other than to make the network route the packet to the right recipient, so usually it is just set to the broadcast address. Less know fact: you can wake up remote computers by forwarding any UDP port (usually port 9) on the remote router to the network broadcast address.




相关问题
Is wake on LAN possible in Flex/AIR?

Title pretty much says it all... ;) I m looking for a way to allow my AIR application to wake a computer on my local network, but can t figure out how to send an UDP packet. Of course I m talking ...

Remotely get power state of a pc (like LogMeIn)

on a device (iphone, mac, pc, etc.) i want to know if a pc (on the same lan and running windows) is 1) "on" (meaning powered on) and lan-connected with my device 2) on but the network cable is ...

Sending Wake on LAN packet from Android to PC

My Android app sends/retrieves data to/from the user s own PC using HTTP and it s working fine with a handful of beta testers. I now need to consider a situation where the PC is hibernating. I ve ...

Detect WOL possibility

I d like to detect if Wake On Lan is possible. On my router (Tomato firmware) there is a table with info - when displays device "Active (In ARP)" - it s possible to turn this device by WOL (offline ...

How to wake a PC with a PHP script?

By enabling Wake-on-LAN on my PC, I can remotely power it on. Suppose I want to send the "magic packet" from a PHP script. How would I do this? Would I need to use the cURL functions?

Shutdown and WakeUp Script C#

Hiya I am very new to C#, infact this is basically my first task set by work whilst i learn the language. Yes i am also new to programming, be gentle :). Context: My script needs to query active ...

Get mac address from IP using DHCP?

I am trying to create scripts/services that allow for waking PCs in a windows domain via WOL. Now i want to give the user the option to select an AD container as a starting point for the waking of PCs ...

热门标签