備忘録

備忘録

CentOSでspeedtest-cliを実行する方法

Ⅰ. はじめに

タイトルの通り「CentOSでspeedtest-cliを実行する方法」です。

Ⅱ. やり方

1. pipをインストールする
yum install epel-release
yum install python-pip
pip install pip --upgrade
2. speedtest-cli をインストールする
pip install speedtest-cli
3. speedtest-cli を実行する
$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from ***(***.***.***.***)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by Speedtest.net (Toronto, ON) [94.81 km]: 75.328 ms
Testing download speed...
Download: 316.15 Mbit/s
Testing upload speed...
Upload: 51.62 Mbit/s

その他オプション

speedtest-cli --server 1234
speedtest-cli --no-upload
speedtest-cli --json
speedtest-cli --csv --csv-delimiter "|"