FROM THE SOLUTIONS CENTER : Configuring SNMP Threshold Alert Monitoring of Brocade Switches Describes how to enable and configure SNMP threshold alerts on Brocade B-Series and M-Series switches.
CONTENTS Overview...3 Configuring SNMP Threshold Alerts for B-Series Platforms...3 Setting the SNMP trap receiver and severity level...4 Setting the SNMP MIB capability...5 Setting Fabric Watch alert thresholds...7 Configuring SNMP Threshold Alerts for M-Series Platforms...9 Setting Threshold Alerts...10 Appendix A: Enabling and Configuring SNMP Threshold Alerts via CLI...12 Setting the SNMP trap receiver and severity level...12 SNMP community and trap recipient configuration...12 Setting the SNMP MIB capability...12 Setting Fabric Watch alert thresholds...13 Appendix B: Brocade SNMP MIB Dependencies and Advised Installation Order...20 Configuring SNMP Threshold Alert Monitoring of Brocade Switches 2 of 20
OVERVIEW Brocade switches and directors enable monitoring of specific incidents and trigger an SNMP alert based on a user-defined threshold, sending the alert to the SNMP trap receiver dedicated to monitoring the data center infrastructure, as shown in Figure 1. Figure 1. SNMP trap receiver connected to switches in the fabric Fabric Watch tracks a variety of fabric elements, events, and counters. Monitoring fabric-wide events, ports, transceivers, and environmental parameters enables early fault detection and isolation and performance measurement. When events exceed a threshold, an SNMP alert is send. Fabric Watch is easy to configure; administrators can select custom fabric elements and alert thresholds or they can choose preconfigured settings. In addition, it is easy to integrate Fabric Watch with popular enterprise systems management solutions. NOTE: In this paper, the term B-Series refers to Brocade devices in a fabric running Brocade Fabric Operating System (FOS); M-Series refers to Brocade (formerly McDATA) devices in a fabric running M- Enterprise Operating System (M-EOS). Configuring SNMP Threshold Alerts for B-Series Platforms These are the steps required to set up SNMP on B-Series (FOS) switches using the Brocade Web Tools. For instructions on how to set up SNMP using the Command-Line Interface (CLI), see the example in Appendix A. Start by pointing your Web browser to the IP address of device on which you want to configure threshold alerts, and launch Web Tools. Configuring SNMP Threshold Alert Monitoring of Brocade Switches 3 of 20
Setting the SNMP trap receiver and severity level 1. Click Switch Admin. 2. Click Show Advanced Mode. Configuring SNMP Threshold Alert Monitoring of Brocade Switches 4 of 20
3. On the SNMP tab, enter the IP address of the trap receiver, severity level, and click Apply. NOTE: The severity level must be Informational (4) in order to forward threshold alerts. Setting the SNMP MIB capability Currently, this can be done only from the CLI as follows: DCX:admin> snmpconfig --set mibcapability The SNMP Mib/Trap Capability has been set to support FE-MIB SW-MIB FICON-MIB HA-MIB FCIP-MIB ISCSI-MIB SW-TRAP swfcportscn sweventtrap swfabricwatchtrap swtrackchangestrap FICON-TRAP linkrniddeviceregistration linkrniddevicederegistration linklirrlisteneradded linklirrlistenerremoved linkrlirfailureincident Configuring SNMP Threshold Alert Monitoring of Brocade Switches 5 of 20
HA-TRAP frustatuschanged cpstatuschanged fruhistorytrap FA-MIB (yes, y, no, n): [no] FICON-MIB (yes, y, no, n): [yes] HA-MIB (yes, y, no, n): [yes] FCIP-MIB (yes, y, no, n): [yes] ISCSI-MIB (yes, y, no, n): [yes] SW-TRAP (yes, y, no, n): [yes] swfcportscn (yes, y, no, n): [yes] sweventtrap (yes, y, no, n): [yes] swfabricwatchtrap (yes, y, no, n): [yes] swtrackchangestrap (yes, y, no, n): [yes] SW-EXTTRAP (yes, y, no, n): [no] y FICON-TRAP (yes, y, no, n): [yes] linkrniddeviceregistration (yes, y, no, n): [yes] linkrniddevicederegistration (yes, y, no, n): [yes] linklirrlisteneradded (yes, y, no, n): [yes] linklirrlistenerremoved (yes, y, no, n): [yes] linkrlirfailureincident (yes, y, no, n): [yes] HA-TRAP (yes, y, no, n): [yes] frustatuschanged (yes, y, no, n): [yes] cpstatuschanged (yes, y, no, n): [yes] fruhistorytrap (yes, y, no, n): [yes] FCIP-TRAP (yes, y, no, n): [yes] linkuptrap (yes, y, no, n): [yes] linkdowntrap (yes, y, no, n): [yes] Configuring SNMP Threshold Alert Monitoring of Brocade Switches 6 of 20
Setting Fabric Watch alert thresholds In this example an alert threshold is set for Link Loss on any port-type. 1. Click Fabric Watch. 2. In the Fabric Watch window select Port in the tree structure and Link Loss from the dropdown menu. Configuring SNMP Threshold Alert Monitoring of Brocade Switches 7 of 20
3. On the Trait Configuration tab, set the threshold value(s). Then click the Custom Defined radio button and click Apply. 4. On the Alarm Configuration tab, select SNMP (and other destinations if desired) as the alert destination, click the Custom Defined radio button, and click Apply. This completes the Fabric Watch alert setup for Link Loss. Configuring SNMP Threshold Alert Monitoring of Brocade Switches 8 of 20
Configuring SNMP Threshold Alerts for M-Series Platforms These are the steps to set up SNMP on M-Series (M-EOS) switches. Start by launching the Element Manager for the switch from Brocade Enterprise Fabric Connectivity Manager (EFCM). 1. Launch the element manager for the M-Series switch to set the SNMP trap receivers. 2. Enter the IP address of the SNMP trap receiver and click OK. Configuring SNMP Threshold Alert Monitoring of Brocade Switches 9 of 20
Setting Threshold Alerts 1. Telnet to the switch Perf.ThresholdAlerts> counter Perf.ThresholdAlerts.Counter> Perf.ThresholdAlerts.Counter> addalert LinkFailures Perf.ThresholdAlerts.Counter> addalert SyncLoss Perf.ThresholdAlerts.Counter> addalert SignLoss Perf.ThresholdAlerts.Counter> addalert CRCerr Perf.ThresholdAlerts.Counter> setcounter LinkFailures 5 Perf.ThresholdAlerts.Counter> setcounter SyncLoss 6 Perf.ThresholdAlerts.Counter> setcounter SignLoss 7 Perf.ThresholdAlerts.Counter> setcounter CRCerr 10 Perf.ThresholdAlerts.Counter> addport LinkFailures all Perf.ThresholdAlerts.Counter> addport SyncLoss all Perf.ThresholdAlerts.Counter> addport SignLoss all Perf.ThresholdAlerts.Counter> addport CRCerr all Perf.ThresholdAlerts.Counter> setparams LinkFailures 1 5 Perf.ThresholdAlerts.Counter> setparams SyncLoss 1 5 Perf.ThresholdAlerts.Counter> setparams SignLoss 1 5 Perf.ThresholdAlerts.Counter> setparams CRCerr 1 5 Perf.ThresholdAlerts.Counter>.. Perf.ThresholdAlerts> show Name Type State --------------------------------------------------- ----------------- ------- LinkFailures Link Failures Disabled SyncLoss Sync Losses Disabled SignLoss Signal Losses Disabled CRCerr CRC Errors Disabled Perf.ThresholdAlerts.Counter> show LinkFailures Name: LinkFailures Ports: 0-63 Counter Statistic: Link Failures Increment: 1 Interval: 5 Alert State: Disabled Perf.ThresholdAlerts.Counter>.. Perf.ThresholdAlerts> setstate LinkFailures 1 Configuring SNMP Threshold Alert Monitoring of Brocade Switches 10 of 20
Perf.ThresholdAlerts.Counter> show LinkFailures Name: LinkFailures Ports: 0-63 Counter Statistic: Link Failures Increment: 1 Interval: 5 Alert State: Enabled Perf.ThresholdAlerts.Counter>.. Perf.ThresholdAlerts> setstate SyncLoss 1 Perf.ThresholdAlerts> setstate SignLoss 1 Perf.ThresholdAlerts> setstate CRCerr 1 Perf.ThresholdAlerts> show Name Type State --------------------------------------------------- ----------------- ------- LinkFailures Link Failures Enabled SyncLoss Sync Losses Enabled SignLoss Signal Losses Enabled CRCerr CRC Errors Enabled Configuring SNMP Threshold Alert Monitoring of Brocade Switches 11 of 20
APPENDIX A: ENABLING AND CONFIGURING SNMP THRESHOLD ALERTS VIA CLI Setting the SNMP trap receiver and severity level DCX:admin> snmpconfig --set snmpv1 SNMP community and trap recipient configuration Community (rw): [Secret C0de] Trap Recipient's IP address : [0.0.0.0] Community (rw): [OrigEquipMfr] Trap Recipient's IP address : [0.0.0.0] Community (rw): [private] Trap Recipient's IP address : [0.0.0.0] Community (ro): [public] Trap Recipient's IP address : [10.66.3.201] (IP Address of the SNMP Trap Receiver) Trap recipient Severity level : (0..5) [4] (Severity Level 4 = Informational) Trap recipient Port : (0..65535) [162] Community (ro): [common] Trap Recipient's IP address : [0.0.0.0] Community (ro): [FibreChannel] Trap Recipient's IP address : [0.0.0.0] NOTE: Severity level 4 is needed to receive Fabric Watch (SW_MIB) SNMP Ttaps. Setting the SNMP MIB capability DCX:admin> snmpconfig --set mibcapability The SNMP Mib/Trap Capability has been set to support FE-MIB SW-MIB FICON-MIB HA-MIB FCIP-MIB ISCSI-MIB SW-TRAP swfcportscn sweventtrap swfabricwatchtrap swtrackchangestrap FICON-TRAP linkrniddeviceregistration linkrniddevicederegistration linklirrlisteneradded linklirrlistenerremoved linkrlirfailureincident HA-TRAP frustatuschanged cpstatuschanged Configuring SNMP Threshold Alert Monitoring of Brocade Switches 12 of 20
fruhistorytrap FA-MIB (yes, y, no, n): [no] FICON-MIB (yes, y, no, n): [yes] HA-MIB (yes, y, no, n): [yes] FCIP-MIB (yes, y, no, n): [yes] ISCSI-MIB (yes, y, no, n): [yes] SW-TRAP (yes, y, no, n): [yes] swfcportscn (yes, y, no, n): [yes] sweventtrap (yes, y, no, n): [yes] swfabricwatchtrap (yes, y, no, n): [yes] swtrackchangestrap (yes, y, no, n): [yes] SW-EXTTRAP (yes, y, no, n): [no] y FICON-TRAP (yes, y, no, n): [yes] linkrniddeviceregistration (yes, y, no, n): [yes] linkrniddevicederegistration (yes, y, no, n): [yes] linklirrlisteneradded (yes, y, no, n): [yes] linklirrlistenerremoved (yes, y, no, n): [yes] linkrlirfailureincident (yes, y, no, n): [yes] HA-TRAP (yes, y, no, n): [yes] frustatuschanged (yes, y, no, n): [yes] cpstatuschanged (yes, y, no, n): [yes] fruhistorytrap (yes, y, no, n): [yes] FCIP-TRAP (yes, y, no, n): [yes] linkuptrap (yes, y, no, n): [yes] linkdowntrap (yes, y, no, n): [yes] Setting Fabric Watch alert thresholds Example setting threshold for Link Loss: DCX:admin> fwconfigure 1 : Environment class 2 : SFP class 3 : Port class 4 : Fabric class 5 : E-Port class 6 : F/FL Port (Optical) class 7 : Alpa Performance Monitor class 8 : EE Performance Monitor class 9 : Filter Performance Monitor class 10 : Security class 11 : Resource class 12 : Quit Select a class => : (1..12) [12] 3 1 : Link loss 2 : Sync loss 3 : Signal loss Configuring SNMP Threshold Alert Monitoring of Brocade Switches 13 of 20
4 : Protocol error 5 : Invalid words 6 : Invalid CRCS 7 : RXPerformance 8 : TXPerformance 9 : State Changes 10 : return to previous page Select an area => : (1..10) [10] 1 Index ThresholdName Port CurVal Status LastEvent LasteventTime LastVal LastState =============================================================================== 0 portlink000 1/0 0 Error(s)/min enabled inbetween Wed Apr 16 15:12:35 2008 1 Error(s)/min In_Range 1 portlink001 1/1 0 Error(s)/min enabled inbetween Wed Apr 9 19:15:24 2008 0 Error(s)/min In_Range (Truncated) 1 : refresh 2 : disable a threshold 3 : enable a threshold 4 : advanced configuration 5 : return to previous page Select choice => : (1..5) [5] 4 Index ThresholdName BehaviorType BehaviorInt 0 portlink000 Triggered 1 1 portlink001 Triggered 1 (Truncated) Threshold boundary level is set at : Default Unit Error(s) Error(s) Time base minute minute Low 0 0 High 5 5 BufSize 0 0 Threshold alarm level is set at : Default Errlog-1, SnmpTrap-2, PortLogLock-4 RapiTrap-8, EmailAlert-16 Valid alarm matrix is 31 Default Changed 0 0 Custom Configuring SNMP Threshold Alert Monitoring of Brocade Switches 14 of 20
Below 0 0 Above 0 0 InBetween 0 0 1 : change behavior type 11 : change threshold alarm level 2 : change behavior interval 12 : change changed alarm 3 : change threshold boundary level 13 : change below alarm 4 : change custom unit 14 : change above alarm 5 : change custom time base 15 : change inbetween alarm 6 : change custom low 16 : apply threshold alarm changes 7 : change custom high 17 : cancel threshold alarm changes 8 : change custom buffer 18 : return to previous page 9 : apply threshold boundary changes 10 : cancel threshold boundary changes Select choice => : (1..18) [18] 7 Enter high threshold => : (0..999999999) [5] 3 Index ThresholdName BehaviorType BehaviorInt 0 portlink000 Triggered 1 1 portlink001 Triggered 1 (Truncated) Threshold boundary level is set at : Default Unit Error(s) Error(s) Time base minute minute Low 0 0 High 5 5 BufSize 0 0 Threshold alarm level is set at : Default Errlog-1, SnmpTrap-2, PortLogLock-4 RapiTrap-8, EmailAlert-16 Valid alarm matrix is 31 Changed 0 0 Below 0 0 Above 0 0 InBetween 0 0 Configuring SNMP Threshold Alert Monitoring of Brocade Switches 15 of 20
1 : change behavior type 11 : change threshold alarm level 2 : change behavior interval 12 : change changed alarm 3 : change threshold boundary level 13 : change below alarm 4 : change custom unit 14 : change above alarm 5 : change custom time base 15 : change inbetween alarm 6 : change custom low 16 : apply threshold alarm changes 7 : change custom high 17 : cancel threshold alarm changes 8 : change custom buffer 18 : return to previous page 9 : apply threshold boundary changes 10 : cancel threshold boundary changes Select choice => : (1..18) [18] 9 Index ThresholdName BehaviorType BehaviorInt 0 portlink000 Triggered 1 1 portlink001 Triggered 1 (Truncated) Threshold boundary level is set at : Default Unit Error(s) Error(s) Time base minute minute Low 0 0 High 5 3 BufSize 0 0 Threshold alarm level is set at : Default Errlog-1, SnmpTrap-2, PortLogLock-4 RapiTrap-8, EmailAlert-16 Valid alarm matrix is 31 Changed 0 0 Below 0 0 Above 0 0 InBetween 0 0 1 : change behavior type 11 : change threshold alarm level 2 : change behavior interval 12 : change changed alarm 3 : change threshold boundary level 13 : change below alarm 4 : change custom unit 14 : change above alarm 5 : change custom time base 15 : change inbetween alarm 6 : change custom low 16 : apply threshold alarm changes 7 : change custom high 17 : cancel threshold alarm changes 8 : change custom buffer 18 : return to previous page Configuring SNMP Threshold Alert Monitoring of Brocade Switches 16 of 20
9 : apply threshold boundary changes 10 : cancel threshold boundary changes Select choice => : (1..18) [18] 11 1 : Default 2 : custom Enter alarm level type => : (1..2) [1] 2 Index ThresholdName BehaviorType BehaviorInt 0 portlink000 Triggered 1 1 portlink001 Triggered 1 (Truncated) Threshold boundary level is set at : Custom Unit Error(s) Error(s) Time base minute minute Low 0 0 High 5 3 BufSize 0 0 Threshold alarm level is set at : Custom Errlog-1, SnmpTrap-2, PortLogLock-4 RapiTrap-8, EmailAlert-16 Valid alarm matrix is 31 Changed 0 0 Below 0 0 Above 0 0 InBetween 0 0 1 : change behavior type 11 : change threshold alarm level 2 : change behavior interval 12 : change changed alarm 3 : change threshold boundary level 13 : change below alarm 4 : change custom unit 14 : change above alarm 5 : change custom time base 15 : change inbetween alarm 6 : change custom low 16 : apply threshold alarm changes 7 : change custom high 17 : cancel threshold alarm changes 8 : change custom buffer 18 : return to previous page 9 : apply threshold boundary changes 10 : cancel threshold boundary changes Select choice => : (1..18) [18] 14 Configuring SNMP Threshold Alert Monitoring of Brocade Switches 17 of 20
Index ThresholdName BehaviorType BehaviorInt 0 portlink000 Triggered 1 1 portlink001 Triggered 1 (Truncated) Unit Error(s) Error(s) Time base minute minute Low 0 0 High 5 3 BufSize 0 0 Threshold alarm level is set at : Custom Errlog-1, SnmpTrap-2, PortLogLock-4 RapiTrap-8, EmailAlert-16 Valid alarm matrix is 31 Changed 0 0 Below 0 0 Above 0 3 InBetween 0 0 1 : change behavior type 11 : change threshold alarm level 2 : change behavior interval 12 : change changed alarm 3 : change threshold boundary level 13 : change below alarm 4 : change custom unit 14 : change above alarm 5 : change custom time base 15 : change inbetween alarm 6 : change custom low 16 : apply threshold alarm changes 7 : change custom high 17 : cancel threshold alarm changes 8 : change custom buffer 18 : return to previous page 9 : apply threshold boundary changes 10 : cancel threshold boundary changes Select choice => : (1..18) [18] 16 Index ThresholdName BehaviorType BehaviorInt 0 portlink000 Triggered 1 1 portlink001 Triggered 1 (Truncated) Unit Error(s) Error(s) Time base minute minute Low 0 0 High 5 3 Configuring SNMP Threshold Alert Monitoring of Brocade Switches 18 of 20
BufSize 0 0 Threshold alarm level is set at : Custom Errlog-1, SnmpTrap-2, PortLogLock-4 RapiTrap-8, EmailAlert-16 Valid alarm matrix is 31 Changed 0 0 Below 0 0 Above 0 3 InBetween 0 0 1 : change behavior type 11 : change threshold alarm level 2 : change behavior interval 12 : change changed alarm 3 : change threshold boundary level 13 : change below alarm 4 : change custom unit 14 : change above alarm 5 : change custom time base 15 : change inbetween alarm 6 : change custom low 16 : apply threshold alarm changes 7 : change custom high 17 : cancel threshold alarm changes 8 : change custom buffer 18 : return to previous page 9 : apply threshold boundary changes 10 : cancel threshold boundary changes Select choice => : (1..18) [18] This completes the Fabric Watch alert setup for Link Loss. 2008 Brocade Communications Systems, Inc. All Rights Reserved. 06/08 GA-CG-102-00 Brocade, Fabric OS, File Lifecycle Manager, MyView, and StorageX are registered trademarks and the Brocade B-wing symbol, DCX, and SAN Health are trademarks of Brocade Communications Systems, Inc., in the United States and/or in other countries. All other brands, products, or service names are or may be trademarks or service marks of, and are used to identify, products or services of their respective owners. Notice: This document is for informational purposes only and does not set forth any warranty, expressed or implied, concerning any equipment, equipment feature, or service offered or to be offered by Brocade. Brocade reserves the right to make changes to this document at any time, without notice, and assumes no responsibility for its use. This informational document describes features that may not be currently available. Contact a Brocade sales office for information on feature and product availability. Export of technical data contained in this document may require an export license from the United States government. Configuring SNMP Threshold Alert Monitoring of Brocade Switches 19 of 20
APPENDIX B: BROCADE SNMP MIB DEPENDENCIES AND ADVISED INSTALLATION ORDER Configuring SNMP Threshold Alert Monitoring of Brocade Switches 20 of 20