Versions Compared

Key

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

...

my $version="7.3, 12/13/2017, Les Cottrell";
# Added \[\] to untainting of dig command. Appears to be needed for IPv6.
# Do not avoid testing internal domains if server is IPv6 host,
# Added avoid calling gethostbyname6 if hostname is already an ipv6 address
# Fixed how Solaris mis-interprets system(@args) sometimes (saw in IPv6)

create-scriptTable.pl

We added the option --inet4-only to the wget command, else the cromjob  timed out after 8550 seconds . when the tokens ran out.

getdata.pl

Created nodes-ipv6.pl to add the PingER IPv6 MA 2001:da8:270:2018:f816:3eff:fef3:bd3. See here for addition.

Copied getdata.pl to getdata-ipv6.pl and modified to use the  /afs/slac/package/pinger/nodes-ipv6.cf file and write to the /nfs/slac/g/net/pinger/pingerdata/ipv6/data/ directory (e.g. /nfs/slac/g/net/pinger/pingerdata/ipv6/data/2001:da8:270:2018:f816:3eff:fef3:bd3/ping-2017-12-19.txt.gz) when running  getdata-ipv6.pl 2001:da8:270:2018:f816:3eff:fef3:bd3 2017-12-19 1. Also replaced IPv4 address checks with sub chck_ip{} to test for both IPv4 and IPv6 addresses.

We added the option --prefer-family=ipv4 to the wget options. This redcuced the time for /afs/slac/package/pinger/getdata_all.pl -h pinger.slac.stanford.edu -D 0 from 190 seconds to 10 10 seconds.

10 seconds.

wrap-analyze-hourly.pl 

Call with:

...