1. Copy a long term file, that is updated each day, to /tmp/ and unzip it.
    pinger@pinger $ cp /nfs/slac/g/net/pinger/pingerreports/hep/average_rtt/average_rtt-100-by-node-60days.txt.gz /tmp
    pinger@pinger $ gunzip /tmp/average_rtt-100-by-node-60days.txt.gz
    
  2. To find the number of hosts monitored by a monitoring host, say rainbow.inp.nsk.su
    pinger@pinger $ grep  ^rainbow.inp.nsk.su /tmp/average_rtt-100-by-node-60days.txt | wc
         44    2816   22113
    
  3. A typical line in the file appears as:
    rainbow.inp.nsk.su frcu.eun.eg 205.394 197.889 202.883 195.478 194.064 195.730 198.102 199.514 204.427 241.629 198.024 195.041 195.571 200.772 204.993 213.386 202.140 199.263 199.086 201.371 202.928 187.984 195.176 188.913 188.763 192.655 187.764 204.071 310.056 . . 200.179 187.466 188.031 184.792 184.808 184.441 192.213 179.723 177.798 181.109 187.921 216.414 218.814 188.210 184.585 181.770 183.348 183.833 182.713 183.903 183.575 185.102 175.791 175.508 175.928 175.382 181.393 182.537 182.903 rainbow.inp.nsk.su frcu.eun.eg
    
    The first token gives the monitoring host, the second token gives the remote (monitored) host. One can get a list of the second tokens using:
    pinger@pinger $ grep ^rainbow.inp.nsk.su /tmp/average_rtt-100-by-node-60days.txt | cut -f 2 -d ' '
    lns62.lns.cornell.edu
    www.nbi.dk
    ccpntc3.in2p3.fr
    fnal.fnal.gov
    ...
    
  4. To find the number of monitoring sites that monitor each remote site:
    [cottrell@pinger ~]$ cut -f 2 -d ' ' /tmp/average_rtt-100-by-node-60days.txt | sed 's/\x0//g' | tail -n +2 | sort | uniq -c
          1 115-186-135-82.nayatel.pk
          1 121.52.144.65
          2 155.198.211.79
          1 193.111.11.8
          1 193.222.119.6
          1 195.24.192.47
          1 196.21.45.139
          1 198.124.252.105
          1 198.124.252.109
          1 202.13.200.2
          1 217.117.4.8
          1 49.50.236.98
          1 58.26.240.61
          1 access.sprace.org.br
         74 adl-a-ext1.aarnet.net.au
          2 aias.cs.ucy.ac.cy
          1 aidabg.net
         38 airuniversity.seecs.edu.pk
         ...
    
  5. To find the monitoring hosts:
    pinger@pinger $ cut -f 1 -d ' ' /tmp/average_rtt-100-by-node-60days.txt | sed 's/\x0//g' | sort | uniq | tail -n +2
    airuniversity.seecs.edu.pk
    aup.seecs.edu.pk
    brunsvigia.tenet.ac.za
    buitms.seecs.edu.pk
    ...
    
  6. To find the monitoring hosts and the number of remote nodes monitored by each of them:
    [cottrell@pinger ~]$ cut -f 1 -d ' ' /tmp/average_rtt-100-by-node-60days.txt | sed 's/\x0//g' | sort | uniq -c | tail -n +2
        119 airuniversity.seecs.edu.pk
        119 aup.seecs.edu.pk
         75 brunsvigia.tenet.ac.za
        118 buitms.seecs.edu.pk
        ...
    
    gregre
  • No labels