I am having a problem of a user removing the network cable from the NED box. Due to the layout the NED box has to be in a class room due to space. I am trying to find a scipt that can be run from the server and then send a pop up message to the teaching staff every 10 minutes or so until the cable has been reinstalled.
The reason this is needed is that I am only on site usually every other week and so this would be an ideal solution for them to quickly resolve themselves.
You'll beed a txt file called 'zerobyte.txt' that is empty for comparrison puposes...
edited from code I found here .... Forums - DOS Ping - PC AdvisorCode:@echo off if exist file1.txt del file1.txt PING 192.168.0.1 | FIND "Reply from" > file1.txt FC zerobyte.txt file1.txt > nul if errorlevel=1 goto end net send TACHERSPC the network cable is unplugged - again! :end
Save as .bat file and run as sheduled task every 10 minutes?
You would think that a poster and lables next to the network point would do the trick but this did not work. some people do not read before acting
You could ammend attached hta along with hostlist.txt
hostlist.txt stores and keeps the list of all the hosts / ip addresses you want to monitor
the hta you can run or keep minimized and you can change the time it runs to every 10 seconds or how every often you want - code is
1 second equals 1000 milli seconds. It is already set to 10 seconds so should refresh every so oftenCode:Dim intRefreshRt: intRefreshRt = 10000 '10 Second Refresh Rate in Milliseconds
You can go through the hta code and ammend any coding if you want
Its basically a hta ( HTML Application - using wmi - windows management instrumentation ) to ping a list of devices which you can ammend through the hta or via the text file and it will monitor those devices every so often , in this case every 10 seconds
have had to rename the hta to a txt file type so just rename the copy of working connectivity monitor to hta file extension and leave hostlists.txt the same unless you want to ammend the hosts in it and ensure they are in the same directory
There are currently 1 users browsing this thread. (0 members and 1 guests)