Table 44 predefined values at offset 0, Adding filter-based monitors, Deleting filter-based monitors – HP StorageWorks 2.128 SAN Director Switch User Manual

Page 206: 44 predefined values at offset 0

Advertising
background image

206 Administering advanced performance monitoring

SAN Switch 4/32 (Fabric OS 4.4.0 or later): Up to 15 different offsets per port (14 offsets when FMS

is enabled)

4/8 SAN Switch, 4/16 SAN Switch, and Brocade 4Gb SAN Switch for HP p-Class BladeSystem

(Fabric OS 5.0.1): Up to 7 different offsets per port (6 offsets when fmsmode is enabled)

You can specify up to four values to compare against each offset. If more than one offset is required to

properly define a filter, the bytes found at each offset must match one of the given values for the filter to

increment its counter. If one or more of the given offsets does not match any of the given values, the

counter does not increment.
The value of the offset must be between 0 and 63, in decimal format. Byte 0 indicates the first byte of the

Start of Frame (SOF), byte 4 is the first byte of the frame header, and byte 28 is the first byte of the

payload. Thus, only the SOF, frame header, and first 36 bytes of payload can be selected as part of a

filter definition. Offset 0 is a special case, which can be used to monitor the first 4 bytes of the frame.

When the offset is set to 0, the values 0–7 that are checked against that offset are predefined, as shown

in

Table 44

.

If the switch does not have sufficient resources to create a given filter, other filters might have to be

deleted to free resources.

Adding filter-based monitors

In the preceding example, two filter-based monitors are added. The first monitor (#5) counts all FCP and

IP frames transmitted from domain 0x02 for slot 4, port 2. The FCP and IP protocols are selected by

monitoring offset 12, mask 0xff and matching values of 0x05 or 0x08. Domain 2 is selected by

monitoring offset 9, mask 0xff, and matching a value of 0x02. The monitor counter is incremented for all

outgoing frames from port 2 where byte 9 is 0x02 and byte 12 is 0x05 or 0x08.
The second monitor (#6) is for SOFi3 on slot 1, port 2.

Deleting filter-based monitors

1.

List the valid monitor numbers by entering the

perfShowFilterMonitor

command.

2.

Issue the

perfDelFilterMonitor

command to delete a specific monitor. If you do not specify

which monitor number to delete, you are asked whether you want to delete all entries.

Table 44

Predefined values at offset 0

Value

SOF

Value

SOF

0

SOFf

4

SOFi2

1

SOFc1

5

SOFn2

2

SOFi1

6

SOFi3

3

SOFn1

7

SOFn3

switch:admin> perfaddusermonitor 4/2, “12, 0xff, 0x05, 0x08; 9, 0xff, 0x02” “FCP/IP”

User monitor #5 added

switch:admin> perfaddusermonitor 1/2, “0, 0xff, 6"

User Monitor #6 added

Advertising