4  2008
            ping      
       ,        .  ,     ping -    ( ),     . ,  ,   ping      .             . 

   -       ping,        now.exe,   Resource Kit.     :
...
******************************************************************************** 
******************************************************************************** 
     Pinging only one PBX IP from Moskow 
-------------------------------------------------------------------------------- 
"PBX main address" 
Tue Apr 29 17:08:42 2008
Pinging a.b.16.3 with 32 bytes of data:
Reply from a.b.16.3: bytes=32 time=9ms TTL=59
Reply from a.b.16.3: bytes=32 time=10ms TTL=59
Reply from a.b.16.3: bytes=32 time=10ms TTL=59
Reply from a.b.16.3: bytes=32 time=9ms TTL=59 

Ping statistics for a.b.16.3:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), 

Approximate round trip times in milli-seconds:
    Minimum = 9ms, Maximum = 10ms, Average = 9ms
... 

    3  - pinglogger.bat, iplist.txt  pingone.bat.  iplist.txt    IP- -     IP     (     IP,     ):
[  iplist.txt]
a.b.16.3     PBX main address 

 pingone.bat   IP   (   pinglogger.bat):
[  pingone.bat]
@rem usage: pingone.bat IP_address "description" logfile
@echo -------------------------------------------------------------------------------- >> %3
@echo %2 >> %3
@now >> %3
@ping %1 >> %3 

 pinglogger.bat      .     ,      -         (        ):
[  pinglogger.bat]
:cycle
@set log=pinglog.txt
@echo ******************************************************************************** >> %log%
@echo ******************************************************************************** >> %log%
@echo      Pinging only one PBX IP from Moskow >> %log%
@for /F "tokens=1,*" %%l in (iplist.txt) do call pingone.bat %%l "%%m" %log%
goto cycle 

 .     for         IP.  for   IP iplist.txt,      IP-  . IP   %%l,   -  %%m,      pingone.bat.  %%m      -      IP-  iplist.txt  (    - "PBX main address").    pinglog.txt   @set log=pinglog.txt.       grep . . 

     :
..
******************************************************************************** 
******************************************************************************** 
     Pinging only one PBX IP from Tver 
-------------------------------------------------------------------------------- 
"Tver, PBX" 

Tue Apr 29 17:04:32 2008
Pinging a.b.16.3 with 32 bytes of data:

Reply from a.b.16.3: bytes=32 time<1ms TTL=62
Reply from a.b.16.3: bytes=32 time<1ms TTL=62
Reply from a.b.16.3: bytes=32 time<1ms TTL=62
Reply from a.b.16.3: bytes=32 time<1ms TTL=62

Ping statistics for a.b.16.3:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

******************************************************************************** 
******************************************************************************** 
     Pinging only one PBX IP from Tver 
-------------------------------------------------------------------------------- 
"Tver, PBX" 

Tue Apr 29 17:04:35 2008
Pinging a.b.16.3 with 32 bytes of data:

Reply from a.b.16.3: bytes=32 time<1ms TTL=62
..

 , ,  .        :
..
Wed Apr 30 10:02:40 2008 25% loss
Wed Apr 30 10:04:55 2008 25% loss
Wed Apr 30 10:07:14 2008 25% loss
Wed Apr 30 10:11:48 2008 50% loss
Wed Apr 30 10:15:25 2008 25% loss
Wed Apr 30 10:15:47 2008 75% loss
Wed Apr 30 10:22:45 2008 100% loss
Wed Apr 30 10:23:06 2008 100% loss
Wed Apr 30 10:23:48 2008 100% loss
Wed Apr 30 10:24:09 2008 100% loss
Wed Apr 30 10:29:41 2008 75% loss
Wed Apr 30 10:31:51 2008 25% loss
Wed Apr 30 10:35:15 2008 25% loss
Wed Apr 30 10:36:42 2008 100% loss
Wed Apr 30 10:37:03 2008 75% loss
Wed Apr 30 10:38:00 2008 75% loss
Wed Apr 30 10:38:16 2008 100% loss
Wed Apr 30 10:38:58 2008 100% loss
Wed Apr 30 10:39:19 2008 100% loss
Wed Apr 30 10:39:40 2008 100% loss
Wed Apr 30 10:40:01 2008 75% loss
Wed Apr 30 10:47:39 2008 25% loss
Wed Apr 30 10:54:58 2008 25% loss
Wed Apr 30 10:55:39 2008 25% loss
..

       sh (Linux):
[..]# ./pingfilter.sh /root/tver_piter.txt all
Tue Apr 29 17:09:02 2008 25% loss
Tue Apr 29 17:26:08 2008 25% loss
..

         ,     .   - all, 25%, 50%, 75%, 100%.
    .  :
windows\080424pingPBX.bat
    ,     .    ,      (  ),      ,     .      for    IP-  .
windows\pingone.bat
      ,      080424pingPBX.bat
windows\now.exe
     Resource Kit,      .
windows\pbxIP.txt
windows\phonesIP.txt
windows\weigtlyIP.txt
     IP ( IP     )
windows\pingPBXlog.txt
     -   080424pingPBX.bat
Linux\pingfilter.sh
      . Usage: sh ./pingfilter.sh <logfilename> <all|25%|50%|75%|100%>
Linux\patt2.txt
      grep,   pingfilter.sh
Linux\glue-ping-strings.pl
     perl,    pingfilter.sh     .
