mp_list_iperf.sh 640 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# make a json list of mp's with htts

echo This is not a script - just a list of commands for manual execution
exit 0

# get mp-cmd from mp-rude
git clone https://scm.uninett.no/maalepaaler/mp-rude.git

# create a text list of mp's from the mp_list.json
perl mp_list-iperf.pl mp_list.json > mp_list.txt 
tmp=/tmp/mp_list_iperf$$

# check if mp's have certificate and list them in case
mp-rude/tools/mp-cmd mp-list.txt 'ls -l /etc/ssl/private/*no.pem' > $tmp
perl -ane 'printf "$1\n" if /\/([^\/]+).pem$/' $tmp | sed -e 's/^/{"navn":"/' -e 's/$/"},/' -e '1s/^/[/' -e '$s/,/]/' > mp_list_iperf.json
rm $tmp

# warning mp-list.txt belongs to