Console access to the NetBeez agents
With the software update 0.11.2 we have released a new feature: The agent console. The agent console allows you to have access to the command line environment of your agents.
We are very excited about this new feature because our users can get out more information from the agent thanks to the Linux command line. However, there are some risks associated with this feature, because since it’s running as root, you could mess things up if you don’t know what you are doing. Also, please remember that the console implementation is non-interactive, so avoid to run commands that don’t return the prompt or require further inputs (e.g. dialog boxes). To avoid and reduce the risk of unwanted incidents, console access to the agent is only available to administrators. If you don’t see on the top right of your dashboard the NetBeez settings cog, that means that you are not an administrator (free tier users right now don’t have administrator access - contact us if you are interested).
We highly recommend to run read-only commands on the agents, unless you know what you are doing or we publish a howto like this that gives you clear instructions on how to enable a specific functionality.
How to run speedtest from the agent console
1- In NetBeez, under the Agents tab, click on the agent where you want to install and run speedtest
2- Go to the Agent Console tab within the agent detailed view
3- Download the speedtest-cli python script by pasting (use CTRL-V) the following line on the console
curl -s -Lo /usr/bin/speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
4- Set the executable bit to the speedtest-cli script
chmod +x /usr/bin/speedtest-cli
5- Now run it (add the --simple option to avoid the full command output getting printed out line-by-line)
That’s all folks, have fun!
Speedtest-cli GitHub project - https://github.com/sivel/speedtest-cli