HP StorageWorks Fabric OS 6.2 administrator guide (5697-0016, May 2009)

Fabric OS 6.2 administrator guide 413
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 Table 80.
If the switch does not have enough resources to create a given filter, other filters might have to be deleted
to free resources.
Adding custom filter-based monitors
1. Connect to the switch and log in as admin.
2. Enter the perfaddusermonitor command:
perfaddusermonitor [slotnumber/]portnumber "grouplist" [ alias ]
where:
The following example adds filter-based monitors:
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
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. Connect to the switch and log in as admin.
2. Enter the perfDelFilterMonitor command to delete a specific monitor.
If you do not specify which monitor number to delete, you are asked if you want to delete all entries.
The following example deletes monitor number 1 on slot 1, port 4 using the perfDelFilterMonitor
command:
switch:admin> perfdelfiltermonitor 1/4, 1
The specified filter-based monitor is deleted.
ISL performance monitoring
ISL monitoring is set up on E_Ports automatically in release 4.4.0 and later.
Table 80 Predefined values at offset 0
Value SOF Value SOF
0SOFf4SOFi2
1SOFc15SOFn2
2SOFi16SOFi3
3SOFn17SOFn3
slotnumber For bladed systems only, specifies the slot number of the port on which the monitor is
to be added. For all other switches, this operand is not required.
portnumber Specifies the port number
grouplist Specifies up to six sets of offset, mask, and value
alias An optional name for the monitor