justin..needs sleep Mod join:1999-05-28 2031 Billion BiPAC 7800N Apple AirPort Extreme (2011)
4 edits
1 recommendation |
justin
Mod
2016-Jun-26 7:58 pm
Binaries. (version 23th December is posted)
Instructions for running (for all) Download and save somewhere. It is a single binary. C:\wherever\program or ./program --help to get usage hints C:\wherever\program or ./program to run a default speed test C:\wherever\program or ./program --daemon --uname myusername --upassword mypassword to go into daemon mode and wait for a remote command to run a speed test ./program --uname yourusername ./program --daemon-cmd install (setup as a service) ./program --daemon (run as a daemon) * For specific Windows help please refer to this post! » Re: Binaries. (version 5th December is posted)
(old change log removed) Version 14 (15th November) changes - version reports 15-Nov-2016 - fix for OSX version, service mode Version 15 (22th November) changes - Restoration of test result Quality rating - Add flags for ipv4/ipv6 (server side changes required still) - Fixed no result when download only or upload only specified Version 16 (28th November) changes - Added more logging to trace a particular issue with upload measurement Version 17 (5th December) changes - Fixed a bug that rarely terminates test with no result Version 18 (13th December) changes - Added Windows 32bit binary - Fixed minor bug with daemon mode causing some background traffic after a test ran
Platforms available other than 64bit OSX, Linux and Windows: darwin/386 freebsd/386 freebsd/amd64 linux/386 linux/arm windows/386 if you want one from this list please request it. |
|
|
1 edit |
Re: Binaries. (will be posted shortly)I can test the following:
go-crosscompile-build windows/amd64
go-crosscompile-build windows/386 |
|
camperjust visiting this planet Premium Member join:2010-03-21 Bethel, CT |
to justin
I can test
go-crosscompile-build freebsd/amd64 |
|
|
to justin
go-crosscompile-build darwin/amd64 go-crosscompile-build linux/amd64 |
|
justin..needs sleep Mod join:1999-05-28 2031 Billion BiPAC 7800N Apple AirPort Extreme (2011)
1 recommendation |
justin
Mod
2016-Jun-27 7:53 pm
I was waiting for a fix but it is taking too long so I've posted them (in topic starter) as I've built them under OSX cross-platform for windows, linux and OSX. I've only tested OSX so far so for all I know the other two don't work at all but at least "file .." reports them as binaries.
The fix I was waiting for was to remove the error message printed out by the command line arguments library used.
There are also other things to add such as posting the result to your own speed test history under your own user-id. And to generate the results in a more machine readable form like json or csv.
And a bunch of other things. |
|
(Software) pfSense MikroTik CRS125-24G-1S-RM Ubiquiti UniFi AP-LR
1 edit |
jtl999
Member
2016-Jun-27 11:01 pm
Tested Darwin-x64 Works Linux X64 on a gigabit server - the upload test doesn't complete DSLReports.com CLI v0.1 - 2016-05-30
Connected to DSLReports.com
Selecting nearest servers...
[#####]
Starting Download tests...
Warming Up...
[#####]
Down Speed (Final) : 556.60 Mb/s
Starting Upload tests...
Delaying for 4 seconds...
Performing Upload...
Up Speed (Testing...) : 220.46 Mb/sError on Upload
Test was too short. Upload test timed out more than 4 times.
Do you want to restart the Upload test? (Y/n)
n
----------------[Results]----------------
| Upload Speed : 0 bps |
| Download Speed : 556.60 Mb/s |
---------------------------------------
|
|
justin..needs sleep Mod join:1999-05-28 2031 |
justin
Mod
2016-Jun-27 11:02 pm
thanks, as per the other result, clearly this hasn't been tested out on very fast connections yet, so its good you guys have them. |
|
camperjust visiting this planet Premium Member join:2010-03-21 Bethel, CT |
camper
Premium Member
2016-Jun-28 11:40 am
  OK, it looks like my help isn't needed at this point, so this will be my last visit here.
If something comes up and I can assist, please let me know. |
|
(Software) pfSense MikroTik CRS125-24G-1S-RM Ubiquiti UniFi AP-LR
1 edit |
to justin
Also works fine on Ubuntu 16.04 DSLReports.com CLI v0.1 - 2016-05-30
Connected to DSLReports.com
Selecting nearest servers...
[#####]
Starting Download tests...
Warming Up...
[#####]
Down Speed (Final) : 52.85 Mb/s
Starting Upload tests...
Delaying for 4 seconds...
Performing Upload...
Up Speed (Final) : 10.29 Mb/s
----------------[Results]----------------
| Upload Speed : 10.29 Mb/s |
| Download Speed : 52.85 Mb/s |
---------------------------------------
|
|
justin..needs sleep Mod join:1999-05-28 2031 |
Re: Binaries. (currently version 2 is posted)Updated the attachments again. Hopefully this time at least the windows edition is new. |
|
phibs join:2012-09-25 Newark, DE |
to justin
Re: Binaries. (currently version 3 is posted)Do you have anything not requiring root? Or do you plan on giving out the source? |
|
justin..needs sleep Mod join:1999-05-28 2031 Billion BiPAC 7800N Apple AirPort Extreme (2011)
|
Root is required for ping. If you can't ping, you can't easily find the nearest servers. Last time I checked it wasn't required but maybe it is now?
Source will probably be released when the authentication stuff is worked out. I don't really want to have people fork it and start leeching off the test network. |
|
justin |
justin
Mod
2016-Oct-11 5:46 am
Re: Binaries. (currently version 4 is posted)In the OP I've posted two new binaries. These don't need root and the upload phase has been improved. If you run it with -l it is helpful as it shows the log as it runs. |
|
|
jtl999
Member
2016-Oct-11 1:27 pm
|
|
|
to justin
A reminder to me (maybe someone else too) ... the "--" are entered as part of the global options DSLReports.com CLI v0.1 - 2016-10-11
NAME:
Dslrcli - Test network speed
USAGE:
dslrcli_win [global options] command [command options] [arguments...]
VERSION:
0.1
AUTHOR(S):
DSLReports.com <www.dslreports.com>
COMMANDS:
run, r run the test
upload, u run the test
download, x run the test
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug, -d
--printlog, -l Prints the log on the screen
--up value Number of streams to use for upload tests (default: "4")
--uploadtime value Time limit to end the upload test in. (default: "15")
--upperserver value The number of streams per server. (default: "3")
--downloadtime value Time limit to end the download test in. (default: "15")
--down value Number of streams to use for download tests (default: "6")
--downperserver value The number of streams per server. (default: "3")
--output value, -o value Specify type of output . 'json' and 'csv' are currently supported. (default: "default")
--help, -h show help
--version, -v print the version
|
|
|
Using the --upload-only or --download-only flag doesn't return any results. It should at least show what the tested speed was. |
|
|
to justin
Re: Binaries. (version 28th November is posted)OK Please dont bash me here if this is stupid but I am trying to set this up as a daemon on Mac OS X. I run terminal and enter sudo dslrcli-darwin-amd64 --daemon --uname "myusername" --upassword "mypassword)
everytime I get no command found.
I am in the correct directory.
can someone help? |
|
|
jtl999
Member
2016-Dec-4 6:16 pm
said by macjeff:sudo dslrcli-darwin-amd64 try ./dslrcli-darwin-amd64 (with sudo prefixed, obviously) |
|
justin..needs sleep Mod join:1999-05-28 2031 |
to macjeff
Yeah you need ./ because . won't be in your PATH. |
|
|
sudo: ./dslrcli-darwin-amd64: command not found |
|
macjeff |
to justin
Re: Binaries. (version 5th December is posted)i got
sudo: ./dslrcli-darwin-amd64: command not found |
|
justin..needs sleep Mod join:1999-05-28 2031 |
to macjeff
Re: Binaries. (version 28th November is posted)By default the binary after extract from ZIP it isn't executable. So
chmod a+rx dslrcli-darwin-amd64 |
|
|
to justin
Re: Binaries. (version 5th December is posted)That did it (chmod)
THANKS!! |
|
justin..needs sleep Mod join:1999-05-28 2031 |
justin
Mod
2016-Dec-7 12:33 am
sorry it isn't very friendly being an old school command line thing, I guess at some point I need to do an installer. |
|
|
I am a pretty advanced mac user. I run homebridge server (emulates apple homekit) and stuff. But yes usually there is an installer or I run things under NPM or something. I should have figured out to chown it. Thanks for helping. Happy Holidays!!! |
|
4 edits |
to justin
Windows users: here's what I came up with for testing. I am an old msdos relic so I still use the trusty bat files to minimize my typos. I do dabble in script as well
I try to keep up with things. With that, I offer you the bat files that I have in the directory where I have the binary stored. (everything was done in a command prompt window run as administrator) The first thing to do is create a user.json file with your credentials in the directory Be sure to copy paste the entire line including brackets
C:\DSLR>type user.json
{"uname":"mynamehere","upassword":"mypasswordhere"}
C:\DSLR>
to run a local test, results posting to your account
local.bat
C:\DSLR>local
C:\DSLR>set cmnt=ACER2015_
-
----------------------------------------------------------------------
Fri 12/09/2016 8:47:04.07
Microsoft Windows [Version 10.0.14393]
----------------------------------------------------------------------
C:\DSLR>dslrcli-windows-amd64 --machinename ACER2015 --comment ACER2015_ --output csv --authfile user.json
Authenticating with Username = SparkyinCFL
Selecting nearest servers....
Download Testing.....
Upload Testing.....
Uploading results...
Creating a CSV file from results
A results.csv file has been created in the current directory
C:\DSLR>type results.csv
22.98 Megabit/sec,326.69 Megabit/sec,http://www.dslreports.com/speedtest/7092061
-
----------------------------------------------------------------------
----------------------------------------------------------------------
C:\DSLR>
to run a local daemon
daemon.bat
While the daemon is running, you can request a speedtest via Alexa or the web, same as if you were running the service.
Ctrl-break key combo to terminate daemon
C:\DSLR>daemon
C:\DSLR>set cmnt=ACER2015_daemon
-
----------------------------------------------------------------------
Fri 12/09/2016 8:54:14.60
Microsoft Windows [Version 10.0.14393]
----------------------------------------------------------------------
C:\DSLR>dslrcli-windows-amd64 --daemon --machinename ACER2015 --comment ACER2015_daemon --output csv --authfile user.json
I: 08:54:14 Running in terminal.
I: 08:54:14 I'm running windows-service.
I: 08:54:14 Starting client for username = SparkyinCFL
I: 08:54:14 Creating a client...
I: 08:54:14 Establishing connection.
I: 08:54:14 No errors in dialing TCP Connection.
I: 08:54:14 Connected.
I: 08:54:14 Authenticating...
I: 08:54:14 Sending data = login SparkyinCFL ACER2015
I: 08:54:14 Received data = ok
I: 08:54:14 Auth complete listening for commands
I: 08:54:27 Received data = start
I: 08:54:27 Command received = start
I: 08:54:27 Received a command to start new test
I: 08:54:27 Start DaemonSpeedTest()
Authenticating with Username = SparkyinCFL
Selecting nearest servers....
Download Testing..... ( Clearing up ) I: 08:55:07 Received data = ping
I: 08:55:07 Command received = ping
I: 08:55:07 Sending data = pong
Download Testing.....
Upload Testing... I: 08:55:14 Sending data = Pong
Upload Testing.....
Uploading results...
Creating a CSV file from results
A results.csv file has been created in the current directory
I: 08:55:26 End DaemonSpeedTest()
I: 08:56:07 Received data = ping
I: 08:56:07 Command received = ping
I: 08:56:07 Sending data = pong
I: 08:56:14 Sending data = Pong
I: 08:57:07 Received data = ping
I: 08:57:07 Command received = ping
I: 08:57:07 Sending data = pong
I: 08:57:14 Sending data = Pong
I: 08:58:07 Received data = ping
I: 08:58:07 Command received = ping
I: 08:58:07 Sending data = pong
I: 08:58:14 Sending data = Pong
I: 08:58:24 I'm Stopping!
Terminate batch job (Y/N)? y
C:\DSLR>
To install and start the service ... install.bat Hit enter after reviewing results *** special note here: a full file qualification is needed for the user.json file!
C:\DSLR>install
C:\DSLR>set cmnt=ACER2015_svc
C:\DSLR>set comp=ACER2015_svc
Microsoft Windows [Version 10.0.14393]
Fri 12/09/2016 9:02:35.66
-
----------------------------------------------------------------------
Fri 12/09/2016 9:02:35.66 -----------------------------------------
----------------------------------------------------------------------
C:\DSLR>dslrcli-windows-amd64 --daemon --daemon-cmd install --comment ACER2015_svc --authfile c:\dslr\user.json --machinename ACER2015_svc
C:\DSLR>dslrcli-windows-amd64 --daemon --daemon-cmd start --comment ACER2015_svc --authfile c:\dslr\user.json --machinename ACER2015_svc
C:\DSLR>sc query dslrcliservice
SERVICE_NAME: dslrcliservice
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\DSLR>pause
Press any key to continue . . .
C:\DSLR>
with the service running, you can start a test from Alexa or the web speed test To stop and uninstall the service ... uninstall.bat C:\DSLR>uninstall
C:\DSLR>set cmnt=ACER2015_svc
C:\DSLR>set comp=ACER2015_svc
Microsoft Windows [Version 10.0.14393]
Fri 12/09/2016 9:06:34.09
-
----------------------------------------------------------------------
Fri 12/09/2016 9:06:34.09 -----------------------------------------
----------------------------------------------------------------------
C:\DSLR>dslrcli-windows-amd64 --daemon --daemon-cmd stop --comment ACER2015_svc --authfile c:\dslr\user.json --machinename ACER2015_svc
C:\DSLR>dslrcli-windows-amd64 --daemon --daemon-cmd uninstall --comment ACER2015_svc --authfile c:\dslr\user.json --machinename ACER2015_svc
C:\DSLR>sc query dslrcliservice
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:
The specified service does not exist as an installed service.
C:\DSLR>pause
Press any key to continue . . .
C:\DSLR>
note: the error at the end of uninstall is what you want ... it verifies that the service is not installed |
|
|
to justin
I have a 32-bit operating system , x64 based processor. I get that the dslrcli-windows-amd64.exe program is not compatible with the version of Windows I'm running. Help? Is there a 32-bit version somewhere? Thanks in advance! |
|
justin..needs sleep Mod join:1999-05-28 2031 Billion BiPAC 7800N Apple AirPort Extreme (2011)
|
Try this? I can't try it but it cross-compiled ok. |
|
|
|
|
|
to justin
Re: Binaries. (version 23th December is posted)Think you can do freebsd/amd64? |
|