LabTech Plugin: SpeedTest v3
Posted on March 29, 2016
NOTE: This plugin is compatible with LT 10.0, 10.5, 11, and 12!
This plugin will perform a speed test by pinging, download files from, and uploading files to speedtest.net servers. The results are stored and you’re able to easily view results over time via the graph at the computer level or client level. You can enable scans at the group level as well, which is especially useful if you want to enable automatic tests in bulk against a specific group, such as domain controllers.
When enabled, the speed test will be performed every time the network inventory is sent. This allows a consistent time frame without the need to schedule or troubleshoot a script. Results are kept in the database for 60 days and cleaned up automatically. This allows better history and reduced load on the database with removing old entries every scan. Additionally, you can optionally specify the server id you want used for the scan. If the results normally vary across servers for you, this can provide more consistency.
How to setup and use this plugin:
1: Install via the Plugin Install.
2: Restart the Control Center.
3: Update plugins via Commands -> LabTech -> Update Plugins. This is optional as it will happen automatically eventually, but you can do this manually to speed up the process for individual computers or groups/locations/clients.
4: Open up any computer that you want regular speed tests on and click on the slider at the top to enable them. You can also optionally specify the server ID to use.
Once done, a new file is created in the LTSvc directory called speedtest (no extension). Leave this file alone. It will be deleted if/when you disable speed tests on the machine. Update network inventory on the machine and you’ll see the results in the SpeedTest tab.
[…] We greatly appreciate all feedback received and are thrilled that this plugin can now benefit more people! Get more information and install the plugin here. […]
Hi guys, I am using the script rather than the plugin as I want to schedule it for specific machines. How can I amend the script to use the serverID I want used?
[…] NOTE: This plugin has received lots of updates and is in version 2.x. Check it out here! […]
Is there a way to schedule this to run against a group? Do you include a script to fire off the speedtest? Thanks
Matt,
Because the speedtest is now done whenever a network inventory is done, you can schedule the network inventory or a script to run the network inventory against any group you like.
Hope that helps!
Thanks,
Tim
We are seeing an error saying ‘error retrieving the information’ whenever we try to run. Any ideas?
James,
This issue should now be resolved. Please update via the plugin installer. Sorry about that!
Thanks,
Tim
Nice plugin, this is very helpful. I have noticed some wildly high upload numbers though. Sometimes as high as 500 to 1000 mbps. Download numbers tend to be pretty consistent.
Mark,
The newer version of the plugin cli tool will return the maximum value received, and thus can fluctuate more. If you want an average, the older versions did that. 🙂
Thanks for the feedback!
Tim
Is there an easy way a labtech noob such as myself can export results from a single machine into a spreadsheet or make it available for printing? I know this is probably a dumb question, but was hoping for a quick easy answer.
Jim,
Great question. As of right now, there’s no feature to export the results. However, I’ll get that added tonight and you should see it tomorrow after an autoupdate.
Thanks!
Tim
Ditto. This functionality would be great!!
Jim & Matt,
Thanks much for your input. I’ve updated the plugin to include the ability to export computer and location select Excel sheets, including all items or only selected items. You can update via the Plugin Installer (https://squattingdog.net/plugininstaller).
Thanks!
Tim
Tim, you sir are the man. The export function works perfectly.
Thanks
Just installed this and I’m getting an error in the Commands tab “Output: ERR an error occurred: Access to the path ‘C:\Windows\ltsvc\speedtest’ is denied.”
Mike,
I would typically think the av is blocking the download for some reason. You did download the speedtest.exe file as indicated, right? Also, are you seeing this at multiple locations?
Thanks!
Tim
Found the issue. The system I tested it on had been using the old version of the plugin. There was a directory call SpeedTest which was preventing the new plugin from creating a file called speedtest. When I deleted the directory the problem went away.
It might be an idea to have an extension on that file to prevent this.
Mike,
Thanks for pointing that out. I’ll get that taken care of.
Tim
Not fixed, just had the same problem again today due to an existing SpeedTest directory
I’ve installed the plug-in and confirmed it is loaded (Plug-In Manager). I’ve also confirmed the existence of the file (L:\Transfer\Tools\speedtest.exe). One the machines I have assigned to participate in SpeedTest, there is a 1k file (c:\Windows\LTSvc\speedtest).
When running an inventory, there do not seem to be any test results (even though the inventory completes). I am using LabTech 10.5.259 (Patch 3). Is there something that I am missing?
Would love to get this working.
John,
Did you already close and re-open the computer window to see if it didn’t automatically populate for some reason? If you will, shoot me an email at support@squattingdog.net and I’ll help get you taken care of.
Thanks!
Tim
I seem to be lost on step 2..I dont have an L:\ drive on my PC. What am I doing wrong?
Colin,
Your L:\ would normally point to \\labtechserver\ltshare. If you don’t have it, you can connect to the server itself and put the exe file in the proper place there. The server should definitely have the L: mapped.
Hope that helps!
Tim
Hello Tim,
Nice meeting you at AN16.
I know it is possible to export the results to a report or excel sheet, is there a way to get the report to include the graph, if not I can continue to export to excel and model the data there into a graph. Awesome work!
Thank you,
Alex
Alex,
Not right now, but I can certainly see the value in that. I’ll get it on the wishlist.
Thanks, and nice meeting you, too!
Tim
Sounds good. Also just installed the dUninstaller plugin. Great work there.
Thank you.
Alex
I could use some help, this looks so awesome and I really want it to work!
I have installed the plugin manager, installed speedtest and downloaded the exe file. I downloaded the speedtest.exe file from helpful hacker and placed it in the directory below on our labtech server.
\\localhost\ltshare\Transfer\Tools
I closed and relaunched the control center, and ran a network inventory refresh on a server that has the slider moved to on in the speedtest tab. I hit the refresh button, closed the machine, then reopened it. Still nothing. I did a system reload at the top and closed and relaunched labtech but nothing is on the tab.
What am I doing wrong here guys?
Doug,
Did you rename the file to speedtest.exe? When a network inventory runs, the last few lines of the letters.txt file on the computer should give more information about what’s going on. If you can send that log file to support@squattingdog.net, I’ll make sure to get you taken care of.
Thanks,
Tim
Where is this log file located exactly? Thank you so much for your help!
C:\windows\ltsvc\lterrors.txt. This file is on the server that you are testing.
hello guys,
i follow the instructions but still not work.
said
Parameters: %windir%\ltsvc\speedtest\
Output: Error deleting directories – check local log file
Edpinzon,
That error is okay. The process will attempt to delete that directory if it exists, as an old form of the plugin used that directory. It replaces it with a small file named speedtest. Are you still not seeing results? If not, shoot an email to support@squattingdog.net.
Thanks!
Tim
Downloaded and installed this today for LT 10.5. The plugin installed just fine and I renamed the speedtest.exe file in the proper location. However, the plugin fails to actually produce anything and I don’t see the speedtest.exe on the target machine. Where is supposed to transfer too? I have manually transferred it to the LTSVC folder and can manually run it there to make sure the exe is not corrupted. Just need to know how to match all of the pieces.
Joe,
After installing, did you enable speed tests from the Speedtest tab? Once that’s done, speed tests should start occurring when you do a network inventory. If you still have a problem after doing that, please email support@squattingdog.net and I’ll make sure you get you taken care of.
Thanks!
Tim
Works like a charm in LT11 too! But the Tab on each computer is only visible in the classic view. Not in the new GUI.
Some development work to do?
Bas,
I believe that a recent patch has caused issues with the plugin appearing in LT 10.5 patch 8 that may have also manifested in LT 11. A fix is in the works.
Thanks for the information!
Tim
Hi Tim. Hate asking for help on a free product, but I don’t seem to be getting any results. I’ve downloaded the tool, renamed it to speedtest.exe and put it in the ltshare\transfer\tool folder. I’ve enabled it in the classic computer screen (running LT 11), and I can see the speedtest file being created in windows\ltsvc, but all it contains is a ‘0’. Any ideas what I may be missing? Thanks in advance!
Hey Colin,
This is most likely the same issue as the one affecting the plugin with 10.5 patch 8+. I am working on a fix and getting it tested, but it hasn’t been released yet.
Sorry for the delay on that, but I hope to have it fixed soon!
Thanks,
Tim
I just downloaded and installed V 2.91 and am experiencing the same result. I’ve enabled it in the classic computer screen (running LT 11 – LT hosted version), and I can see the speedtest file being created in windows\ltsvc, but all it contains is a ‘0’. The speedtest plugin screen does not show any data. I also made sure that the current speedtest.exe is in my ltshare\transfer\tools folder on my LT hosted server.
Kent,
If you will, email support@squattingdog.net so I can have a look with you.
Thanks!
Tim
Just installed on LT 11.0.331 (Patch 6) and no data is being pulled back into the Speedtest information.
Ideas? I am not seeing any errors.
Hey Guys, another labtech 11 here. Installed correctly but no results are being populated.
Hey Barry,
I got your email and replied. If you will, follow-up there and I’ll be sure to get you up and running.
Thanks!
Tim
Hey Tim, don’t see your email. Please shoot me another. Thanks!!!!
Any update on this? Thanks!
Cliff,
Can you be more specific? I think the reported issue has been addressed. If not, please feel free to shoot me an email.
Thanks,
Tim
I too have just installed the plugin for LT11 and get no results returned… 🙁 is there a newer version of the plugin in development or do I have to do something different for LT11?
Mat,
Would you mind shooting an email over to support@squattingdog.net so I can have a look at this with you? I’ve seen it working successfully for several with LT11, so I’d like to see what exactly isn’t working for you.
Thanks,
Tim
Any chance this will be updated for LT11? I can only enable on agents when using the old Comp Mgmt Screen.
Hey Tim,
This has been done. Thanks for the request!
Thanks,
Tim
We also attempted to use this with LT11. We didn’t have it installed before the upgrade. But we did install it post upgrade. I installed the plugin and placed the executable in the ‘L’ drive. The plugin loads, but testing won’t display in the window. When I run the .exe from CLI, I can see the speedtest results, but nothing in LT window.
Steve,
Once the plugin is enabled, you may need to update remote plugins for any computers that need to have automatic Speedtests done. Once the plugins are updated and speedtests enabled for the computer, the test will run during any network inventory. I apologize that this isn’t better included as instruction.
Thanks,
TIm
Hello,
Would you be able to provide a script so we can enable this a bit quicker (without going into the comp mgmt screen)?
I tried but failed, as there is more to it than:
INSERT INTO plugin_speedtest_enabled
VALUES (6303, 1)
Appreciate it!
I seeing his plugin reporting incorrect upload speeds, I recently tested a customer’s 40Mb leased line and it said the upload speed was only 5Mb. I just tried on a brand new fibre line and I’m seeing similar results.
Seeing a similar result, testing against 50/50, 100/100, and other various lines. Seeing closer to expected speeds when testing via browser on the machine via Ookla / Speedtest.net.
We’re seeing something similar. Server has 500×500 symmetric and the plugin is reporting closer to 500×12. Speedtest.net in the browser seems to be working fine.
I am seeing the same issue with some of our clients.
I’ve downloaded and installed the plugin but it’s not providing any information back to the plugin UI ??
Tim,
Can you try refreshing plugins on the computer and re-running the test to see if it works? If not, shoot me an email at support@squattingdog.net.
Thanks!
Tim
Hi Tim,
I came in this morning and it’s actually done a test.
Now that the test is done during a network inventory, am I looking at one test per day or should I be scheduling a network inventory collection every 30 mins or so?
What do you recommend?
Tim,
It depends on how you want to use the information. I would probably recommend at least twice per day, once in the morning, once in the afternoon, so that you have a good baseline should slowness be reported by the clients. If you simply want to report on it monthly or just occasionally look for obvious outliers, once per day should be sufficient.
Thanks,
Tim
Hi
This installed fine but I’m unsure where I should be setting the automatic schedule for the speedtests. I assume this is possible?
Thanks
Hi Luca,
Speed test results are retrieved whenever network information is retrieved. So you can caused network information to be refreshed as often as necessary to get new speed test results.
Thanks,
Tim
We’re using CW Automate’s cloud service. Can this plugin be installed on our cloud server? I haven’t seen any documentation that supports this, but thought I’d check.
Andrew,
Sure can. The plugin installer isn’t biased. 🙂
Thanks,
Tim
Hmm, I must be missing something then. The installer I found here is .EXE. The plugin manager for CW Automate requires it to be a .dll in order to upload.
It’s a great little plugin, but as reported above, it reports unreliable upload results for some endpoints so is unfortunately not really usable.
Some endpoints report accurate upload speeds, but not all.
Any chance you could fix it tim?
Erin,
This is unfortunately a problem with the exe tool being used to query the test results. It’s called speedtest-cli. The plugin simply parses the results from that and it often times has inconsistent results. Unfortunately I don’t have any kind of fix for that, and I’ve yet to find a more accurate tool – or even another tool that is even similar in functionality that’s free.
Thanks,
Tim
Any support for v12 yet?
Yep. It’s been working with v12. 🙂
Thanks,
Tim
Thanks for a great plugin!
I managed to get it working quickly and also setup reports to send to clients.
One question: Is there a way to clear the computer’s speedtest history?
tks
Kevin,
There’s not a way within the plugin. However, you can pretty easily clean up any results with a quick sql query:
DELETE FROM plugin_speedtest WHERE computerid=XX (replacing XX with the computer ID)
Thanks,
Tim
I’m seeing inaccurate testing results in some cases, similar to Mike’s/Jason Vaught’s/Ryan Christensen’s/Cameron Llewellyn’s reports from 2017.
User should be getting ~115mbps down and ~20mbps up. Instead, intermittently, both the scheduled and on-demand test results are coming back anywhere from 32mbps-70mbps downstream (and sometimes are at the expected 115mbps as well).
Upstream speeds are consistently around the 5mbps mark, except for a few instances where it was reported as 500+mbps.
Browser speed test results from several providers, including Ookla, AT&T, and Speakeasy, consistently yield the expected 115mbps down/20-25mbps up. This includes when being run in between two tests from the plugin (the plugin tests reported 66.51/5.01 and 69.65/4.92, while the browser test yielded 115/23), and also includes when I used Ookla’s site to actually select the same test server that the plugin received the low results from.
Michael,
As indicated in several replies, this is unfortunately not resolvable at this point. The plugin uses a tool called speedtest-cli to perform the tests and then parses those results. The results aren’t always consistent. I’ve not been able to find a more suitable tool to use for this plugin, but am absolutely open to feedback about a command line tool that returns consistent, accurate results that can be used.
Thanks!
Tim
This project looks promising as they have recently identified an issue with the reported speeds and are working on a fix
https://github.com/zpeters/speedtest
Mike,
That’s the project that the plug-in currently uses. I see that he just released a new build yesterday and will see if it helps to solve the problem.
Thanks,
Tim
Have just found that most of my speedtests have stopped running on the 29th of November. What do I need to do to get them to work again?
Gary,
Certainly odd for MOST to stop on a given day. If you don’t mind, send over the lterrors.txt file to support@squattingdog.net from one of the affected computers and I’ll see what we can do.
Thanks,
Tim
Hey there – this was great, and easy to install. I’ve updated the plugins on the machines in question, and everything seems to be at least trying to work, but it’s never gathering any data, even when I try to run it manually.
I just get ‘no previous results found’. I’ve tested on multiple machines.
v 12 Patch 9 right now.
Hi Candace,
On one of the computers, please check the c:\windows\ltsvc\lterrors.txt file as some logging should occur there when the plugin tries to do a speed test. Feel free to send that over to support@squattingdog.net and I’ll have a look.
Thanks,
Tim
It would be really great if we could list somewhere the clients expected bandwidth and get alerts/tickets if we fall a certain percentage away from those numbers. Or perhaps we can just make an alert threshold for the upload and download speeds to have it trigger a ticket.
Any idea why this would be failing on multiple computers, all with the same error:
Speedtest: Ran the speedtest, but an invalid result was found. Err: An error occurred while performing the test. Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.
I can’t seem to figure out a pattern between the computers where it works and the ones where it doesn’t. Help?
Justin,
If it fails on one computer for a given client, does it also fail for others at the same client? The plugin downloads and XML file from the SpeedTest.net servers, so my initial assumption would be something blocking that download. Feel free to reach out to me at support@squattingdog.net for further help if needed as that’s easier than monitoring the plugin discussions.
Thanks,
Tim
Any chance that this could be updated to Automate version 20? It has been very useful in the past.
Hi
Just stumbled across this today.
Can i confirm this plugin works with CW Automate V24.0.8.369
Jason,
Indeed it is.
Thanks,
Tim