The following example shows how to enable NPU traps. NPU traps need to be enable one at a time:
Device# #debug platform software fed active drop-capture set-trap npu-traps ?
L3 npu layer 3 traps
OAMP npu OAMP traps
app npu app traps
ethernet npu ethernet traps
internal npu internal traps
ipv4 npu ipv4 traps
ipv6 npu ipv6 traps
mpls npu mpls traps
Device# debug platform software fed active drop-capture set-trap npu-traps l3 ?
l3-absr-tbl-miss npu trap l3 absr table miss
l3-bfd-mic-ip-dis npu trap l3 bfd micro ip disabled
l3-drop-adjacency npu trap l3 drop adj
l3-enc-tbl-miss npu trap l3 enacap table miss
l3-int-hop-limit npu trap l3 int hop limit
l3-invalid-spi npu trap l3 invalid spi
l3-ip-mc-drop npu trap l3 ip mc drop
l3-lpm-def-drop npu trap l3 lpm default drop
<snip>
The following exampl shows how to enable TM traps. All the TM traps can be enabled at once:
Device# #debug platform software fed active drop-capture set-trap tm-traps ?
all Enable all TM Traps
eth-meter-oor Ethernet Meter packets Out of rate
exact-meter Exact Meter Drop reason
rxpdr-b-overflow RXPDR B overflow
rxpdr-dsp-overflow RXPDR DSP overflow
<snip>
Device# #debug platform software fed active drop-capture set-trap tm-traps all
The following example shows how to start punting the dropped packets:Device# debug platform software fed active drop-capture start
The following example shows how to stop punting the dropped packets:Device# debug platform software fed active drop-capture stop
The following example shows how to display the details of the dropped packets in brief:
Device# show platform software fed active drop packet-capture brief
DropPackets packet capturing: disabled. Buffer wrapping: disabled
Total captured so far : 2313 packet(s)
Capture capacity : 4096 packet(s)
Max. Meta header size : 88 byte(s)
Max. Packet data size : 128 byte(s)
------ DropPackets Packet Number: 1, Timestamp: 2024/03/25 15:04:46.823 ------
interface : phy: [if-id: 0x00000000], pal: [if-id: 0x00000000]
misc info : cause: 0 [Reserved ], sub-cause: 0, linktype: UNKNOWN [0]
CE hdr : dest mac: 4e41.5000.0111, src mac: 4e41.5000.0111, ethertype: 0x7106
meta hdr : Nxt. Hdr: 0x1, Fwd. Hdr: 0x2, SSP: 0x19
meta hdr : DSP: 0xffff, SLP: 0xe, DLP: 0x95
ether hdr : dest mac: 341b.2d76.fd02, src mac: 6c29.d29d.36c3
ether hdr : vlan: 3012, ethertype: 0x8100
ipv4 hdr : dest ip: 172.16.10.11, src ip: 192.168.100.18
ipv4 hdr : packet len: 100, ttl: 254, protocol: 1 (ICMP)
icmp hdr : icmp type: 8, code: 0
The following example shows how to display the details of the dropped packets in detail. The detailed view includes information
about the source interface. This information is not present in the brief view:
Device# show platform software fed active drop packet-capture detailed
DropPackets packet capturing: disabled. Buffer wrapping: disabled
Total captured so far : 1 packet(s)
Capture capacity : 4096 packet(s)
Max. Meta header size : 88 byte(s)
Max. Packet data size : 128 byte(s)
------ DropPackets Packet Number: 1, Timestamp: 2024/07/11 13:25:48.157 ------
interface : phy: [if-id: 0x00000000], pal: [if-id: 0x00000000]
misc info : cause: 0 [Reserved ], sub-cause: 0, linktype: UNKNOWN [0]
CE hdr : dest mac: 4e41.5000.0111, src mac: 4e41.5000.0111, ethertype: 0x7106
meta hdr : Nxt. Hdr: 0x1, Fwd. Hdr: 0, SSP: 0xffff
meta hdr : DSP: 0x1d, SLP: 0x8002a, DLP: 0x2a
ether hdr : dest mac: 0900.2b00.0005, src mac: 6c29.d293.6f46
ether hdr : length: 1402
Metadata Hex-Dump (captured metadata length: 54 bytes) :
4E41500001114E41 5000011171060800 0C3500FFFF001D80 02A0002A0064000A
74B91E3B00751E3A F821100200400000 000000000000
Packet Data Hex-Dump (captured packet length: 128 bytes) :
09002B0000056C29 D2936F46057AFEFE 0383140100110100 0002010098004013
001E057725D30300 0000F00502000000 258101CC01040349 00008404C0A828B2
08FF000000000000 0000000000000000 0000000000000000 0000000000000000
0000000000000000 0000000000000000 0000000000000000 0000000000000000
Punt Header
Nxt. Hdr = 0x1 Ethernet Fwd. Hdr = 0 Ethernet
Punt Padding = 0 Next Hdr. Off. = 0
Source = 0xc Eg. Trap Code = 0x35 ETHERNET_SAME_INTERFACE
Flow Type = 0 SSP = 0xffff
DSP = 0x1d HundredGigE1/0/5 SLP = 0x8002a Port5lVlan100
DLP = 0x2a Padding = 0
Relay ID = 0x64 Time Stamp = 0xa74b91e3b0075
Receive Time = 0x1e3af821
The following example shows how to clear all traps:
Device# debug platform software fed active drop-capture clear-trap npu-traps all
or
Device# debug platform software fed active drop-capture clear-trap tm-traps all
Note
|
All TM traps need to be cleared after each use.
|