+ Post New Thread
Results 1 to 6 of 6
Windows Thread, Scirpt needed in Technical; Hi All, I am having a problem of a user removing the network cable from the NED box. Due to ...
  1. #1
    bottletop's Avatar
    Join Date
    Oct 2007
    Location
    Preston
    Posts
    47
    Thank Post
    3
    Thanked 4 Times in 4 Posts
    Rep Power
    15

    Scirpt needed

    Hi All,

    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.

    Many thanks

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,975
    Thank Post
    3,523
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374
    Quote Originally Posted by bottletop View Post
    Hi All,

    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.

    Many thanks
    A big poster near where it is or somewhere visible with a photo and a few steps of instructions and they should be able to follow it

  3. Thanks to mac_shinobi from:

    bottletop (12th October 2009)

  4. #3

    tmcd35's Avatar
    Join Date
    Jul 2005
    Location
    Norfolk
    Posts
    5,956
    Thank Post
    883
    Thanked 982 Times in 806 Posts
    Blog Entries
    9
    Rep Power
    343
    Hows this...

    You'll beed a txt file called 'zerobyte.txt' that is empty for comparrison puposes...

    Code:
    @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
    edited from code I found here .... Forums - DOS Ping - PC Advisor

    Save as .bat file and run as sheduled task every 10 minutes?

  5. Thanks to tmcd35 from:

    bottletop (12th October 2009)

  6. #4
    bottletop's Avatar
    Join Date
    Oct 2007
    Location
    Preston
    Posts
    47
    Thank Post
    3
    Thanked 4 Times in 4 Posts
    Rep Power
    15
    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

  7. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,975
    Thank Post
    3,523
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374
    Quote Originally Posted by bottletop View Post
    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
    Have a word with relevant members of staff making explicitly clear about the poster / instructions

  8. #6

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,975
    Thank Post
    3,523
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374
    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

    Code:
    Dim intRefreshRt:     intRefreshRt = 10000 '10 Second Refresh Rate in Milliseconds
    1 second equals 1000 milli seconds. It is already set to 10 seconds so should refresh every so often

    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
    Attached Files Attached Files



SHARE:
+ Post New Thread

Similar Threads

  1. Help needed ASAP
    By Gatt in forum Recommended Suppliers
    Replies: 6
    Last Post: 8th August 2007, 10:00 AM
  2. Serious help needed!
    By MK-2 in forum Windows
    Replies: 7
    Last Post: 7th August 2007, 01:44 PM
  3. Needed...
    By russdev in forum General EduGeek News/Announcements
    Replies: 0
    Last Post: 30th July 2007, 11:11 PM
  4. advice needed on weather a new server is needed
    By projector1 in forum Hardware
    Replies: 3
    Last Post: 24th February 2006, 10:20 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •