Commit 75c1180f authored by Olav Kvittem's avatar Olav Kvittem

script for making list of iperf-nodes with https

parent b0e8626e
......@@ -20,6 +20,16 @@ You might need the iperf3 from esnet :
git clone https://github.com/esnet/iperf.git
./configure ; make ; make install
You need a basic list of measurement points - create the file mp_list.json
./mp_list.sh
You need a list of systems with https :
./mp_list_iperf.sh
S er det stilene, disse kan man legge de inn nr man installerer debian-pakken :
git clone https://github.com/andreassolberg/uninett-bootstrap-theme.git /usr/share/mp-web/
# Licence
This software is free for non-commercial use.
Contact info@uninett.no for other uses.
......
use JSON::PP;
while(<>){
$t .=$_;
}
$json=decode_json($t);
foreach $mp(@$json){
printf "%s\n", $$mp{navn};
}
#!/bin/sh
# get list om measurement beacons
# to be run i n the directory where the data is
perl mp_list_name.pl $1 | xargs nmap -sT -p 80,443,5001 > mp_list_nmap.log
perl mp_list_nmap_rep.pl -json mp_list_nmap.log > mp_list_iperf.new
if test -s mp_list_iperf.new ; then
mv mp_list_iperf.new mp_list_iperf.json
fi
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment