Home > Archive > alt.certification.cisco > June 2002 > Timestamped ping





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Timestamped ping
Thomas Kuborn

2002-06-24, 6:40 pm

Dear ng,

Anyone knows of a ping utility for windows that will print the time & date
before sending packets ?

Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
Reply from 194.78.47.17: bytes=32 time=60ms TTL=118

would be

24-06-2002 12:10:09 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
24-06-2002 12:10:10 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
24-06-2002 12:10:11 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118

Cheers,

Tom


Hansang Bae

2002-06-24, 8:25 pm

In article <3d16f136$0$7117$4d4efb8e@news.be.uu.net>, thomas@kuborn.be
says...
> Dear ng,
>
> Anyone knows of a ping utility for windows that will print the time & date
> before sending packets ?
>
> Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
>
> would be
>
> 24-06-2002 12:10:09 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> 24-06-2002 12:10:10 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> 24-06-2002 12:10:11 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118



I don't know of any. Maybe pathping that comes with W2K? If not, you could
just redirect "time"

i.e:

echo.|time |find "current" >> C:\foobar.txt
ping blah >> C:\foobar.txt





--

hsb

"Somehow I imagined this experience would be more rewarding" Calvin
******************************
******************************
********
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
******************************
******************************
********
Thomas Kuborn

2002-06-25, 8:25 am

Yup I think about scripting/batching files too but the problem is I dont
know how to program DOS ...

So either someone delivers a working batch to me or I'm stuck hehe

Here's the error message I get using the script you proposed.
The process cannot access the file because
it is being used by another process.

Any idea ?

Tom


"Hansang Bae" <hbae_@_nyc.rr.com.REMOVE_> wrote in message
news:MPG.17819914bb7b4aea989b97@news-server.nyc.rr.com...
> In article <3d16f136$0$7117$4d4efb8e@news.be.uu.net>, thomas@kuborn.be
> says...
> > Dear ng,
> >
> > Anyone knows of a ping utility for windows that will print the time &

date
> > before sending packets ?
> >
> > Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> > Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> > Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> >
> > would be
> >
> > 24-06-2002 12:10:09 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> > 24-06-2002 12:10:10 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118
> > 24-06-2002 12:10:11 Reply from 194.78.47.17: bytes=32 time=60ms TTL=118

>
>
> I don't know of any. Maybe pathping that comes with W2K? If not, you

could
> just redirect "time"
>
> i.e:
>
> echo.|time |find "current" >> C:\foobar.txt
> ping blah >> C:\foobar.txt
>
>
>
>
>
> --
>
> hsb
>
> "Somehow I imagined this experience would be more rewarding" Calvin
> ******************************
******************************
********
> Due to the volume of email that I receive, I may not not be able to
> reply to emails sent to my account. Please post a followup instead.
> ******************************
******************************
********



Hansang Bae

2002-06-25, 9:25 pm

In article < 3d18717a$0$12225$4d4efb8e@news
.be.uu.net>, thomas@kuborn.be
says...
> Yup I think about scripting/batching files too but the problem is I dont
> know how to program DOS ...
>
> So either someone delivers a working batch to me or I'm stuck hehe
>
> Here's the error message I get using the script you proposed.
> The process cannot access the file because
> it is being used by another process.



Have a look at this (best way to learn is via looking at examples)

******************************
******************************
**************

From: Question 115
Date: 02 February 2002
Subject: How can I script a network reachability test?
Answer by: Hansang Bae <hbae_@_nyc.rr.com.REMOVE_>

Today a trouble ticket was elevated to our design team. It seems a bunch
of users are locking up while using Outlook with OpenMail servers. Not
sure if it was network, Outlook, OpenMail server, or combination of the
above. Since the users were somewhat senior level folks, it was not
realistic to have to jot down detailed notes about when it happened etc.

Since the PCs were all Wintel based, I wrote this in a hurry to include in
their "START" menu. Not being able to use Unix tools pretty much tied my
hands, and I didn't put in a lot of error checking, but hey, I only had
about 30 minutes to whip this up.

Although it's a bit simple hope you find it somewhat useful.

------ BEGIN BATCH FILE ----
TITLE TESTING THE NETWORK
@echo off
cls
echo.
echo.
echo.
echo.
echo.
echo ******************************
****************************
echo ******************************
****************************
echo ******************************
****************************
echo * *
echo * *
echo * Running network test........ *
echo * This windows will close automatically when *
echo * the testing has been completed. *
echo * *
echo * Please call XYZ at XYZ if you have any questions *
echo * *
echo * *
echo ******************************
****************************
echo ******************************
****************************
echo ******************************
****************************
:
: Create a temp folder for our use and start with some flower
: box delimeters
:
if not exist c:\mailte$t md c:\mailte$t
echo ******************************
*********>> c:\mailte$t\%username%.txt
echo ******************************
*********>> c:\mailte$t\%username%.txt
:
: Pipe in some blank lines and date time stamp.
echo. >> c:\mailte$t\%username%.txt
echo.|date | find /i "current" >> c:\mailte$t\%username%.txt
echo.|time | find /i "current" >> c:\mailte$t\%username%.txt
echo. >> c:\mailte$t\%username%.txt
:
: Start a trace route w/o Rev-DNS lookups to our servers.
: The server name is given as a command line argument.
echo TRACE ROUTING TO %1 >>c:\mailte$t\%username%.txt
tracert -d %1.blah.foobar.com >>c:\mailte$t\%username%.txt
echo. >> c:\mailte$t\%username%.txt
:
: ping with max sized ICMP packets
echo PINGING to %1 >>c:\mailte$t\%username%.txt
:
:!!!unwrap the next two lines!!!
ping -L 1472 %1.blah.foobar.com | find /i "Reply from"
>>c:\mailte$t\%username%.txt

:
echo. >> c:\mailte$t\%username%.txt
echo. >> c:\mailte$t\%username%.txt
:
: Now ftp it to the 2.104 server using the script file
: C:\ftpcmd.txt
:
ftp -s:c:\ftpcmd.txt x.x.2.104
exit


Contents of ftpcmd.txt file:
cisco
cisco1
put c:\mailte$t\*.txt
bye
exit

Basically, it's
username
password
ftp command
ftp command
etc. etc.


******************************
******************************
**************
--

hsb

"Somehow I imagined this experience would be more rewarding" Calvin
******************************
******************************
********
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
******************************
******************************
********
Thomas Kuborn

2002-06-26, 10:25 am

much appreciated ... I'm sure I'll be able to working something out

thx again

Tom

Hansang Bae wrote:

> In article < 3d18717a$0$12225$4d4efb8e@news
.be.uu.net>, thomas@kuborn.be
> says...
>
>>Yup I think about scripting/batching files too but the problem is I dont
>>know how to program DOS ...
>>
>>So either someone delivers a working batch to me or I'm stuck hehe
>>
>>Here's the error message I get using the script you proposed.
>>The process cannot access the file because
>>it is being used by another process.
>>

>
>
> Have a look at this (best way to learn is via looking at examples)
>
> ******************************
******************************
**************
>
> From: Question 115
> Date: 02 February 2002
> Subject: How can I script a network reachability test?
> Answer by: Hansang Bae <hbae_@_nyc.rr.com.REMOVE_>
>
> Today a trouble ticket was elevated to our design team. It seems a bunch
> of users are locking up while using Outlook with OpenMail servers. Not
> sure if it was network, Outlook, OpenMail server, or combination of the
> above. Since the users were somewhat senior level folks, it was not
> realistic to have to jot down detailed notes about when it happened etc.
>
> Since the PCs were all Wintel based, I wrote this in a hurry to include in
> their "START" menu. Not being able to use Unix tools pretty much tied my
> hands, and I didn't put in a lot of error checking, but hey, I only had
> about 30 minutes to whip this up.
>
> Although it's a bit simple hope you find it somewhat useful.
>
> ------ BEGIN BATCH FILE ----
> TITLE TESTING THE NETWORK
> @echo off
> cls
> echo.
> echo.
> echo.
> echo.
> echo.
> echo ******************************
****************************
> echo ******************************
****************************
> echo ******************************
****************************
> echo * *
> echo * *
> echo * Running network test........ *
> echo * This windows will close automatically when *
> echo * the testing has been completed. *
> echo * *
> echo * Please call XYZ at XYZ if you have any questions *
> echo * *
> echo * *
> echo ******************************
****************************
> echo ******************************
****************************
> echo ******************************
****************************
> :
> : Create a temp folder for our use and start with some flower
> : box delimeters
> :
> if not exist c:\mailte$t md c:\mailte$t
> echo ******************************
*********>> c:\mailte$t\%username%.txt
> echo ******************************
*********>> c:\mailte$t\%username%.txt
> :
> : Pipe in some blank lines and date time stamp.
> echo. >> c:\mailte$t\%username%.txt
> echo.|date | find /i "current" >> c:\mailte$t\%username%.txt
> echo.|time | find /i "current" >> c:\mailte$t\%username%.txt
> echo. >> c:\mailte$t\%username%.txt
> :
> : Start a trace route w/o Rev-DNS lookups to our servers.
> : The server name is given as a command line argument.
> echo TRACE ROUTING TO %1 >>c:\mailte$t\%username%.txt
> tracert -d %1.blah.foobar.com >>c:\mailte$t\%username%.txt
> echo. >> c:\mailte$t\%username%.txt
> :
> : ping with max sized ICMP packets
> echo PINGING to %1 >>c:\mailte$t\%username%.txt
> :
> :!!!unwrap the next two lines!!!
> ping -L 1472 %1.blah.foobar.com | find /i "Reply from"
> >>c:\mailte$t\%username%.txt

> :
> echo. >> c:\mailte$t\%username%.txt
> echo. >> c:\mailte$t\%username%.txt
> :
> : Now ftp it to the 2.104 server using the script file
> : C:\ftpcmd.txt
> :
> ftp -s:c:\ftpcmd.txt x.x.2.104
> exit
>
>
> Contents of ftpcmd.txt file:
> cisco
> cisco1
> put c:\mailte$t\*.txt
> bye
> exit
>
> Basically, it's
> username
> password
> ftp command
> ftp command
> etc. etc.
>
>
> ******************************
******************************
**************
>


Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net