Hướng dẫn cài đặt speedtest cli trên centos
Hướng dần cài đặt speedtest cli trên linux để đo tốc độ mạng
tar -xzvf tar -xzvf ookla-speedtest-1.0.0-x86_64-linux.tgz
mv speedtest /usr/bin
Các lệnh cơ bản
1. List server:
Output:
ID Name Location Country
==============================================================================
24093 3BB Ubon Ratchathani Thailand
27630 Viettel Network Hue Vietnam
24565 3BB Sakon Nakhon Thailand
17756 VNPT-NET Da Nang Vietnam
10040 Viettel Network Da Nang Vietnam
35507 SPT3 Da Nang Vietnam
19060 GIAM PING VIETPN.COM Da Nang Vietnam
19294 POWERNET.VN Da Nang Vietnam
16873 Vietnamobile Da Nang VN
44677 FPT Telecom Da Nang Vietnam
2. Lệnh test tốc độ speedtest -s <id>
Output:
Speedtest by Ookla
Server: VNPT-NET - Da Nang (id = 17756)
ISP: BizMaC Hosting
Latency: 12.24 ms (0.10 ms jitter)
Download: 93.75 Mbps (data used: 77.3 MB)
Upload: 92.26 Mbps (data used: 48.8 MB)
Packet Loss: 0.0%
3. Để xem các option các bạn chạy lệnh:
Output
Speedtest by Ookla is the official command line client for testing the speed and performance of your internet connection.
Version: speedtest 1.0.0.2
Usage: speedtest [<options>]
-h, --help Print usage information
-V, --version Print version number
-L, --servers List nearest servers
-s, --server-id=# Specify a server from the server list using its id
-I, --interface=ARG Attempt to bind to the specified interface when connecting to servers
-i, --ip=ARG Attempt to bind to the specified IP address when connecting to servers
-o, --host=ARG Specify a server, from the server list, using its host's fully qualified domain name
-p, --progress=yes|no Enable or disable progress bar (Note: only available for 'human-readable'
or 'json' and defaults to yes when interactive)
-P, --precision=# Number of decimals to use (0-8, default=2)
-f, --format=ARG Output format (see below for valid formats)
-u, --unit[=ARG] Output unit for displaying speeds (Note: this is only applicable
for ‘human-readable’ output format and the default unit is Mbps)
-a Shortcut for [-u auto-decimal-bits]
-A Shortcut for [-u auto-decimal-bytes]
-b Shortcut for [-u auto-binary-bits]
-B Shortcut for [-u auto-binary-bytes]
--selection-details Show server selection details
--ca-certificate=ARG CA Certificate bundle path
-v Logging verbosity. Specify multiple times for higher verbosity
--output-header Show output header for CSV and TSV formats
Valid output formats: human-readable (default), csv, tsv, json, jsonl, json-pretty
Machine readable formats (csv, tsv, json, jsonl, json-pretty) use bytes as the unit of measure with max precision
Valid units for [-u] flag:
Decimal prefix, bits per second: bps, kbps, Mbps, Gbps
Decimal prefix, bytes per second: B/s, kB/s, MB/s, GB/s
Binary prefix, bits per second: kibps, Mibps, Gibps
Binary prefix, bytes per second: kiB/s, MiB/s, GiB/s
Auto-scaled prefix: auto-binary-bits, auto-binary-bytes, auto-decimal-bits, auto-decimal-bytes
Chúc các bạn thành công.