Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
mp-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maalepaaler
mp-web
Commits
75c1180f
Commit
75c1180f
authored
Aug 12, 2016
by
Olav Kvittem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
script for making list of iperf-nodes with https
parent
b0e8626e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
9 deletions
+36
-9
README.md
README.md
+10
-0
mp_list_iperf.pl
mp_list_iperf.pl
+8
-0
mp_list_iperf.sh
mp_list_iperf.sh
+18
-9
No files found.
README.md
View file @
75c1180f
...
...
@@ -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.
...
...
mp_list_iperf.pl
0 → 100755
View file @
75c1180f
use
JSON::
PP
;
while
(
<>
){
$t
.=
$_
;
}
$json
=
decode_json
(
$t
);
foreach
$mp
(
@$json
){
printf
"
%s
\n
",
$$mp
{
navn
};
}
mp_list_iperf.sh
100755 → 100644
View file @
75c1180f
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment