{"id":1649,"date":"2017-09-09T07:30:10","date_gmt":"2017-09-08T22:30:10","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=1649"},"modified":"2017-09-09T07:30:10","modified_gmt":"2017-09-08T22:30:10","slug":"try_speedtest-cli","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2017\/09\/09\/try_speedtest-cli\/","title":{"rendered":"speedtest.net\u304ccli\u3067\u5229\u7528\u3067\u304d\u308bspeedtest-cli\u3092\u8a66\u3059"},"content":{"rendered":"<p><a href=\"https:\/\/mstdn.maud.io\/@orumin\">\u4e5d\u91cc \u771f\u590f @orumin \u305d\u3046\u3044\u3048\u3070 speedtest.net \u3063\u3066 Linux \u306e CLI client \u3082\u3042\u308a\u307e\u3059\u306d\u3002<\/a><\/p>\n<p>\u3063\u3066\u3053\u3068\u3067Linux\u306ecli\u3067\u52d5\u304fPython\u88fd\u306espeedtest-cli\u3092\u3061\u3087\u3063\u3068\u8a66\u3057\u3066\u307f\u305f\uff0e<\/p>\n<ul>\n<li>\n<p>\n<a href=\"https:\/\/github.com\/sivel\/speedtest-cli\">GitHub &#8211; sivel\/speedtest-cli: Command line interface for testing internet bandwidth using speedtest.net<\/a>\n<\/p>\n<\/li>\n<\/ul>\n<p>speedtest.net\u3067\u306e\u56de\u7dda\u901f\u5ea6\u8a08\u6e2c\u3092cli\u3067\u884c\u3048\u307e\u3059\uff0epython\u88fd\u3067pip\u3068\u304b\u3067\u5404\u7a2e\u74b0\u5883\u306b\u5c0e\u5165\u53ef\u80fd\uff0e<\/p>\n<p>Debian\u3060\u3068jessie\u4ee5\u964dall, Ubuntu\u3060\u306816.04LTS\u4ee5\u964dall\u306bpkg\u3082\u3042\u308b\u306e\u3067apt\u4e00\u767a\u3067\u5165\u308b\u3057\uff0cRaspberry Pi\u306a\u3069\u306eARM\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306a\u3093\u304b\u3067\u3082\u554f\u984c\u306a\u304f\u52d5\u304d\u307e\u3057\u305f\uff0e<\/p>\n<ul>\n<li>\n<p>\n<a href=\"https:\/\/packages.debian.org\/search?suite=all&amp;section=all&amp;arch=any&amp;searchon=names&amp;keywords=speedtest-cli\">Debian&#8201;&#8212;&#8201;\u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c&#8201;&#8212;&#8201;speedtest-cli<\/a>\n<\/p>\n<\/li>\n<li>\n<p>\n<a href=\"https:\/\/packages.ubuntu.com\/search?lang=ja&amp;suite=all&amp;searchon=names&amp;keywords=speedtest-cli\">Ubuntu \u2013 \u30d1\u30c3\u30b1\u30fc\u30b8\u691c\u7d22\u7d50\u679c&#8201;&#8212;&#8201;speedtest-cli<\/a>\n<\/p>\n<\/li>\n<\/ul>\n<p>\u898f\u5b9a\u5024\u306e\u52d5\u4f5c\u306fip\u304b\u3089\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u62fe\u3063\u3066\u305d\u3053\u304b\u3089\u8fd1\u3044\u30b5\u30fc\u30d0\u30fc\u3067\u8a08\u6e2c\u3057\u305f\u7d50\u679c\u3092\u8fd4\u3059\u3088\u3046\u3067\u3059\uff0e<br \/>\n\u81ea\u5b85\u306eip\u30a2\u30c9\u30ec\u30b9\u3067\u306e\u81ea\u52d5\u5224\u5b9a\u3067\u306f\u9759\u5ca1\u306b\u306a\u3063\u3066\u305f\u306e\u3067\u624b\u52d5\u3067\u8a08\u6e2c\u30b5\u30fc\u30d0\u3092\u5909\u66f4\u3057\u3066\u9e7f\u5150\u5cf6\u3068\u6771\u4eac\u3092\u8a66\u3057\u307e\u3057\u305f\uff0e<\/p>\n<p><b>help<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td>\n<pre><code>$ speedtest-cli -h\nusage: speedtest-cli [-h] [--bytes] [--share] [--simple] [--list]\n[--server SERVER] [--mini MINI] [--source SOURCE]\n[--timeout TIMEOUT] [--secure] [--version]\n\nCommand line interface for testing internet bandwidth using speedtest.net.\n--------------------------------------------------------------------------\nhttps:\/\/github.com\/sivel\/speedtest-cli\n\noptional arguments:\n-h, --help show this help message and exit\n--bytes Display values in bytes instead of bits. Does not affect\nthe image generated by --share\n--share Generate and provide a URL to the speedtest.net share\nresults image\n--simple Suppress verbose output, only show basic information\n--list Display a list of speedtest.net servers sorted by\ndistance\n--server SERVER Specify a server ID to test against\n--mini MINI URL of the Speedtest Mini server\n--source SOURCE Source IP address to bind to\n--timeout TIMEOUT HTTP timeout in seconds. Default 10\n--secure Use HTTPS instead of HTTP when communicating with\nspeedtest.net operated servers\n--version Show the version number and exit<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p><b>\u898f\u5b9a\u5024\u3067\u306f\u81ea\u5b85\u306f\u9759\u5ca1\u306b\u306a\u3063\u3066\u3044\u3066\u9759\u5ca1\u30b5\u30fc\u30d0\u3067\u8a08\u6e2c\u3059\u308b(\u5b9f\u969b\u306f\u9e7f\u5150\u5cf6)<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td>\n<pre><code>$ speedtest-cli\nRetrieving speedtest.net configuration...\nRetrieving speedtest.net server list...\nTesting from FreeBit (180.131.110.140)...\nSelecting best server based on latency...\nHosted by ClickL Network (Shizuoka) [0.02 km]: 110.464 ms\nTesting download speed........................................\nDownload: 2.07 Mbit\/s\nTesting upload speed..................................................\nUpload: 0.92 Mbit\/s<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p><b>\u65e5\u672c\u306e\u30b5\u30fc\u30d0\u3092\u78ba\u8a8d\u3059\u308b<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td>\n<pre><code>$ speedtest-cli --list|grep -i japan\n14180) ClickL Network (Shizuoka, Japan) [0.02 km]\n8407) Allied Telesis Capital Corporation (Sagamihara, Japan) [111.58 km]\n6087) Allied Telesis Capital Corporation (Fussa-shi, Japan) [120.41 km]\n6508) at2wn (Yokohama, Japan) [125.30 km]\n7510) ASEINet (Tokyo, Japan) [141.71 km]\n12546) TB (Tokyo, Japan) [141.71 km]\n12511) h3zjp (Nerima, Japan) [142.66 km]\n8348) Foxcore-LS (Sodegaura, Japan) [167.71 km]\n7139) SoftEther Corporation (Tsukuba, Japan) [192.41 km]\n6368) gatolabo (Maibara, Japan) [194.62 km]\n6766) JAIST(ino-lab) (Nomi, Japan) [232.28 km]\n13641) NextechNetworkSolutions (Nara, Japan) [237.53 km]\n6476) rxy (individual) (Osaka, Japan) [264.80 km]\n8832) prize3046 (Ikeda, Japan) [269.86 km]\n8193) kamiari (Sendai, Japan) [427.67 km]\n7976) denpa893 (Hikari, Japan) [601.03 km]\n6405) Allied Telesis Capital Corporation (Misawa, Japan) [686.38 km]\n13568) KSL (Kagoshima, Japan) [820.38 km]\n811) GLBB Japan KK (Chatan, Japan) [1397.84 km]\n6581) haza (Haebaru, Japan) [1410.56 km]<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p><b>\u9e7f\u5150\u5cf6\u30b5\u30fc\u30d0\u3067\u8a08\u6e2c\u3057\u3066\u307f\u308b<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td>\n<pre><code>$ speedtest-cli --server 13568\nRetrieving speedtest.net configuration...\nRetrieving speedtest.net server list...\nTesting from FreeBit (180.131.110.140)...\nHosted by KSL (Kagoshima) [820.38 km]: 103.499 ms\nTesting download speed........................................\nDownload: 2.20 Mbit\/s\nTesting upload speed..................................................\nUpload: 0.92 Mbit\/s<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p><b>\u6771\u4eac\u3092&#8211;simple option\u3067\u8a08\u6e2c\u3057\u3066\u307f\u308b<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td>\n<pre><code>$ speedtest-cli --simple --server 7510\nPing: 150.627 ms\nDownload: 1.88 Mbit\/s\nUpload: 0.84 Mbit\/s<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p><b>\u30b5\u30fc\u30d0\u306e\u6570\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tr>\n<td>\n<pre><code>$ speedtest-cli --list | wc -l\n6509<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/table>\n<p>speedtest\u306fJavaScript\u3084Adobe Flash\u304c\u5fc5\u8981\u306a\u3053\u3068\u304c\u591a\u304f\u3066\u30d8\u30c3\u30c9\u30ec\u30b9\u74b0\u5883\u306a\u3069\u3067\u306f\u9762\u5012\u3067\u3057\u305f\uff0e<br \/>\niperf\u3084netcat\u306a\u3093\u304b\u306f\u304a\u624b\u8efd\u3067\u3059\u304c\uff0c\u901f\u5ea6\u30c6\u30b9\u30c8\u5148\u306e\u30b5\u30fc\u30d0\u306e\u7528\u610f\u304c\u5fc5\u8981\u3067\u3059\uff0e<\/p>\n<p>\u4eca\u56de\u306espeedtest-cli\u306f\u304a\u624b\u8efd\u306b\u5c0e\u5165\u3067\u304d\u3066\u4e16\u754c\u5404\u5730\u306e\u30b5\u30fc\u30d0\u76f8\u624b\u306bcli\u3067speed test\u3082\u51fa\u6765\u3066\u3044\u3044\u611f\u3058\u3067\u3059\uff0e<\/p>\n<\/p>\n<div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e5d\u91cc \u771f\u590f @orumin \u305d\u3046\u3044\u3048\u3070 speedtest.net \u3063\u3066 Linux \u306e CLI client \u3082\u3042\u308a\u307e\u3059\u306d\u3002 \u3063\u3066\u3053\u3068\u3067Linux\u306ecli\u3067\u52d5\u304fPython\u88fd\u306espeedtest-cli\u3092\u3061\u3087\u3063\u3068\u8a66\u3057\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[230,7,88,6,199,75,63,152,159,196],"tags":[253],"class_list":["post-1649","post","type-post","status-publish","format-standard","hentry","category-artful17-10","category-debian-linux","category-jessie-debian-linux","category-linux","category-sid","category-stretch","category-ubuntu","category-xenial16-04","category-yakkety16-10","category-zesty17-04","tag-speedtest"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=1649"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/1649\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=1649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=1649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=1649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}