ovs_info

命令功能

OVS流侦听bitheap查询、counter查询、获取镜像计数和获取镜像会话信息。

命令格式

<tool name> ovs_info -i <device name> -t <type> [-x <index>]

入参说明

参数

参数说明

取值

<device name>

设备名称。

物理设备名,例如:hinic0、hinic1。

<type>

待查询设备的OVS卸载信息的类型。

  • fm_bheap:查找bheap(必须有“-x”参数)。
  • fm_counter:查找counter(必须有“-x”参数)。
  • mirror_stats:获取镜像计数(无需“-x”参数)。
  • mirror_session:获取镜像会话信息。

<index>

待查询设备的流侦听索引。

  • fm_bheap和fm_counter取值:0~3839。
  • mirror_session取值:0~127。

“-t”取值为mirror_stats时,“-x”参数无效。

出参说明

项目

描述

fm_bheap:latency_id(*) bheap(*)

Latency_id对应的bheap。

fm_bheap:latency_id(*) counter(0x* 0x*)

Latency_id对应的counter。

Clear ovs mirror stats.

清除镜像计数成功。

mirror_num : *

mirror_bytes : *

  • mirror_num:镜像计数。
  • mirror_bytes:镜像字节。

使用指南

无镜像会话信息时使用<tool name> ovs_info -i <device name> -t mirror_session将无打印信息

使用实例

查询hinic0的流侦听使用的bitheap信息。

1
2
hinicadm3 ovs_info -i hinic0 -t fm_bheap -x 0
fm_bheap:latency_id(0) bheap(0)

查询hinic0流侦听的counter信息。

1
2
hinicadm3 ovs_info -i hinic0 -t fm_counter -x 0
fm_bheap:latency_id(0) counter(0x0 0x0)