以每秒打印1次的方式动态打印端口速率。
<tool name> roce_port_traffic -i <device name> -t <exec_time> [-p <port_id>] [-c <cos_id>] [-g <gap_time>] [-a]
参数 |
参数说明 |
取值 |
---|---|---|
<device name> |
设备名称。 |
RoCE设备,例如:hrn3_bond_0。 |
<exec_time> |
统计时间。 |
例如:120。 单位:s。 |
<port_id> |
端口号。 |
- |
<cos_id> |
芯片CoS。 |
0~7。 |
<gap_time> |
间隔时间,经过gap_time后再回显数据。 |
例如:1。 单位:s。 |
项目 |
描述 |
---|---|
roce_port_traffic command error(-6): exec time not set |
参数错误。 |
待查询数据 |
操作成功。 |
“-a”表示查询所有端口。
1 2 | hinicadm3 roce_port_traffic -i hrn3_bond_0 -t 1 -g 1 -c 4 | port1 | tx->Mpps:0.000 tx->Gbps: 0.000 | rx->Mpps:0.381 rx->Gbps: 2.935 gap_ms: 1064 | cos4 | |