deltrace
Abstract
Removes the specified trace from the list of pending traces. If the argument “all” is passed, all pending traces will be deleted.
Syntax
deltrace <trace_id> | all
| Argument | Type | Description |
|---|---|---|
<trace_id> |
integer | numeric trace ID of the trace-of-interest A trace ID can be obtained for this argument by using the ODB command status, which lists all pending traces in numeric order. |
all |
n/a | Delete all pending traces. |
Details
There is no way to restore a deleted trace. However, traces can be suspended via the susptrace command and reactivated via the acttrace command. Trace IDs are unique, and are not reused after the associated trace is deleted.
Example
ODB> pktrace 100
Added trace #0: trace on packet with ID (100) (packet not in system)
ODB> pktrace 200
Added trace #1: trace on packet with ID (200) (packet not in system)
ODB> pktrace 40
Added trace #2: trace on packet with ID (40) (packet not in system)
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 (100) (packet not in system)
1) trace on packet with ID (200) (packet not in system)
2) trace on packet with ID (40) (packet not in system)
Actions :
None
Miscellaneous :
Memory tagging is disabled
ODB> deltrace 2
"trace on packet with ID (40) (packet not in system)" is deleted.
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 (100) (packet not in system)
1) trace on packet with ID (200) (packet not in system)
Actions :
None
Miscellaneous :
Memory tagging is disabled