beautypg.com

Brocade Virtual ADX Server Load Balancing Guide (Supporting ADX v03.1.00) User Manual

Page 376

background image

360

Brocade Virtual ADX Server Load Balancing Guide

53-1003247-01

Using the debug filter command

B

Pattern matching filter settings

You can set up a filter to capture packets that contain a pattern of a specified length, starting from
a given offset from the beginning of the packet.

Example:

Virtual ADX(debug-filter-spec-1)#pattern 24 2 1023

Syntax: pattern offset length pattern-in-hex

The offset variable is the number of bytes from the start of the packet.

The length variable is the length of the pattern in bytes. You can specify between 1 - 32 bytes.

The pattern-in-hex variable is the pattern to match. The length of the pattern must be equal to the
number of bytes specified with the length variable.

Example:

Create a filter to look for every packet from source IP 192.168.8.1 going to destination IP
192.168.8.222 - destination port 80:

Virtual ADX(debug-filter-spec-1)#ip src 192.168.8.1

Virtual ADX(debug-filter-spec-1)#ip dest 192.168.8.222

Virtual ADX(debug-filter-spec-1)#tcp dest 80

To show the currently applied settings for the filter, use the show command:

Virtual ADX(debug-filter-spec-1)#show

Filter-ID: 1

MAC filters:

Src MAC : ANY

Dest MAC : ANY

MAC Type : ANY

IP filters:

Src IP : 192.168.8.1

Dest IP : 192.168.8.222

Protocol : ANY

TCP filters:

Src port: ANY

Dest port: 80

Flags : None

UDP filters:

Src port: ANY

Dest port: ANY

HTTP filters:

Url : ANY

Cookie : ANY

Pattern filters:

Pattern : ANY

tcp ack

TCP packets with the ACK flag on

tcp push

TCP packets with the PSN flag on

tcp urgent

TCP packets with the URG flag on

TABLE 39

UDP Filter Settings

CLI Command

Filter Type