Scripts Thread, No Ping Script in Coding and Web Development; I'll add this to the Admin Bar at some point but in the mean time it may be handy for ...
I'll add this to the Admin Bar at some point but in the mean time it may be handy for some as just a stand alone scheduled script. Its basically a ping logger - you enter the IP addresses or dns entries in the .ini file. Make sure the .ini file is in the same directory as the script and fire it off - it will then create a file called 'No Ping Log.txt' which will report any IP or dns entries that are not pinging.
I use it to run checks on a selection of IP addresses etc on our network, printers, access points, servers, NAS boxes etc every morning. I can then check the log file and see any problems that I may be able to sort out quickly.
The addresses.ini file provided is a example - change the IPs etc and add more a line at a time by just adding another:
address6=10.0.0.150
address7=ourdomain.local
The log file when it encounters a non pingable address will look something like this:
No Ping On 10.0.0.9 at 14:36:30 on 2008-02-21
No Ping On 10.0.0.10 at 14:36:32 on 2008-02-21
No Ping On 10.0.0.9 at 14:37:21 on 2008-02-21
No Ping On 10.0.0.10 at 14:37:24 on 2008-02-21
No Ping On www.edugeek.au at 14:43:23 on 2008-02-21
If you get any problems or have comments - let me know. I get lonely.....
Just the thing I wanted as was just going to post if anyone had a suggestion for something to do that..what timing...trouble is everytime I try to download it it says corrupt file. Anyone email it to me please?
tech.support @ central.doncaster.sch.uk
Just the thing I wanted as was just going to post if anyone had a suggestion for something to do that..what timing...trouble is everytime I try to download it it says corrupt file. Anyone email it to me please?
tech.support @ central.doncaster.sch.uk
Just E-mailed you the zip file......
Then it bounced back with the zip file removed.....
I'll rename it .DOC - you will then need to rename it .zip
Thanks Mattx, got the file, had a look at it, but can I make it ping my connection virtually constantly to create a log of when my internet connection si down or having problems as that what I really want to do. My broadband connection just goes to sleep regularily these days and want some evidence for my ISP to show it not just me imagining it or is there some other software I should be using but it needs to log the times etc when the net is not available i.e. web pages just won't load.
Thanks Mattx, got the file, had a look at it, but can I make it ping my connection virtually constantly to create a log of when my internet connection si down or having problems as that what I really want to do. My broadband connection just goes to sleep regularily these days and want some evidence for my ISP to show it not just me imagining it or is there some other software I should be using but it needs to log the times etc when the net is not available i.e. web pages just won't load.
Heh, I wrote something which did that for my ISP when I was having problems - I'll dig it out tomorrow as it's on my PC at the school.
You can have the source if you like and change it to your own requirements as it was written for my IP addresses etc at the time.
It was quite simple, it pinged an address every 2 mins, and when it didn't respond it logged it.
When I get time I'll add a GUI front for this too - that way you can run it ad hoc, and you will know when its finished, the non GUI one can be the one thats scheduled.....
Thanks Mattx, look forward to it. What in the end was your problem with your ISP. Mine is that as I said it just goes to sleep and I have to wait for it to eventually load the page.
Thanks Mattx, look forward to it. What in the end was your problem with your ISP. Mine is that as I said it just goes to sleep and I have to wait for it to eventually load the page.
Attached to this is the loop forever version of the script - it will keep going until you stop it - [ close it in the system tray ] As with the first version just put the IP addresses of your choice in the .ini file
As for the problem with my ISP - I am on cable - they blamed the junction box at the top of my road.....
P.S. I'll E-mail you this version too, I'll change the name to a .DOC file again so it gets through.
Thanks for the replies, I set one logging last night but will probably do another few just to prove my case. What would you suggest I use to ping.?
I tried tracert on my isp web page and set it to the first hop ip, but reset it to google after I thought they might object to a continuous ping being sent to it and I don't want to get their backs up when I want their help
As its a traffic light display its easy to see if there any problems. You can also config a popup if something goes wrong
Yeah but at the end of the day there is nothing more satisfying than writing your own. [ Plus mine is only 249k, freeping is 360k ] Clutching at staws ? You bet !!