English 中文(简体)
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 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 plugged

i 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 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.





相关问题
How can I obtain battery level inside a Linux kernel module?

I am trying to get the battery level inside a Linux kernel module (the module is inserted via modprobe). I would ideally like to use a kernel API call to get the battery information. I have searched ...

C#: How to wake up system which has been shutdown?

Is there any Win32 API for waking up a system that has been shut down, at a specific time? I have seen a program named Autopower On which is able to power the system on at a specified time.

Programmatically change Windows power settings

Is it possible to change the power-saving behaviour of a laptop computer on lid close from hibernate/standby/shutdown to Do Nothing from the .NET Framework? Edit: it would appear that by setting the ...

Execute a PyQt app from an acpi event in linux

I want to use a PyQt application to display an image when some acpi event is triggered under linux. I already setting up the configuration for the event and the python scrip is executed when the ...

Setting an ACPI field in Linux

I ve a netbook that is running the fan a bit to early for my liking. I ve found a Windows-only solution to reducing the fan noise but I m using Ubuntu on this computer. In the Windows solution the ...

Shutdown computer in MS-DOS using ACPI

I have MS-DOS 6.22 running on a Pentium based computer (motherboard supports ACPI), and would like to know if there was an assembly language routine I could use to shut down the computer, or is it a ...

热门标签