linux 回線速度 Speedtest cli

speedtest

[code lang=text] [root@n54l ~]# yum install python-setuptools 読み込んだプラグイン:fastestmirror, priorities インストール処理の設定をしています Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.riken.jp * extras: www.ftp.ne.jp * rpmforge: ftp.riken.jp * updates: www.ftp.ne.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be インストール --> 依存性解決を終了しました。

依存性を解決しました


パッケージ アーキテクチャ バージョン リポジトリー 容量

インストールしています: python-setuptools noarch 0.6.10-3.el6 base 336 k

トランザクションの要約

インストール 1 パッケージ

総ダウンロード容量: 336 k インストール済み容量: 1.5 M これでいいですか? [y/N]y パッケージをダウンロードしています: python-setuptools-0.6.10-3.el6.noarch.rpm | 336 kB 00:00
rpm_check_debug を実行しています トランザクションのテストを実行しています トランザクションのテストを成功しました トランザクションを実行しています インストールしています : python-setuptools-0.6.10-3.el6.noarch 1/1 Verifying : python-setuptools-0.6.10-3.el6.noarch 1/1

インストール: python-setuptools.noarch 0:0.6.10-3.el6

完了しました! [root@n54l ~]# [root@n54l ~]# [root@n54l ~]# easy_install speedtest-cli Searching for speedtest-cli Reading http://pypi.python.org/simple/speedtest-cli/ Best match: speedtest-cli 0.3.2 Downloading https://pypi.python.org/packages/source/s/speedtest-cli/speedtest-cli-0.3.2.tar.gz#md5=7198a5e10d79fe3b408b553a7e59d484 Processing speedtest-cli-0.3.2.tar.gz Running speedtest-cli-0.3.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-VmW4iM/speedtest-cli-0.3.2/egg-dist-tmp-JRCxZ5 zip_safe flag not set; analyzing archive contents... Adding speedtest-cli 0.3.2 to easy-install.pth file Installing speedtest script to /usr/bin Installing speedtest-cli script to /usr/bin

Installed /usr/lib/python2.6/site-packages/speedtest_cli-0.3.2-py2.6.egg Processing dependencies for speedtest-cli Finished processing dependencies for speedtest-cli [root@n54l ~]# [/code]

単純にspeedtestと打つだけで近場のサーバで速度を測ってもらえるみたいです。

[code lang=text] [root@n54l ~]# speedtest Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from Open Computer Network (118.xx.xx.125)... Selecting best server based on latency... Hosted by Allied Telesis Capital Corporation (Fussa-shi) [23.96 km]: 10.194 ms Testing download speed........................................ Download: 263.93 Mbit/s Testing upload speed.................................................. Upload: 100.44 Mbit/s [/code]

Fussa-shi… tokyoの方が近いけどpingの早さで決めているのかな? とりあえず近い方にしておきたいのでtokyoをidで指定します。

idを調べるにはオプション listです。 [root@n54l ~]# speedtest --list でずらずらサーバリストがでます。

grep で見るとtokyoのidは6424だそうです。

[code lang=text] [root@n54l ~]# speedtest --list | grep -i tokyo 6424) Cordeos Corp. (Tokyo, Japan) [16.25 km] [/code]

サーバを固定する。

[code lang=text] [root@n54l ~]# speedtest --server 6424 Retrieving speedtest.net configuration... Retrieving speedtest.net server list... Testing from Open Computer Network (118.xx.xx.125)... Hosted by Cordeos Corp. (Tokyo) [16.25 km]: 12.566 ms Testing download speed........................................ Download: 234.59 Mbit/s Testing upload speed.................................................. Upload: 117.89 Mbit/s [/code]

simpleオプションでシンプルに表示されます。

[code lang=text] [root@n54l ~]# speedtest --server 6424 --simple Ping: 11.456 ms Download: 234.01 Mbit/s Upload: 113.83 Mbit/s [/code]