delaction

摘要

从动作列表中删除已定义的动作。如果传入参数 all,则删除全部动作。

语法

delaction <action_id> | all

参数 类型 说明
<action_id> 整数 目标动作的数字动作 ID
可使用 ODB 命令 status 获取该参数的动作 ID,它会按数字顺序列出所有动作。
all 不适用 删除所有已定义的动作。

详细说明

被删除的动作无法恢复。但动作可以通过 suspaction 命令暂停,并通过 actaction 命令重新激活。动作 ID 是唯一的,在关联动作被删除后不会被重复使用。

示例

ODB> status

Breakpoints :
      None


Traces :
      Full trace is disabled
      Encapsulation trace is enabled
      Execution trace is disabled
      Trace format: indented

      No other traces


Actions :
      2)  action at event (1513): status
      3)  action at event (1521): snapshot snap_file


Miscellaneous :
      Memory tagging is disabled


ODB> delaction 2
“action at event (1513): status” is deleted.

ODB> status

Breakpoints :
      None


Traces :
      Full trace is disabled
      Encapsulation trace is enabled
      Execution trace is disabled
      Trace format: indented

      No other traces


Actions :
      3)  action at event (1521): snapshot snap_file


Miscellaneous :
      Memory tagging is disabled

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com