Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » No, I Will Not Fix Your #@$!! Computer » Need a ping utility that saves to a log file
Search Topic:
Uniqs:
581
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Does anyone here know Xerox DocuShare? »
« Time Synch Software  
AuthorAll Replies

lordfly

join:2000-10-12
Homestead, FL
·AT&T Southeast

Need a ping utility that saves to a log file

I have a project where we need to ping a networked device at least once a day (I prefer at least once an hour) to determine if it is still responding. This project is going to run for about two years.

A couple of years ago I had a nice free program that did just that, but I have no idea where it is.

Sure I could use the windows ping and put it in the scheduler, but I only need one line of data per reading and the windows ping utility puts out too much info.

Can someone please help?

Thanks,
Tony


Kalford
Seems To Be An Rtfm Problem.
Premium,MVM
join:2001-03-20
Ontario
·Rogers Hi-Speed

PingPlotter has a freeware version but I am not sure about whether it will save to log files.

If not then their standard version will and it's very affordable.

»www.pingplotter.com/download.html
--
Through My Eyes

lordfly

join:2000-10-12
Homestead, FL
·AT&T Southeast

said by Kalford See Profile :

PingPlotter has a freeware version but I am not sure about whether it will save to log files.

If not then their standard version will and it's very affordable.

»www.pingplotter.com/download.html
Too much tech. There has to be a program that just pings and outputs the date/time and response times and/or if it is dead or alive. It is almost like I need to write one myself. Something simple that I could deploy to other sites around the world without too much hassle.

Thanks for the suggestion though.


refused
keeping IT real

join:2005-10-10
Redding, CA
reply to lordfly
»fping.sourceforge.net/

lordfly

join:2000-10-12
Homestead, FL
·AT&T Southeast

said by refused See Profile :

»fping.sourceforge.net/
Looks promising and simple. I will let you know.

Thanks so far for the suggestions. More More

chrisretusn
Retired
Premium
join:2007-08-13
Philippines


edit:
May 9th, @08:28PM

said by refused See Profile :

»fping.sourceforge.net/
That is a *nix program.

This is what I use; same name; different author.

»www.kwakkelflap.com/fping.html

The batch file I use:

Here is a sample of the logged output:


--
Chris
Living in Paradise!!

Squidii

join:2004-06-30
Little Rock, AR
reply to lordfly
pingem!

»www.frankenfeld.dk/pingem/eng.html


Pingman

@teksavvy.com

reply to lordfly
Go to CMD Prompt
type:

ping www.google.com > c:\test.txt (4pings)

or

ping www.google.com -t > c:\test.txt (continous)
^^^^
For this instance when you want to stop, make sure you hit ctrl + c instead of just closing the cmd window so that you retain the statistics at the bottom

All this does is port the results into a txt file in the root directory with the name that you specify

The only other thing you need is to add timestamps but my mind isnt working at the moment, just do a bit of research

Once you get the timestamp sorted ure good to go - one less prog to install


tekmunki
Tekmunki
Premium
join:2001-12-06
Lake City, FL
clubs:
·NuVox Communications
·Comcast


edit:
May 11th, @12:29AM

said by Pingman :

Once you get the timestamp sorted ure good to go - one less prog to install
echo %time% %date% > c:\test.txt

Just put it all in a batch with your ping script.

chrisretusn
Retired
Premium
join:2007-08-13
Philippines

said by tekmunki See Profile :

said by Pingman :

Once you get the timestamp sorted ure good to go - one less prog to install
echo %time% %date% > c:\test.txt

Just put it all in a batch with your ping script.
So you end up with?

@echo off
echo %time% %date% > c:\test.txt
ping www.google.com -t > c:\test.txt

Will not work. The first c:\test.txt will be overwritten by the second one. The batch file needs to be as follows:

@echo off
echo %time% %date% > c:\test.txt
ping www.google.com -t >> c:\test.txt

Note the ">>", this will append the ping output to c:\test.txt

It is not a good idea to output to c:\, make it a directory of the root.

The other possible problem with this batch file is it only records when the ping starts, not each ping. After a day or two of running you really have nothing to work with but several 10,000+ pings. Date and time of each ping would allow for a better evaluation of the data.
--
Chris
Living in Paradise!!


yock
The Internet Is For Porn
Premium
join:2000-11-21
Fairfield, OH
reply to lordfly
Do you really need the ping results, or do you just need notified when the ping times out?

lordfly

join:2000-10-12
Homestead, FL
·AT&T Southeast

said by yock See Profile :

Do you really need the ping results, or do you just need notified when the ping times out?
Ah, back to Monday Morning.

Anyway, the requested idea is to ping the unit once per day. That means at least once during the day the unit is pinged and the result is logged in a file. This project is going around the globe, so I am obviously looking for something simple and that can provide a single line of data per day.

Now personally I would prefer to ping more often because sometimes pings fail due to other reasons, no power, connector comes loose or in the case of wireless, there is excessive moisture in the air which absorbs the signal.

Thanks for all the replies so far.

I have one program right now running, don't remember the name, but it e-mails out a daily result with up time and down time. Pretty cool, but it doesn't log to a file that I can find yet.


Serbtastic
You Know How Many People I Have Buried?
Premium
join:2002-02-24
Stoney Creek

reply to lordfly
Just schedule the following batch file once per day:

@echo off
echo %date% %time%>>C:\test.txt
ping -n 1 www.dslreports.com | find /i "packets">>C:\test.txt

From this you get:
1. date/time stamp
2. one ping (-n 1) to host (www.dslreports.com, you can use an IP here instead)
3. one line of output showing failure/success

All logged to file C:\test.txt (change as required).


jm

join:2003-09-21
Graceville, FL

reply to lordfly
Here's what I used when we needed something similar done.
You can remove the unneeded lines.

lordfly

join:2000-10-12
Homestead, FL
·AT&T Southeast

reply to Serbtastic
said by Serbtastic See Profile :

Just schedule the following batch file once per day:

@echo off
echo %date% %time%>>C:\test.txt
ping -n 1 www.dslreports.com | find /i "packets">>C:\test.txt

From this you get:
1. date/time stamp
2. one ping (-n 1) to host (www.dslreports.com, you can use an IP here instead)
3. one line of output showing failure/success

All logged to file C:\test.txt (change as required).
How simple, just need to modify to append the date/time to the line.

lordfly

join:2000-10-12
Homestead, FL
·AT&T Southeast

reply to jm
said by jm See Profile :

Here's what I used when we needed something similar done.
You can remove the unneeded lines.
Okay, got date and time, but can it be put on the same line as the result from the ping something like:

05/12/2008 12:30pm Packets: Sent = 1, Received = 1, Lost = 0 (0% loss).

That would be combining yours with Serbtastic's ping.

Thanks for your help guys.

lordfly

join:2000-10-12
Homestead, FL
·AT&T Southeast

reply to lordfly
Okay thanks to you guys and some previous research for another project here is my final batch file

@Echo OFF
TITLE Ping Device
REM Pinger.CMD
REM takes the IP address of %1 and outputs to the %1.txt file the
REM line that includes date time pass/fail for ping
REM
REM
REM -------------------------------------------------------------

IF %1.==. GoTo USAGE
Set CURRDATE=%TEMP%\CURRDATE.TMP
Set CURRTIME=%TEMP%\CURRTIME.TMP
Set CURRPING=%TEMP%\CURRPING.TMP

DATE /T > %CURRDATE%
TIME /T > %CURRTIME%
ping -n 1 %1 | find /i "packets" > %CURRPING%

Set PARSEARG="eol=; tokens=1,2,3,4* delims=/, "
For /F %PARSEARG% %%i in (%CURRDATE%) Do SET DDMMYYYY=%%j/%%k/%%l

Set PARSEARG="eol=; tokens=1,2,3* delims=:, "
For /F %PARSEARG% %%i in (%CURRTIME%) Do Set HHMM=%%i:%%j%%k

Set PARSEARG="EOL=; tokens=1*"
FOR /F %PARSEARG% %%i in (%CURRPING%) Do Set PPPP=%%i %%j

Echo %DDMMYYYY% %HHMM% %PPPP% >>%1.txt

GoTo END

:USAGE
Echo Usage: Pinger IPaddress
Echo Pings IPaddress and oppends results to IPaddress.txt

GoTo END

:END
REM
TITLE Command Prompt
I called it pinger.bat but I am not going to put any legal constraints on this because it is just adaptations of everyone's work. I will modify this to put the output file in a specific directory and may tweak it more, but generally this is all I needed. Can I be safe that this code would work on pretty much any windows 95/98/NT/2K/XP/VISTA computer?


TechieZero
Tools Are Using Me
Premium
join:2002-01-25
Wesley Chapel, FL
Since DOS really not has changed much in a few years, its a safe bet that this will work everywhere. You are good to go.
Forums » Tech and Talk » OS and Software » No, I Will Not Fix Your #@$!! ComputerDoes anyone here know Xerox DocuShare? »
« Time Synch Software  


Wednesday, 08-Oct 03:07:48 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.
page compression OFF
Most commented news this week
· [129] It's Cable TV Rate Hike Season
· [80] Wholesale Bandwidth Prices Still Dropping
· [71] Half Of New iPhone Owners Came From Verizon
· [65] Supreme Court TiVo/Echostar Ruling
· [58] XOHM Online In Additional Launch Markets
· [54] AT&T Kills Off $20 Unlimited Pre-Paid Data
· [43] Microsoft: U.S. Broadband Policy 'Total Failure'
· [33] Customers Still Annoyed By FiOS Billing
· [23] Verizon Says Alltel Deal On Schedule
· [23] Portland Lets Wi-Fi Network Rust
Most people now reading
· Upgrades [TekSavvy]
· KFC 10.00 challenge [General Questions]
· Texas Realignment Thread - 10/6 [Verizon FIOS TV]
· Extjs grid combo box. [Webmasters and Developers]
· [XPAV infection?] Cannot log in to windows, nor safe mode [Security]
· Acronis True Image Home 2009 Final Released! [Software]
· Heads up; Usenet, "Rarpassgen.exe" virus [TekSavvy]
· TDSSserv [Security Cleanup]
· Extreme HD and Essentials [Verizon FIOS TV]