acttrace
摘要
重新激活先前由 ODB 命令 susptrace 挂起的跟踪记录。
语法
acttrace <trace_id> | all
| 参数 | 类型 | 说明 |
|---|---|---|
<trace_id> |
整数 | 目标跟踪记录的数字跟踪记录 ID 该参数的跟踪记录 ID 可通过 ODB 命令 status 获取,该命令按数字顺序列出所有待触发跟踪记录。 |
| all | n/a | 重新激活所有已挂起跟踪记录。 |
详细说明
重新激活跟踪记录会抵消挂起的效果,使跟踪记录在其条件匹配时处于激活状态。下面的示例假设此前已设置若干跟踪记录,且为数据包 ID 15 设置的数据包跟踪记录已被挂起。
示例
ODB> status
Breakpoints :
None
Traces :
Full trace is disabled
Encapsulation trace is enabled
Execution trace is disabled
Trace format: indented
0) trace on packet with ID (45) (packet in system)
1) trace on packets with tree ID (46) (1 such packets)
2) trace on module (top.pksw1.node_0.xmt) (suspended)
Actions :
None
Miscellaneous :
Memory tagging is disabled
ODB> acttrace 2
"trace on module (top.pksw1.node_0.xmt)" is reenabled.
ODB> status
Breakpoints :
None
Traces :
Full trace is disabled
Encapsulation trace is enabled
Execution trace is disabled
Trace format: indented
0) trace on packet with ID (45) (packet in system)
1) trace on packets with tree ID (46) (1 such packets)
2) trace on module (top.pksw1.node_0.xmt)
Actions :
None
Miscellaneous :
Memory tagging is disabled