Adding standard filter-based monitors, Table 43 commands to add filter-based monitors, Adding custom filter-based monitors – HP StorageWorks 2.128 SAN Director Switch User Manual

Page 205: 43 commands to add filter-based monitors

Advertising
background image

Fabric OS 5.x administrator guide 205

Adding standard filter-based monitors

Table 43

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

The following number of offsets can be specified:

SAN Switch 2/8V, SAN Switch 2/16V, SAN Switch 2/32, Core Switch 2/64, and SAN Director

2/128 (Fabric OS 4.0.0 or later): Up to two different offsets per port (one offset when FMS

is enabled)

4/256 SAN Director (Fabric OS 5.0.1 or later): Up to 15 different offsets per port (14 offsets when

fmsmode is enabled)

SAN Switch 2/8-EL and SAN Switch 2/16 (Fabric OS 3.0.0 or later): Up to three different offsets per

port

Table 43

Commands to add filter-based monitors

Telnet command

Description

perfAddReadMonitor

Counts the number of SCSI read commands.

perfAddWriteMonitor

Counts the number of SCSI write commands.

perfAddRwMonitor

Counts the number of SCSI read and write commands.

perfAddScsiMonitor

Counts the number of SCSI traffic frames.

perfAddIpMonitor

Counts 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

Advertising