Speedtest from Router

This is a package, not a repository.
You can download a package and unpack it. Depending on the package you should be able to execute/install the skript/binary/program/whatever.
You can add a repository to your customfeeds.conf, so opkg can load it and resolve dependencies automatic …

In this case you won’t need a repository, because ‘speedtest-cli’ from ookla does not have dependencies, it is a static linked executable file.

I doubt ‘both’ solutions are providing the same error, except you’re set two downloadable files in the .conf. What is ‘the other error’?
Ah, okay. The second is the second line … Nearly the same. It won’t be installed via opkg, you’ll need to unpack and execute it by yourself.

  1. download
  2. extract/unpack
  3. execute
1 Like

Download, open and extract the .TGZ file into a folder. There will be a speedtest.md file that is like a README to explain how to use the utility and all its options.

I do not work for and I do not have formal association with GL.iNet

1 Like

My suggest is that don’t do speedtest on the router.

The router has limited resource (CPU and RAM) and doing speed test on the router will generate a very low number.

1 Like

I did extract the files into the router. I can’t get any command tag to work with speedtest command. not even help works!

image

My delima is I need to be able to do it remotely. as I don’t have a pc on the router to remote into in order to do one! It only will be 4G access for right now anyway, and I’m sure the router will show at least some connection stats.

It is very hard to guess what are you doing.
From your screenshot we can see there is a directory /speedtest/ in the directory /mnt/ … But why? Did you created it with mkdir -p /mnt/speedtest?
Since the command ls is showing nothing, there is no binary to execute … It don’t look like you’ve extracted the downloaded file. I can’t say, from the given information, if you have downloaded the file or extracted it…

  1. Download the file on your computer
  2. Extract it on your computer to a new directory
  3. Copy the extracted directory to your router
  4. Login to your router
  5. Go to the file where you’ve copied the files
  6. Search the file ‘speedtest’
  7. Execute it…

And please give any command you are using, it is a lot more easy to understand.

ookla-speedtest-1.1.1-linux-armel.tgz was the file I downloaded days ago…

I extracted the files to the computer. below is ss of it. I deleted the original transfer out and I put it in the root directory this time.
image

root@GL-SFT1200:/# cd root
root@GL-SFT1200:~# ls
speedtest            surfshark-wireguard
root@GL-SFT1200:~# cd speedtest
root@GL-SFT1200:~/speedtest# ls
speedtest     speedtest.5   speedtest.md
root@GL-SFT1200:~/speedtest# speedtest
-ash: speedtest: not found
root@GL-SFT1200:~/speedtest#

Same error messages as before.

The only additional plugins I’ve added since turning it on was upnp.

Looks better, now.

Please try ./ before the command.
./speedtest

I have no access to my Beryl, right now. Else I would have test ist myself, before recommending.

Explaination:
If you type any command in a linux shell, the filename will be searched in the directories, mentioned in the $PATH variable …
echo $PATH should give something like:

/usr/local/bin:/usr/bin:/bin

but as /root/ is not in $PATH, the command cannot be found. So you’ll tell the shell with ./ ‘execute this file here, from this path.’

And in addition the root directory is /. The path /root will be called ‘home directory of the root user’. A little unlucky, that the path root and the user root is the same word, but isn’t the same meaning.

root@GL-SFT1200:~/speedtest# ./speedtest
./speedtest: line 1: syntax error: unexpected word (expecting ")")
root@GL-SFT1200:~/speedtest#

I’m out.
I have absolutely no idea what happening. I would expect this message while loading a shellscript, but not from a binary.

When you open the file in an editor on your computer, it should be some cont of jibberisch (unreadable) lines. Maybe it has the wrong line terminator, but this depends on the extracting process.

I only use winrar to extract files… never anything else… never had issues before on running something on my ubuntu systems.

If you download the ookla-speedtest-1.1.1-linux-armel.tgz file directly into a folder on the router, then you extract and run the program there:

tar -zxvf ookla-speedtest-1.1.1-linux-armel.tgz

If you download the file and extract it on Windows, then copy the files to the router, then you have to set the Unix Execute permission to run the program:

chmod +x ./speedtest
./speedtest -h

1 Like

I’m still having the same error

image

The Opal GL-SFT1200 has a Siflower SF19A28 MIPS processor. The program is for ARM processors and may not work on MIPS.

1 Like

yes, as @wcs2228 said, this program is not compiled for this router and it does not run.

So, today I’m at home and have a little time with my beryl (should be the same architecture as Opal … But since we’re installing via OpenWRT package manager, this should not be important).

  1. Open the Luci webfonend:
    Login on the GL.iNet Frontend - On the left hand menu go to 'More settings - Advanced'
    If there is no Link, click on the Button (Install), else click on the link.
  2. Login at the Luci frontend. User ‘admin’, use the previous password.
  3. On the Top Menu go to System - Software and on the first search field search for netperf
  4. Behind speedtest-netperf click on the button Install
  5. READ the dialogs!
    At the end close the dialog with ‘Dismiss’ down right.

Now login via ssh and type speedtest-netperf.sh → a lot of information.

Since you have now also netperf installed, you can try other scripts. Like betterspeedtest.sh Link or write a whole own script with defined/desired output.

Edit: Just write a little nicer.

2 Likes

I just now have seen this message. Just pulled my opal back out to try what you said though.

Weird… I got netperf installed. the speedtest-netperf gives

root@GL-SFT1200:/etc/speedtest# ./speedtest-netperf.sh
2023-02-14 18:18:07 Starting speedtest for 60 seconds per transfer session.
Measure speed to netperf.bufferbloat.net (IPv4) while pinging gstatic.com.
Download and upload sessions are sequential, each with 5 simultaneous streams.
.
WARNING: netperf returned errors. Results may be inaccurate!

 Download:   0.00 Mbps
  Latency: [in msec, 1 pings, 0.00% packet loss]
      Min:  58.838
    10pct:   0.000
   Median:   0.000
      Avg:  58.838
    90pct:   0.000
      Max:  58.838
 CPU Load: [in % busy (avg +/- std dev), 0 samples]
 Overhead: [in % used of total CPU available]
  netperf:   0.0
.
WARNING: netperf returned errors. Results may be inaccurate!

   Upload:   0.00 Mbps
  Latency: [in msec, 1 pings, 0.00% packet loss]
      Min: 126.649
    10pct:   0.000
   Median:   0.000
      Avg: 126.649
    90pct:   0.000
      Max: 126.649
 CPU Load: [in % busy (avg +/- std dev), 0 samples]
 Overhead: [in % used of total CPU available]
  netperf:   0.0

I downloaded betterspeedtest.sh and ran it, even adding a high -t (seconds) didn’t do nothing it seems… When I tried, it immediately gives a finished test result, even though I added more time and more connections…


root@GL-SFT1200:/etc/speedtest# ./betterspeedtest.sh -t 500 -n 10
2023-02-14 16:34:21 Testing against netperf.bufferbloat.net (ipv4) with 10 simultaneous sessions while pinging gstatic.com (500 seconds in each direction)
.
 Download: 0.00 Mbps
  Latency: (in msec, 1 pings, 0.00% packet loss)
      Min: 237.391
    10pct: 0.000
   Median: 0.000
      Avg: 237.391
    90pct: 0.000
      Max: 237.391
.
   Upload: 0.00 Mbps
  Latency: (in msec, 1 pings, 0.00% packet loss)
      Min: 231.479
    10pct: 0.000
   Median: 0.000
      Avg: 231.479
    90pct: 0.000
      Max: 231.479```

The error message means you download the wrong CPU platform binary on your router.

Weird cause I downloaded the netperf from the plugin section of the GL-Inet gui.

The server (netperf.bufferbloat.net) blocked your IP. I faced the same issue. Don’t test more than a few times a day.