Advertisment: Broadband via satellite
Advertisment: Worldwide satellite services from Ground Control Company

www.satsig.net

Satellite Internet Forum.

Welcome, Guest.        Forum rules.
      Home            Login            Register          
Pages: 1

Access your SurfBeam 2 Satellite Modem Values via Shellscript

(Read 8759 times)
Veit
Member
★★
Offline



Posts: 5
Aug 13th, 2014 at 8:21pm  
Hey There,
I am very new to all that Satellite stuff. I am using a SkyDSL Installation in Germany and run in the FAP-Trap but thats not the point here.

Since the SkyDSL Support said my Installation may be bad, hardware wise, and again said that there is no "fair use policy" at all in the service, the only thing i have to consider is that its a shared medium, i thought about collecting as much information about the speed and fap/fup mechanism as possible.

I found out that you can get "plain text" values out of the modem by requesting the direct urls like the javascript of the WebGUI of the modem does.

Back to top
 
 
IP Logged
 
Veit
Member
★★
Offline



Posts: 5
Reply #1 - Aug 13th, 2014 at 8:23pm  
To post the links and code, if have to create two normal posts since i am a new board member.. spam prevention ftw! Cheesy
Back to top
 
 
IP Logged
 
Veit
Member
★★
Offline



Posts: 5
Reply #2 - Aug 13th, 2014 at 8:24pm  

The URLs are these:

Code:
https://192.168.100.1/?page=modemStatusData
https://192.168.100.1/?page=triaStatusData
https://192.168.100.1/?page=basicStatusData 



and those are visible in the JavaScript, too:

Code:
https://192.168.100.1/?page=installStatusData - i havent tried
https://192.168.100.1/?page=speedTestData - always empty
https://192.168.100.1/?page=sngStatusData - shows an error 



Then I took a look for a SpeedTest i can use in an shellscript and found this:
Code:
$ wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
$ chmod +x speedtest-cli
$ ./speedtest-cli 



renamed it to st.py and wrote this little shell script to create a CSV file.
It runs forever, waits 20 minutes before checking again.
It combines the Time with the actual RxSNR, Ping, DL and UL Speed.

It can be easily modified to handle all values you can also access in the webgui of the modem.

The script is very quick and dirty, but i wanted it to share with you Smiley

Code:
#!/bin/bash

while [ true ] ; do
        time=$(date +"%T");
        snr=$(curl -s https://192.168.100.1/?page=modemStatusData | cut -d '#' -f 23);
        speed=$(./st.py --simple --server 1746 &2>/dev/null);
        ping=$(echo $speed | cut -d ' ' -f 2);
        dl=$(echo $speed | cut -d ' ' -f 5);
        ul=$(echo $speed | cut -d ' ' -f 8);
        dataset="$time;$snr;$ping;$dl;$ul";
        echo $dataset >> speed.csv;
        sleep 900;
done 



First results show, with no change in the RxSNR the downspeed suddenly really goes down when I start to stream a Video for example. So There IS a FAP (for sure, no news for you XD )
Back to top
 
 
IP Logged
 
Veit
Member
★★
Offline



Posts: 5
Reply #3 - Aug 14th, 2014 at 12:46pm  
Here the first ~24h

...

...

Code:
01:12:28;9.8;513.766;0.77;1.84
01:20:02;9.9;455.242;1.00;3.13
01:35:50;10.0;447.898;1.10;2.71
01:53:02;9.6;548.015;1.38;2.81
02:09:52;9.8;501.849;3.85;3.07
02:25:44;9.7;491.048;3.72;2.78
02:41:36;10.0;485.255;3.37;3.09
02:57:33;10.0;552.654;4.41;3.05
03:28:56;10.8;627.477;6.62;2.83
03:44:39;10.8;511.115;8.60;2.94
04:00:15;9.8;515.708;10.55;2.94
04:16:00;9.9;497.256;8.97;3.05
04:31:35;10.0;491.543;9.70;3.00
04:47:23;9.9;659.649;10.51;3.02
05:03:09;9.8;531.167;10.60;2.97
05:18:56;9.8;621.23;8.43;3.00
05:34:34;9.7;514.782;10.68;3.14
05:50:19;9.9;538.446;10.51;3.05
06:06:04;10.0;480.308;8.63;2.81
06:21:40;10.1;497.087;10.09;3.10
06:37:22;10.1;448.328;6.14;3.02
06:53:02;9.9;521.773;6.86;3.09
07:08:40;10.1;609.362;2.12;2.93
07:24:45;10.3;514.597;2.00;2.77
07:41:08;10.2;502.661;1.84;2.64
07:57:37;10.2;515.252;1.72;2.97
08:14:08;10.0;579.846;6.75;3.09
08:29:48;10.2;484.232;7.81;2.93
08:45:26;10.2;527.543;5.70;2.99
09:01:10;10.0;514.081;5.51;3.15
09:16:54;10.1;670.364;1.78;3.01
09:33:25;10.1;578.799;0.94;1.60
09:50:57;10.2;464.454;1.41;2.81
10:07:45;10.3;579.242;0.15;1.57
10:26:33;10.4;609.359;0.13;2.56
10:45:37;10.2;498.516;0.19;2.06
11:03:30;10.2;428.921;0.19;2.19
11:21:34;10.0;590.923;0.18;2.88
11:39:54;9.9;523.738;0.23;2.29
11:57:26;10.1;568.405;0.23;2.25
12:15:00;9.6;506.543;0.22;2.61
12:33:09;9.9;431.5;0.72;2.30
12:49:06;10.0;443.918;0.68;2.35
13:05:57;10.0;546.637;0.34;1.58
13:24:15;10.4;503.594;0.41;2.42
13:42:02;10.2;542.036;0.30;2.55
14:04:18;10.3;541.098;0.39;2.58
14:24:15;9.8;509.398;0.43;2.60
14:41:56;9.9;525.59;1.11;2.57
14:59:08;9.9;511.664;5.53;2.71
15:14:51;9.0;522.771;4.96;3.06
15:30:35;9.0;535.779;3.58;2.84
15:46:29;9.5;547.778;5.12;2.17
16:02:16;9.3;561.729;5.20;2.82
16:18:01;9.5;499.052;4.21;2.18
16:33:54;9.6;533.68;4.50;2.98
16:49:44;9.4;513.948;5.60;1.94
17:05:30;9.5;591.011;4.91;2.92
17:21:17;9.5;493.1;5.01;2.15
17:37:04;9.5;501.191;3.94;3.14
17:52:56;9.0;553.684;5.30;1.92
18:08:45;8.8;507.197;5.44;1.87
18:24:33;9.2;521.439;5.36;2.51
18:40:20;9.0;500.014;5.61;1.87
18:56:06;9.0;485.948;4.37;1.47
19:11:59;9.0;578.999;4.62;1.74
19:27:46;9.0;525.788;4.95;1.80
19:43:32;8.9;572.46;5.25;1.66
20:16:11;9.1;563.312;5.57;1.17
20:32:33;9.1;520.182;5.17;1.97
20:48:22;9.5;496.106;4.37;1.58
21:04:21;9.4;511.169;2.04;1.34
21:20:17;9.6;510.734;1.49;1.54
21:36:26;9.8;500.237;1.65;1.64
21:52:09;9.8;790.824;0.14;1.42
22:10:48;10.0;580.381;0.31;1.36
22:27:58;10.0;835.978;1.02;0.01
23:10:24;10.0;772.337;1.40;0.02
23:38:08;9.5;532.677;1.34;0.03
00:03:52;10.1;491.659;3.10;0.07
00:23:46;9.6;491.795;6.18;0.13
00:41:18;9.9;522.588;6.64;0.12
00:58:56;10.1;573.059;3.75;0.09
01:17:41;9.7;519.016;6.53;0.13
01:35:15;9.9;490.907;9.30;0.47
01:51:19;9.4;650.351;10.01;0.18
02:08:20;10.0;569.664;8.36;0.18
02:25:14;9.6;465.659;10.61;0.24
02:41:54;8.1;592.455;10.92;1.71
02:57:44;9.4;489.751;10.97;2.73
03:13:31;9.8;520.025;10.91;2.92
03:29:16;9.9;403.985;10.68;3.08
03:45:05;9.8;496.763;11.07;2.87
04:00:50;9.9;478.363;11.02;2.77
04:16:35;9.8;469.314;10.94;3.00
04:32:21;9.9;486.023;10.99;2.96
04:48:06;10.0;536.904;10.83;3.06
05:03:53;10.0;509.268;10.77;3.12
05:19:38;10.0;536.017;11.03;2.99
05:35:25;9.8;475.536;10.83;3.08
05:51:13;9.9;467.597;10.77;2.84
06:07:01;10.2;665.372;11.06;2.90
06:22:46;10.1;516.93;10.85;3.19
06:38:32;9.9;523.338;9.42;2.96
 



As expected, the downspeed went down when I created more Traffic then "normal" browsing. RxSNR was between 9 and 11.
Back to top
« Last Edit: Aug 15th, 2014 at 5:55pm by Admin1 »  
 
IP Logged
 
Markus
Member
★★
Offline



Posts: 1
Reply #4 - Aug 17th, 2014 at 9:43am  
Thanks for the skipt.

lg,
markus
Back to top
 
 
IP Logged
 
Pages: 1