start-traceroute 接口
新增于 V2.5
发起路由追踪测试,测试在后台异步执行,可通过 get-traceroute-result 获取测试状态与结果。
请求方式
GET http://ip/usapi?method=start-traceroute&destination=8.8.8.8&iface=eth0
| 参数 | 说明 |
|---|---|
| method | 方法名称:start-traceroute |
| destination | 路由追踪目标地址,IP 地址或域名 |
| iface | 出网接口,选填,默认为 default default: 系统默认路由 eth0: 有线网络接口 wlan0: 无线网络接口 |
返回数据
{
"result": 0,
"destination": "8.8.8.8"
}
| 属性 | 说明 |
|---|---|
| result | 返回状态。 0:发起成功 -9:系统忙(已有路由追踪正在进行) 返回其它值请参考 API 状态码 |
| destination | 路由追踪目标地址 |