【发布时间】:2014-04-15 11:31:32
【问题描述】:
我正在使用 tcl 和期望为 radius 服务器编写负载测试脚本。 我正在从远程服务器上的脚本调用 radclient,它与 radius 服务器一起内置。 脚本执行以下操作:
获取远程服务器IP - 生成 ssh 到远程服务器 - 调用 radclient - 使用 radclient 命令执行负载测试 - 需要将输出的结果(如示例输出所示)收集到一个变量中 - 从上一步的输出或变量中提取身份验证/秒作为每秒事务数 (TPS)
在最后两步需要帮助:
radclient 的示例输出:
*--> timetest 20 10 2 1 1
Cycles: 10, Repetitions: 2, Requests per Cycle: 10
Starting User Number: 1, Increment: 1
Current Repetition Number=1
Skipping Accounting On Request
Total Requests=100, Total Responses=100, Total Accepts=0 Total Not Accepts=100
1: Sending 100 requests and getting 100 responses took 449ms, or 0.00 authentications/sec
Current Repetition Number=2
Skipping Accounting On Request
Total Requests=100, Total Responses=100, Total Accepts=0 Total Not Accepts=100
2: Sending 100 requests and getting 100 responses took 471ms, or 0.00 authentications/sec
预期输出:
TPS achieved = 0
【问题讨论】: