lan - i have a turned off computer with wol activated and i know its MAC , is there a way to check if the computer is plugged in to network?

05
2014-04
  • user286732

    I am thinking of a security system for my small company, i would like to know if there is a way to know even when the computer is turned off when the computer gets disconnected (Knowing the mac an ip)

    Imagine this, i have 20 laptops in my office , some may be on , some off, but i know everyones mac an ips , all of then have WOL capabilities activated, what i am thinking is a script that could be sending this kind of ping to the computer lets say every 30 secs to know if they are still connected to the network.

    If a computer does not answer in the 30 sec check i would immediately send an automatic email to security office in the building with the information of the machine missing, indicating exact position since i have a previous inventory of the physical location of every address and laptop, thank you in advanced for your responses..

  • Answers
  • Aron Sajan Philip

    For handling your requirement, it will be better to go for a .net application rather than sticking with a script. .Net has libraries such as System.Net which provides functions for pinging a system by providing its IP. Moreover there are library collections such as System.Net.Mail which provides e-mail facilities.


  • Related Question

    networking - Is automatic Wake On LAN possible with DD-WRT?
  • Ben Robbins

    I might be thinking the wrong way to solve this problem. If there's a better way, than tell me. I want to be able to allow my home server to sleep when it's unused, but to automatically wake up when it's accessed. My household doesn't follow a set schedule due to people working different shifts, so I can't schedule an optimal sleep/wake cycle for the server

    There is a WOL daemon for DD-WRT that sends out wake up packets on a scheduled interval, but this is not what I want. I would like for my home server to automatically sleep, but also automatically wake up when it is accessed.

    I do not want to use any kind of utility to explicitly send a wake-up packet. I have the server mapped to static IP address. I would like to know if any solution exists that would automatically send wake up packets if the static IP was considered unreachable due to the the computer being in a power-savings mode.


  • Related Answers
  • nik


    I found this for WinXP on the dd-wrt forums,

    if I put my box into hibernation, I wasn't able to wake it up anymore. The solution is very simple: go to Device manager (or run devmgmt.msc), select your ethernet adapter, double click on it and go to Power management tab. Check both Allow this device to bring the computer out of standby and Only allow management stations to bring computer out of standby.
    If you check only the former, even simple ping wil wake you computer up!

    If that does not work,
    you will probably have to keep a desktop-icon to a batch/shell script for the wakeup.

  • hyperslug

    This guy might be doing what you're asking:

    http://gaddgets.blogspot.com/2007/02/auto-wol-on-dd-wrt-on-linksys-wrt54gl.html

    I thought I would try to set it up to wake up the computer on a Port 80 (http) access if it was in "sleep" mode. ... I would parse the syslog to detect port 80 activity. ... There is a lag now, when the computer is asleep to access a page on the computer. However I find that in most cases, the browser timeout is long enough to wake the computer up and deliver the webpage.

    The script he wrote is at that link. If you're accessing on another port, change the port I suppose.