Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The program is available on SVN on . You can download it by checking it out of svn using the command.

svn co file:///afs/slac.stanford.edu/g/scs/net/netmon/repo/svn/pinger/trunk/bin/HostSearcher.plImage Added

Code Block
akbar@pinger $ perl HostSearcher.pl

    usage: HostSearcher.pl --tld top_level_domain [--max_hosts] [--max_pings] [-max_time] [--filter] [--pingserver] [--file]

    Options:
        --tld                   The two letters of the top level domain of the country.
        --max_hosts             Maximum number of hosts to download from Google ( >= 100 and <=1000 ) Default is 1000
        --max_pings             Maximum number of pings to send to a host. Default is 10
        --max_time              Time before the ping to an individual host times out and returns. Default is 10 sec
        --filter                Filter out the results. Possible values are 'tld' , 'rtt' or 'off'. Default is 'off'
        --pingserver            Use a pingserver to ping rather than using the current host (To be implemented)
        --file                  File to store the results. Default is a file named tld.txt in the current folder

    example: HostSearcher.pl --tld pk

...

 

Code Block
akbar@pinger $ perl HostSearcher.pl --tld ci --max_pings 2 --max_time 2 --max_hosts 100
------------------------------------------------------------------------
Searching Google for hosts........Done
------------------------------------------------------------------------
Parsing the downloaded data for hosts.......Done

========================================================================
The initial parsed list consists of 98 nodenames
A total of 96 unique nodenames were found
========================================================================

========================================================================
Pinging candidate nodes
========================================================================

Pinging host primature.ci.....Failed
Pinging host tchatche.ci.....Success!! IP-Address=81.199.127.114 Min-RTT=285.806 Country=(CI) City=Abidjan Lat/Long= -4.0281, 5.3411
Pinging host vin.ci.....Success!! IP-Address=64.187.108.201 Min-RTT=68.542 Country=(US) City=Miami Lat/Long= -80.1911, 25.7631
Pinging host www.ado.ci.....Success!! IP-Address=216.162.72.102 Min-RTT=91.041 Country=(CA) City=Canada Lat/Long= -73.5833, 45.5
Pinging host www.aeria.ci.....Success!! IP-Address=213.136.96.35 Min-RTT=237.664 Country=(CI) City=Abidjan Lat/Long= -4.0281, 5.3411
Pinging host www.ai3l.ci.....Success!! IP-Address=213.136.96.8 Min-RTT=244.688 Country=(CI) City=Abidjan Lat/Long= -4.0281, 5.3411
Pinging host www.aip.ci.....Success!! IP-Address=213.186.33.2 Min-RTT=147.856 Country=France(FR) City=Roubaix Lat/Long= 3.1667, 50.7
 |
 |
 |
 |
Pinging host www.uabobo.ci.....Success!! IP-Address=196.201.66.45 Min-RTT=537.522 Country=(CI) City= Lat/Long= -5, 8
Pinging host www.ucacie.ci.....Success!! IP-Address=213.136.96.34 Min-RTT=237.347 !!Duplicate DNS hostname, IP address already present in list!!
Pinging host www.ucocody.ci.....Success!! IP-Address=212.37.221.34 Min-RTT=148.288 Country=France(FR) City=Paris Lat/Long= 2.3333, 48.8667
Pinging host www.uica.ci.....Success!! IP-Address=213.136.121.170 Min-RTT=280.823 Country=(CI) City= Lat/Long= -5, 8
Pinging host www.uvci.ci.....Success!! IP-Address=213.136.96.12 Min-RTT=237.011 !!Duplicate DNS hostname, IP address already present in list!!
========================================================================
A total of 42 nodes with unique ip addresses and satisying filter conditions(if any) were found
========================================================================

...