beautypg.com

Debug platform packet – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 370

background image

Switching Commands

Software Reference for x310 Series Switches

15.8

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

debug platform packet

This command enables platform to CPU level packet debug functionality on the switch.

Use the no variant of this command to disable platform to CPU level packet debug. If the
result means both send and receive packet debug are disabled, then any active timeout
will be canceled.

Syntax

debug platform packet [recv] [send] [sflow] [timeout ]

[vlan <vlan-id>|all]

no debug platform packet [recv] [send]

Default

A 5 minute timeout is configured by default if no other timeout duration is specified.

Mode

Privileged Exec and Global Configuration

Usage

This command can be used to trace packets sent and received by the CPU. If a timeout is
not specified, then a default 5 minute timeout will be applied.

If a timeout of 0 is specified, packet debug will be generated until the no variant of this
command is used or another timeout value is specified. The timeout value applies to both
send and receive debug and is updated whenever the debug platform packet command
is used.

Examples

To enable both receive and send packet debug for the default timeout of 5 minutes, enter:

To enable receive packet debug for 10 seconds, enter:

To enable packet debug for sFlow packets only for the default timeout of 5 minutes, enter:

Parameter

Description

recv

Debug packets received.

send

Debug packets sent.

sflow

Debug sFlow packets.

timeout

Stop debug after a specified time.

<timeout>

<0-3600>

The timeout period, specified in seconds.

vlan

Limit debug to a single VLAN ID specified.

<vlan-id>

<1-4094>

The VLAN ID to limit the debug output on.

all

Debug all VLANs (default setting).

awplus#

debug platform packet

awplus#

debug platform packet recv timeout 10

awplus#

debug platform packet sflow