Adding standard filter-based monitors, Table 24 commands to add filter-based monitors, Adding custom filter-based monitors – HP Brocade 4Gb SAN Switch for HP BladeSystem p-Class User Manual
Page 150: 24 commands to add filter-based monitors
150 Administering advanced performance monitoring
Adding standard filter-based monitors
lists the commands for adding standard filter-based monitors to a port.
The following example adds filter-based monitors to slot 1, port 2 and displays the results:
Adding custom filter-based monitors
In addition to the standard filters—read, write, read/write, SCSI frame and IP frame—you can create
custom filters to gather statistics that fit your needs.
To define a custom filter, use the
perfaddusermonitor
command. With this command, you must
specify a series of offsets, masks, and values. For all transmitted frames, the switch performs these tasks:
•
Locates the byte found in the frame at the specified offset.
•
Applies the mask to the byte found in the frame.
•
Compares the value with the given values in the
perfaddusermonitor
command.
•
Increments the filter counter if a match is found.
Table 24
Commands to add filter-based monitors
Telnet command
Description
perfaddreadmonitor
Count the number of SCSI Read commands.
perfaddwritemonitor
Count the number of SCSI Write commands.
perfaddrwmonitor
Count the number of SCSI Read and Write commands.
perfaddscsimonitor
Count the number of SCSI traffic frames.
perfaddipmonitor
Count the number of IP traffic frames.
switch:admin> perfaddreadmonitor 1/2
SCSI Read filter monitor #0 added
switch:admin> perfaddwritemonitor 1/2
SCSI Write filter monitor #1 added
switch:admin> perfaddrwmonitor 1/2
SCSI Read/Write filter monitor #2 added
switch:admin> perfaddscsimonitor 1/2
SCSI traffic frame monitor #3 added
switch:admin> perfaddipmonitor 1/2
IP traffic frame monitor #4 added
switch:admin> perfmonitorshow --class FLT 1/2
There are 5 filter-based monitors defined on port 2.
KEY ALIAS OWNER_APP OWNER_IP_ADDR FRAME_COUNT
----------------------------------------------------------------
0 SCSI Read TELNET N/A 0x0000000000000000
1 SCSI Write TELNET N/A 0x0000000000000000
2 SCSI R/W
TELNET N/A 0x0000000000000000
3 SCSI Frame TELNET N/A 0x0000000000000000
4 IP Frame TELNET N/A 0x0000000000000000