Remotely get power state of a pc (like LogMeIn)
1) "on" (meaning powered on) and lan-connected with my device
2) on but the network cable is unplugged or the network card is disabled 3) "off" (that is powered off) but plugged to the lan (so i can wake it up with wol magic packet) 4) off and not pluggedi've already accomplished question #1 doing a ping command. is there a smarter way?
but the other points are all equals for my device's point of view: i can't communicate with target pc but i want to know why!i believe that 开发者_Python百科it's pretty much like logmein does. infact, it knows the power status of my pcs... but how?!
i looked for acpi status but, really, how can it be used programmatically and remotely?! hmm, seems it's not the way.
maybe there are some "magic packet" (like wol) to detect these status remotely?could you to point me to the right way?
thanks
According to the LogMeIn FAQ, in response to the question "Why does my computer show as Offline?", the response is:
The LogMeIn service must be running on the computer you want to control.
In other words, the LogMeIn service depends on software running on that computer, and that software is in touch with the central LogMeIn servers at all times.
If the service is stopped, or the computer is turned off, the servers only knows that the software is not currently able to talk to the server. For all it knows, the internet connection the machine is behind is down.
In any case, there's nothing you can do remotely without the help of software on that computer, so you need to factor that into the time needed to create such a program; ie. you need to make that extra piece of software that sits on the computer as well.
精彩评论