使能/去使能tcpdump抓包功能

SP680SP681无此场景。

命令功能

使能/去使能tcpdump抓包功能。

命令格式

<tool name> roce_capture -i <device name> -t <type>

入参说明

参数

参数说明

取值

<device name>

设备名称。

网卡设备,例如:hrn3_0。

<type>

开关使能与否。

  • start_func_cap:使能
  • stop_cap:去使能

出参说明

项目

描述

roce_capture command error(-num): query capture type not set

参数错误

start func capture successful. inbuf.mode(*)

操作成功

stop capture successful.

操作成功

使用指南

无。

使用实例

使能(开启)tcpdump抓包功能。

1
2
hinicadm3 roce_capture -i hrn3_0 -t start_func_cap
start func capture successful. inbuf.mode(0x0)

去使能(关闭)tcpdump抓包功能。

1
2
hinicadm3 roce_capture -i hrn3_0 -t stop_cap
stop capture successful.