#!/usr/bin/env bash function cecho { while [ "$1" ]; do case "$1" in -normal) color="\033[00m" ;; -black) color="\033[30;01m" ;; -red) color="\033[31;01m" ;; -green) color="\033[32;01m" ;; -yellow) color="\033[33;01m" ;; -blue) color="\033[34;01m" ;; -magenta) color="\033[35;01m" ;; -cyan) color="\033[36;01m" ;; -white) color="\033[37;01m" ;; -n) one_line=1; shift ; continue ;; *) echo -n "$1"; shift ; continue ;; esac shift echo -en "$color" echo -en "$1" echo -en "\033[00m" shift done if [ ! $one_line ]; then echo fi } servers=( art-decor.agence-esante.lu art-decor.ihe-europe.net data.ihe-europe.net gazelle.agence-esante.lu gazelle.ehealth.brussels gazellecontent.sequoiaproject.org validation.sequoiaproject.org inter-amc.kereval.com nagios.ihe-europe.net order-manager.ihe-europe.net #ovh1.ihe-europe.net #ovh2.ihe-europe.net #ovh3.ihe-europe.net ovh4.ihe-europe.net portal.ihe-europe.net testing.consorzioarsenal.it testivalidointipalvelu.kanta.fi validointipalvelu.kanta.fi connectathon-results.ihe.net product-registry.ihe.net gazelle.ihe.net www.antilope-project.eu usecase-repository.ihe-europe.net conformity.ihe.net epsos.ihe-europe.net ehealthsuisse.ihe-europe.net gazelle.ehdsi.ihe-europe.net ) for i in "${servers[@]}" do cecho -blue "=======================================" cecho -blue "Working on $i" cecho -blue "=======================================" wget https://www.ssllabs.com/ssltest/analyze.html?d=$i #wget https://www.ssllabs.com/ssltest/analyze.html?d=$i&clearCacheon # wget "https://api.ssllabs.com/api/v2/getEndpointData?host=$i%26s=`nslookup gazelle.ihe.net | awk -F': ' 'NR==6 { print $2 } '`" done