Table 25 predefined values at offset 0, 25 predefined values at offset 0 – HP Brocade 4Gb SAN Switch for HP BladeSystem p-Class User Manual
Page 151
Fabric OS 5.0.0 procedures user guide 151
The following number of offsets can be specified:
•
For the HP StorageWorks SAN Switch 2/8V, SAN Switch 2/16V, SAN Switch 2/32, Core Switch
2/64, and SAN Director 2/128 (Fabric OS v4.0.0 or later), up to two different offsets per port.
•
For the SAN Switch 2/8–EL and SAN Switch 2/16 (Fabric OS v3.0.0 or later), up to three different
offsets per port.
•
For the SAN Switch 4/32 (Fabric OS v4.4.0 or later), up to 15 different offsets per port (14 offsets
when FMS 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 (SOF). When the offset is set to 0, the values 0–7 that are checked against that offset
are predefined as shown in
.
If the switch does not have enough resources to create a given filter, you may have to delete other filters
to free resources.
To add filter-based monitors:
In the previous 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.
Table 25
Predefined values at offset 0
Value
SOF
0
SOFf
1
SOFc1
2
SOFi1
3
SOFn1
4
SOFi2
5
SOFn2
6
SOFi3
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