查询指定设备的指定类型指定索引统计。
<tool name> counter -i <device name> -t <counter type> -x <counter index>
参数 |
参数说明 |
取值 |
---|---|---|
<device name> |
设备名称。 |
物理设备名,例如:hinic0、hinic1。 “-t 4”时可输入网络端口名,例如:eth0、eth1。 |
<counter type> |
指定统计类型。 |
|
<counter index> |
指定统计序列。 |
详见<tool name> counter -h命令。
建议自动化使用索引字符串指定清除index。 |
项目 |
描述 |
---|---|
result |
统计项回显。 |
只打印有统计值的统计项,没有打印的统计项,即统计值为0。
查询设备hinic0微码类型指定序列统计。
1 2 3 4 5 6 | hinicadm3 counter -i hinic0 -t 1 -x 1 NPU Statistics: NIC MIB TX BC Counter: …… |