iperfというツールを使いスループットを確認していますが、
このツールの出力結果がExcelで処理しにくい出力形式のため困っております。
ツール起動時下記コマンドで実行していますが、せめて、日時を一番左に挿入
するようなバッチにしたいのですが、何か方法は御座いますでしょうか?
echo %date%%time% >> iperf.log
iperf3.exe -c 192.168.1.2 -t 20 >>iperf.log
Connecting to host 192.168.1.1, port 5201
[ 4] local 192.168.1.1 port 62946 connected to 192.168.1.2 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 5.00 MBytes 41.9 Mbits/sec
[ 4] 1.00-2.01 sec 3.25 MBytes 27.0 Mbits/sec
[ 4] 2.01-3.00 sec 15.4 MBytes 130 Mbits/sec
[ 4] 3.00-4.01 sec 13.4 MBytes 111 Mbits/sec
[ 4] 4.01-5.02 sec 4.00 MBytes 33.4 Mbits/sec
[ 4] 5.02-6.02 sec 5.75 MBytes 48.3 Mbits/sec
[ 4] 6.02-7.00 sec 8.88 MBytes 75.7 Mbits/sec
[ 4] 7.00-8.00 sec 9.62 MBytes 80.5 Mbits/sec
[ 4] 8.00-9.01 sec 20.1 MBytes 168 Mbits/sec
[ 4] 9.01-10.00 sec 11.8 MBytes 98.8 Mbits/sec
[ 4] 10.00-11.01 sec 27.0 MBytes 226 Mbits/sec
[ 4] 11.01-12.00 sec 26.2 MBytes 221 Mbits/sec
[ 4] 12.00-13.00 sec 28.1 MBytes 236 Mbits/sec
[ 4] 13.00-14.00 sec 29.1 MBytes 244 Mbits/sec
[ 4] 14.00-15.00 sec 31.2 MBytes 262 Mbits/sec
[ 4] 15.00-16.00 sec 30.1 MBytes 253 Mbits/sec
[ 4] 16.00-17.00 sec 23.8 MBytes 199 Mbits/sec
[ 4] 17.00-18.01 sec 33.0 MBytes 276 Mbits/sec
[ 4] 18.01-19.00 sec 31.9 MBytes 268 Mbits/sec
[ 4] 19.00-20.00 sec 28.1 MBytes 236 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-20.00 sec 386 MBytes 162 Mbits/sec sender
[ 4] 0.00-20.00 sec 386 MBytes 162 Mbits/sec receiver
iperf 3.9
には実行結果を JSON フォーマットで出力するオプション(-J
)があります。