CONFIGURATION GUIDE

Brocade Fabric OS FICON Configuration Guide, 8.1.0

Supporting Fabric OS 8.1.0

53-1004394-02 23 July 2018 Copyright © 2018 Brocade Communications Systems LLC. All Rights Reserved. Brocade and the stylized B logo are among the trademarks of Brocade Communications Systems LLC. Broadcom, the pulse logo, and Connecting everything are among the trademarks of Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. Brocade, a Broadcom Inc. Company, reserves the right to make changes without further notice to any products or data herein to improve reliability, function, or design. Information furnished by Brocade is believed to be accurate and reliable. However, Brocade does not assume any liability arising out of the application or use of this information, nor the application or use of any product or circuit described herein, neither does it convey any license under its patent rights nor the rights of others. The product described by this document may contain open source software covered by the GNU General Public License or other open source license agreements. To find out which open source software is included in Brocade products, view the licensing terms applicable to the open source software, and obtain a copy of the programming source code, please visit https://www.broadcom.com/support/fibre-channel-networking/tools/oscd.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 2 53-1004394-02 Contents

Preface...... 7 Document Conventions...... 7 Notes, Cautions, and Warnings...... 7 Text Formatting Conventions...... 7 Command Syntax Conventions...... 8 Brocade Resources...... 8 Contacting Brocade Technical Support...... 8 Brocade customers...... 8 Brocade OEM customers...... 9

About This Document...... 11 Supported hardware and software...... 11 Additional FICON resources...... 11 What's new in this document...... 11 Changes made for the initial release (53-1004394-01)...... 11 Changes made for 53-1004394-02...... 12

Introducing FICON...... 13 FICON overview...... 13 Fabric OS support for FICON...... 13 Latency guideline...... 14 FICON concepts...... 14 FICON configurations...... 17 Switched point-to-point...... 17 Cascaded FICON...... 17 Access control in FICON...... 26 Cascaded zoning...... 27 Error reporting...... 29 Secure access control...... 29 FICON commands...... 30 Link and FC addressing...... 32 Domain ID...... 33 Port area...... 33 ALPA...... 33

Administering FICON Fabrics...... 35 User security considerations...... 35 Meeting high-integrity fabric requirements...... 35 Enabling the insistent domain ID...... 36 Creating and activating the SCC policy...... 36 Enabling the fabric-wide consistency policy...... 37 Enabling High-Integrity Fabric mode...... 37 Using other security commands...... 38 Preparing a switch for FICON...... 38 Cascaded FICON and two-byte addressing considerations...... 39 Configuring switched point-to-point FICON...... 39 Configuring cascaded FICON...... 44 FCR and FICON cascading...... 45

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 3 FICON and FICON CUP in Virtual Fabrics...... 45 FICON Logical Switch feature...... 46 Addressing modes...... 46 Mode 1 (zero-based addressing)...... 47 FICON and blade support for addressing modes...... 47 Port swap limitations...... 47 Disabling and enabling ports - persistent states...... 47 Clearing the FICON management database...... 48 Automating CS_CTL mapping...... 48 FICON best practices...... 50 FICON and FEC-via-TTS...... 51 Latency guideline...... 52

Configuring FICON CUP...... 53 Control Unit Port overview...... 53 FICON CUP restrictions...... 54 CUP configuration recommendations...... 55 FICON CUP zoning and PDCM considerations...... 56 Port and switch naming standards for FMS mode...... 56 FICON CUP Fabric OS commands...... 56 Configuring FICON CUP...... 57 Disabling ports 0xFE and 0xFF...... 57 Configuring FICON CUP in Virtual Fabrics...... 58 Determining physical port assignment ...... 58 FMS mode and FICON CUP...... 58 Fabric OS command limitations and considerations...... 59 Displaying FMS mode...... 60 Enabling FMS mode...... 60 Disabling FMS mode...... 60 FMS mode and FICON 0xFE or 0xFF ports...... 60 Upgrade considerations...... 61 Port swap limitations...... 61 Mode register bit settings...... 61 FICON file access facility...... 62 Considerations for setting mode register bits...... 64 Setting the mode register bits...... 64 Setting the MIHPTO value...... 64 Persistently enabling and disabling ports for CUP...... 65

Administering FICON Extension Services...... 67 Platforms supporting FICON extension over IP...... 67 FICON emulation overview...... 67 IBM z/OS Global Mirror emulation...... 68 Tape emulation...... 70 Teradata emulation...... 72 FCIP configuration requirements for FICON extension...... 72 Configuration requirements for switches and directors...... 72 High-integrity fabric requirements for cascaded configurations...... 72 FICON emulation requirement for a determinate path...... 73 Configuring FICON emulation...... 73 Configuration examples...... 74

Brocade Fabric OS FICON Configuration Guide, 8.1.0 4 53-1004394-02 Displaying FICON emulation configuration values...... 74 Modifying FICON emulation...... 75 Displaying FICON emulation performance statistics...... 75 FICON emulation monitoring...... 75 Options for displaying statistics...... 77

Maintaining and Troubleshooting FICON...... 79 Firmware management in a FICON environment...... 79 Upgrade and downgrade considerations...... 79 Firmware download disruption...... 79 Non-disruptive firmware upload and download...... 80 Configuration restoration in a FICON environment...... 80 Traffic Isolation Zoning...... 81 Determining ports for the TI Zone...... 81 Enhanced TI Zoning...... 82 Monitoring and Alerting Policy Suite...... 88 Port fencing...... 88 Defining port fencing...... 88 Settings for FICON environments...... 89 FICON information...... 89 Link incidents...... 89 Registered listeners...... 90 Node identification data...... 90 FRU error reporting...... 90 Swapping port area IDs...... 92 Important notes...... 92 Blade swapping...... 92 Common FICON issues...... 93 Troubleshooting FICON...... 95 General information to gather for all cases...... 95 Switched point-to-point topology checklist...... 96 Cascaded topology checklist...... 96 Gathering additional information...... 97 Link information...... 97 CUP diagnostics...... 97 Troubleshooting FICON CUP...... 97 Troubleshooting NPIV...... 98

Platforms Supporting FICON...... 99 Introduction...... 99 Supported platforms with end-of-support announcements...... 99 Currently supported platforms...... 100 Supported Brocade blades...... 100

Basic Switch Configuration...... 103

Address Binding Examples...... 107 Sequential address binding...... 107 Example scripts for binding ports (Mode 1)...... 108 Unbinding multiple ports...... 112

Configuration Information Record...... 113

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 5 EBCDIC Code Page...... 115

Brocade Fabric OS FICON Configuration Guide, 8.1.0 6 53-1004394-02 Preface

• Document Conventions...... 7 • Brocade Resources...... 8 • Contacting Brocade Technical Support...... 8

Document Conventions The document conventions describe text formatting conventions, command syntax conventions, and important notice formats used in Brocade technical documentation.

Notes, Cautions, and Warnings Notes, cautions, and warning statements may be used in this document. They are listed in the order of increasing severity of potential hazards.

NOTE A Note provides a tip, guidance, or advice, emphasizes important information, or provides a reference to related information.

ATTENTION An Attention statement indicates a stronger note, for example, to alert you when traffic might be interrupted or the device might reboot.

CAUTION A Caution statement alerts you to situations that can be potentially hazardous to you or cause damage to hardware, firmware, software, or data.

DANGER A Danger statement indicates conditions or situations that can be potentially lethal or extremely hazardous to you. Safety labels are also attached directly to products to warn of these conditions or situations.

Text Formatting Conventions Text formatting conventions such as boldface, italic, or Courier font may be used to highlight specific words or phrases.

Format Description bold text Identifies command names. Identifies keywords and operands. Identifies the names of GUI elements. Identifies text to enter in the GUI. italic text Identifies emphasis. Identifies variables. Identifies document titles. Courier font Identifies CLI output. Identifies command syntax examples.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 7 Brocade Resources

Command Syntax Conventions Bold and italic text identify command syntax components. Delimiters and operators define groupings of parameters and their logical relationships.

Convention Description bold text Identifies command names, keywords, and command options. italic text Identifies a variable. value In products, a fixed value provided as input to a command option is printed in plain text, for example, --show WWN. [ ] Syntax components displayed within square brackets are optional. Default responses to system prompts are enclosed in square brackets. { x | y | z } A choice of required parameters is enclosed in curly brackets separated by vertical bars. You must select one of the options. In Fibre Channel products, square brackets may be used instead for this purpose. x | y A vertical bar separates mutually exclusive elements. < > Nonprinting characters, for example, passwords, are enclosed in angle brackets. ... Repeat the previous element, for example, member[member...]. \ Indicates a “soft” line break in command examples. If a backslash separates two lines of a command input, enter the entire command at the prompt without the backslash.

Brocade Resources Visit the Broadcom website and MyBrocade to locate related documentation for your product and additional Brocade resources. White papers, data sheets, and the most recent versions of Brocade software and hardware manuals are available at www.broadcom.com. Product documentation for all supported releases is available to registered users at MyBrocade. Log in to my.brocade.com, then click the Support tab, and select Document Library. You can locate documentation by product or by operating system. Release notes are bundled with software downloads on MyBrocade. Links to software downloads are available on the MyBrocade landing page.

Contacting Brocade Technical Support As a Brocade customer, you can contact Brocade Technical Support 24x7 online or by telephone. Brocade OEM customers should contact their OEM/solution provider.

Brocade customers For product support information and the latest information on contacting the Technical Assistance Center, go to http:// www2.brocade.com/en/support/contact-brocade-support.html .

Brocade Fabric OS FICON Configuration Guide, 8.1.0 8 53-1004394-02 Contacting Brocade Technical Support

If you have purchased Brocade product support directly from Brocade, use one of the following methods to contact the Brocade Technical Assistance Center 24x7.

Online Telephone Preferred method of contact for non-urgent issues: Required for Sev 1-Critical and Sev 2-High issues: • My Cases through MyBrocade • North America: 1-800-752-8061 (Toll-free) • Software downloads and licensing tools • International: 1-408-333-6061 (Not toll-free) • Knowledge Base • Toll-free numbers are available in many countries and are listed on the http://www2.brocade.com/en/support/contact-brocade- support.html.

Brocade OEM customers If you have purchased Brocade product support from a Brocade OEM/solution provider, contact your OEM/solution provider for all of your product support needs. • OEM/solution providers are trained and certified by Brocade to support Brocade® products. • Brocade provides backline support for issues that cannot be resolved by the OEM/solution provider. • Brocade Supplemental Support augments your existing OEM support contract, providing direct access to Brocade expertise. For more information, contact Brocade or your OEM. • For questions regarding service levels and response times, contact your OEM/solution provider.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 9 Brocade Fabric OS FICON Configuration Guide, 8.1.0 10 53-1004394-02 About This Document

• Supported hardware and software...... 11 • Additional FICON resources...... 11 • What's new in this document...... 11

Supported hardware and software Although many different software and hardware configurations are tested and supported by Brocade Communications Systems, Inc. for Fabric OS 8.1.0, documenting all possible configurations and scenarios is beyond the scope of this document. For a complete list of platforms supported by FICON and Fabric OS OS 8.1.0, refer to Introduction on page 99. In cases where procedures or parts of procedures do not apply to all Brocade hardware platforms, this guide identifies which platforms are supported.

Additional FICON resources Useful Brocade product resources are available as described in Brocade Resources on page 8. In addition, a dedicated community resource page for mainframe and FICON information is available at Mainframe & FICON Solutions.

What's new in this document

Changes made for the initial release (53-1004394-01) The following information was added or changed in this document, in addition to other changes made for accuracy and clarity: • In FICON concepts on page 14, added additional information about buffer credits. • In Cascaded FICON on page 17, added z14 to the mainframe list. • In Qualified FICON cascaded configurations on page 19, updated the information to match IBM qualifications for Fabric OS 8.1.0. • In Triangular topology on page 83, added a note clarifying multi-hop support. • In FICON hops on page 19, added information about hops of no concern and updated the multi-hop information to match IBM qualifications for Fabric OS 8.1.0. • In FICON commands on page 30, added information about the ficonCupSet UALERT_type command and the lscfg -ficon command. • In Configuring switched point-to-point FICON on page 39, added 32 Gbps port information. • In FICON and blade support for addressing modes on page 47, added Brocade X6 Director. • In FICON and FICON CUP in Virtual Fabrics on page 45, updated allowed Virtual Fabric logical switches allowed on Gen 6 platforms. The FICON Logical Switch feature is introduced. Mode 1 addressing is clarified as the supported mode. • In Mode 1 (zero-based addressing) on page 47, added Linux OS on IBM z Systems and updated the Note to include Brocade X6 Directors.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 11 What's new in this document

• In FICON CUP restrictions on page 54 and Port and switch naming standards for FMS mode on page 56, Fabric OS 8.1.0 switch and port naming requirements are updated. • FICON and FEC-via-TTS on page 51 is new information. • In Upgrade considerations on page 61, Fabric OS 8.1.0 for Gen 6 platforms updated and references to Fabric OS prior to version 7.0 are removed. • In Automating CS_CTL mapping on page 48, added information about buffer credit use with QoS enabled. • In Remote tape vaulting topology on page 86, references to System Data Mover (SDM) are removed. • In Monitoring and Alerting Policy Suite on page 88, added a recommendation not to use SDDQ in a FICON environment. • In Port fencing on page 88, a note about deprecation of OOP in IBM z/OS is added. • In Identifying ports on page 89, information about the tag field content was updated. • Link information on page 97 is a new section. • Supported platforms with end-of-support announcements on page 99 is updated. • Currently supported platforms on page 100 and Supported Brocade blades on page 100 are updated for Fabric OS 8.1.0. • In Basic Switch Configuration on page 103, iodset command information is updated. Throughout the document, references to printer emulation are removed. Printer emulation is no longer a supported feature.

Changes made for 53-1004394-02 The following changes were made for this release of book: • In Triangular topology on page 83, removed conflicting content regarding multi-hop paths certification for FICON configurations. Multi-hop paths are certified for FICON configurations beginning with Fabric OS 7.4.0.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 12 53-1004394-02 Introducing FICON

• FICON overview...... 13 • FICON concepts...... 14 • FICON configurations...... 17 • Access control in FICON...... 26 • FICON commands...... 30 • Link and FC addressing...... 32

FICON overview IBM Fibre Connection (FICON®) is an industry-standard, high-speed input/output (I/O) interface for mainframe connections to storage devices. This guide discusses support offered by Brocade Fabric OS in intermix mode operations, in which FICON and Fibre Channel technology work together. For specific information about intermix mode and other aspects of FICON, refer to the IBM Redbook FICON® Implementation Guide (SG24-6497-03) and IBM z System Connectivity Handbook (G24-5444-15).

NOTE In this guide, the term switch is used to refer to a Brocade switch, backbone, or director unless otherwise noted.

Fabric OS support for FICON The following Fabric OS standard features support FICON fabrics: • Blade swapping Allows you to swap a blade of the same type so that you can replace a field-replaceable unit (FRU) with minimal traffic disruption. This feature is available for both FICON and open system environments. Blade swapping resolves situations in which the hardware has failed and the channel configurations cannot be changed quickly. In addition, a blade swap minimizes and eliminates the need to make changes to the I/O sysgen in the hardware configuration definition (HCD). Blade swapping has minimal or no impact on other switch features. • Routing policies IBM z Systems FICON supports port-based and device-based routing (PBR and DBR). For details on these policies, refer to the "Routing Traffic" chapter in the Brocade Fabric OS Administration Guide. Check the IBM z Systems qualification letter for information about IBM z Systems FICON support for exchange-based routing (EBR). • FICON MIB module Addresses link incident data for FICON hosts and devices connected to a switch. The FICON MIB module supplements other Management Information Bases (MIBs) used to manage switches and should be used in conjunction with those other MIBs. • Insistent Domain ID (IDID) Disables the dynamic domain ID feature and allows the switch to use only a pre-set domain ID. All switches in a fabric must have a unique domain ID. An insistent domain ID is required with 2-byte addressing. IDID is the recommended best practice for single-byte addressing. • Link incident detection, registration, and reporting

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 13 FICON concepts

Provides administrative and diagnostic information. • Swap port area IDs (PIDs) of physical ports Redirects resources from a failed port to a healthy port without changing the mainframe hardware configuration definition (HCD) settings. This feature, also called "port swapping," is available for both FICON and open system environments. Swapping PIDs on ports resolves situations in which the hardware has failed and the channel configurations cannot be changed quickly. Port swapping has minimal or no impact on other switch features. • Switch connection control (SCC) policy Includes fabric security methods that prevent unauthorized switches from joining a fabric. An SCC policy configured in strict mode is required for cascaded FICON configurations and whenever 2-byte addressing is used. • Traffic Isolation (TI) zones and enhanced TI zones (EITZ) TI zones are used to direct traffic across links through a specified path. Enhanced TI zones allow you to have ports in more than one TI Zone and to program domain controller routes to destination domains for F-class traffic, ensuring fabric stability.

NOTE For more detail on these features and configuration procedures, refer to the Brocade Fabric OS Administration Guide.

Brocade management tools provide further support: • Brocade Network Advisor Brocade Network Advisor is an optional software program that can be used to manage a fabric that supports FICON and Fibre Channel Protocol (FCP) devices and traffic. Brocade Network Advisor is the recommended GUI management tool for FICON environments on B-series enterprise-class switches. For more information on Brocade Network Advisor, refer to the manual appropriate for your version requirements: – Brocade Network Advisor SAN + IP User Manual – Brocade Network Advisor SAN User Manual • Web Tools Web Tools is an embedded GUI-management tool that can be used to manage a Brocade switch or director that supports FICON and FCP devices and traffic. For more information on Web Tools, refer to the Brocade Web Tools Administration Guide.

Latency guideline The maximum supported distance for a FICON channel is 300 km (1.5 msec of delay). Synchronous remote data replication for DASD is generally limited to 100 km (0.5 msec of delay). Asynchronous remote data replication for direct-access storage devices (DASD) and remote tape reads/writes require that the Brocade Advanced Accelerator for FICON feature be used with FCIP. The Advanced Accelerator for FICON feature emulates control unit response to the channel to improve the performance over distances greater than locally attached distances.

FICON concepts The following figure shows how the traffic in a switched point-to-point configuration flows in a FICON environment. The logical path of the traffic is defined as frames moving from the channel to the switch to the control unit. FICON traffic moves from a logical partition (LPAR) and through the channel, through a Fibre Channel link to the switch through the control unit, and ends at the device. This is also called a channel path, which is a single interface between a central processor and one or more control units along which signals and data can be sent to perform I/O requests. The channel path uses the logical path to traverse the Fibre Channel fabric. The channel path is

Brocade Fabric OS FICON Configuration Guide, 8.1.0 14 53-1004394-02 FICON concepts

defined using an ID called the channel path ID (CHPID). This information is stored in the Input/Output Definition File (IODF) and may be dynamically configured. The IODF is typically built using the hardware configuration definition (HCD). The traffic on the channel path communicates using the channel command word (CCW) channel for Command Mode FICON and the transport control word (TCW) channel for z High Performance FICON (zHPF) channel programs.

FIGURE 1 FICON traffic

In a FICON environment, buffer credits are used at the Fibre Channel Protocol (FCP) level for flow control between optically adjacent ports, whereas information unit (IU) pacing is the flow control mechanism used by the channel. There are times when there are no more buffer credits to pass back to the other end of the link and a frame pacing delay occurs. The frame pacing delay is the number of intervals of 2.5 microseconds that a frame had to wait to be transmitted due to a lack of available buffer credits. Frame pacing delay information is reported via the z/OS Resource Measurement Facility (RMF), specifically in the FICON Director Activity Report (RMF 74-7). On the mainframe side, I/O is done on a 2K, or 2,048-byte, page boundary. Even though the maximum size of a FC frame is 2,112 bytes, the mainframe I/O uses 2,048 bytes. Also, when using IBM System z High Performance FICON (zHPF), the average frame size is seldom more than 1,800 bytes. FICON rarely creates full FC frames. The point is, do not assume that full data frames are always used. As a result, do not allocate too few buffer credits. FICON introduces the following concepts: • FICON Control Unit Port (CUP) The internal port in a switch that assumes a Fibre Channel (FC) address such that it is the FC domain ID (DID) used to direct FICON traffic to the FICON Management Server (FMS). • Hardware configuration definition (HCD)

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 15 FICON concepts

HCD is an IBM interactive interface application that allows you to define the hardware configuration for both the processor channel subsystem and the operating system running on the processor. • Information unit A unit of FICON data consisting of from one to four Fibre Channel frames. • Link Incident Record Registration (LIRR) The LIRR Extended Link Service (ELS) requests that the recipient add the requesting port to its list of ports that are to receive a Registered Link Incident Report (RLIR). • Node A node is an endpoint that contains information. It can be a computer (host), a device controller, or a peripheral device such as a DASD array or . A node has a unique 64-bit identifier known as the Node_Name. The Node_Name is typically used for management purposes. • Prohibit Dynamic Connectivity Mask (PDCM) and connectivity attributes PDCM controls whether communication between a pair of ports in the switch is prohibited. Connectivity attributes control whether the communication is blocked for a port. • Read Record Set (RRS) RRS is an IBM channel-initiated CCW command. The command is used in IBM z/OS Global Mirror configurations to read updates from a volume in an active mirroring session. • Registered Link Incident Report (RLIR) RLIR ELS provides a way for a node port to send an incident record to another node port. • Request Node Identification Data (RNID) RNID ELS acquires the associated node’s identification data, which provides configuration discovery and management information. • Resource Measurement Facility (RMF) RMF is the performance monitoring component of z/OS that gathers transaction data from the environment and generates performance reports. All Level II reports, which include port statistics, require the FICON Control Unit Port (CUP) and FICON Management Server (FMS), the FICON director included in the IOSysGen as a 2032 Control Unit, and the appropriate parmlib settings configured to enable the RMF 74-7 record generation and statistics collection. • Systems Operations (SysOps) SysOps provides the ability to monitor and control all subsystems in a sysplex from any system in the sysplex. This includes controlled startup, controlled shutdown, and automated recovery of software resources. • Sysplex In IBM mainframe computers, a systems complex, commonly called a sysplex, allows multiple processors to be joined into a single unit, sharing the same sysplex name and couple data sets. • IPL file The initial program load (IPL) file, located in nonvolatile storage, contains the current, active configuration settings for the FICON director. It functions to initialize data on the director during a Power-on Reset (POR) event. When the “Active=Saved” FICON CUP mode register bit setting is on, any active configuration in switch memory is automatically saved to the IPL file.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 16 53-1004394-02 FICON configurations

FICON configurations There are two types of FICON configurations that are supported using Brocade Fabric OS: switched point-to-point and cascaded topologies.

Switched point-to-point A single-switch configuration, called switched point-to-point, allows the channel to use single-byte addressing. The following illustration shows switched point-to-point between FC and FICON control unit (CU) devices.

FIGURE 2 Switched point-to-point FICON

Cascaded FICON Cascaded FICON refers to an implementation of FICON that uses one or more FICON channel paths in which the domain ID of the entry switch is different than the domain ID of the switch where the control unit (CU) is attached. Therefore, cascading requires a 2-byte link address. Anytime a 2-byte link address is defined on a channel, all link addresses associated with that channel must be 2-byte link addresses. Switches may be interconnected using the following links: • Traditional Inter-Switch Links (ISLs) • Inter-Chassis Links (ICLs) • Fibre Channel over Internet Protocol (FCIP) The processor interface is connected to one switch, known as the entry switch, and the storage interface is connected to the other switch. See the following figure. This configuration is supported for both DASD and tape, with multiple processors, DASD subsystems, and tape

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 17 FICON configurations

subsystems sharing the ISLs or ICLs between the switches and directors. Multiple ISLs between the switches and the directors are also supported. Cascading between switches and the directors is also supported.

FIGURE 3 Cascaded FICON

A cascaded configuration requires 2-byte addressing. 2-byte addressing requires a list of authorized switches. This authorization feature, called fabric binding, is available through the Secure Access Control List feature. The fabric binding policy allows a predefined list of switches (domains) to exist in the fabric, and it prevents other switches from joining the fabric. This type of configuration is described in User security considerations on page 35. The Switch Connection control policy must also be configured in strict mode. There are hardware and software requirements specific to 2-byte addressing: • Both FICON switches must be Brocade switches. • The mainframes must be zArchitecture machines: z114, z196, z800, 890, 900, 990, z9 BC, z9 EC, z10 BC, z10 EC, zEC12, zBC12, z13, z13s, and z14. Cascaded FICON requires a 64-bit architecture to support the 2-byte addressing scheme. Cascaded FICON is not supported on 9672 G5/G6 or earlier mainframes. • z/OS version 1.4 or later, or z/OS version 1.3 with required Program Temporary Fixes (PTFs) and Microcode Loads (MCLs) to support 2-byte link addressing (DRV3g and MCL [J11206] or later), is required. • Switch configuration requirements: – Make sure that E_D_TOV is the same on all switches in the fabric (typically, this is not changed from the default). – Make sure that R_A_TOV is the same on all switches in the fabric (typically, this is not changed from the default).

Brocade Fabric OS FICON Configuration Guide, 8.1.0 18 53-1004394-02 FICON configurations

– Configure insistent Domain ID (IDID). – Configure fabric binding (strict SCC policy).

FICON hops With the release of Fabric OS 8.1.0c, Brocade and IBM qualified FICON multi-hop configurations. Initial multi-hop configurations are limited to three hops with specific configurations. For details on FICON multi-hop, refer to the IBM support website and look for the white paper WP102704, “FICON Multihop Requirements and Configurations.” There are configurations that appear to create multi-hop paths, but they are certified by IBM to be “hops of no concern,” as follows: • In-line inter-chassis links (ICLs) between two or three Gen 5 or Gen 6 directors • Inter-switch links (ISLs) from a director to a Brocade extension switch, as long as the switch is only providing extension services and not doing any source-target FCP or FICON switching

Qualified FICON cascaded configurations Not all fibre channel fabrics are qualified for FICON. Cascaded FICON configurations are limited to well-controlled paths. The resulting fabric scenario after ISL failures must not result in an unsupported configuration. When physical cabling is not practical to enforce these configurations, zoning or Traffic Isolation zoning (TI zoning) with failover disabled may be used to ensure that unsupported fabrics cannot be formed. Note that these restrictions apply to logical switches and not the chassis.

The following figures show two cascaded configurations. These configurations require Channel A to be configured for 2-byte addressing and require IDID and fabric binding. It is recommended that there be only two domains in a path from a FICON channel interface to a FICON control unit interface. There are exceptions to the two-domain rule in extended fabric configurations. Refer to Extended fabric configurations on page 20 for examples.

FIGURE 4 Cascaded configuration: two switches

The following figure illustrates multiple switches cascaded off of switch 21. As of Fabric OS 8.1.0b, up to three hops are supported from from channel to control unit.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 19 FICON configurations

FIGURE 5 Cascaded configuration: core-edge architecture

Extended fabric configurations Switches in cascaded configurations may be connected through interchassis links (ICLs), interswitch links (ISLs), and FCIP. Connection using FCIP is through Fibre Channel extension devices, such as Brocade 7840 switches, SX6 blades, and FX8-24 blades. Following are example configurations. For more information on long-distance and extended fabrics, refer to the Brocade Fabric OS Administration Guide. For more information on extension products, including FCIP and IP Extension, refer to the Brocade Fabric OS Extension Configuration Guide. The following figure illustrates a multi-hop ICL triangle configuration that uses ICLs. Note that three switches are connected through ICLs only.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 20 53-1004394-02 FICON configurations

FIGURE 6 Multi-hop ICL triangle

The following figure illustrates a multi-hop configuration that uses ICLs and ISLs. This configuration is supported with or without switches 4 or 1. All switches must be either Gen 5 switches or Gen 6 switches. You cannot mix Gen 5 and Gen 6 switches on ICL connections.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 21 FICON configurations

FIGURE 7 Multi-hop configuration with ICLs and ISLs

The following figure illustrates a multi-hop configuration that uses ICLs and FCIP. The two 7840 switches are for ISL extension only using FCIP. Channel or control unit connections are not permitted. These switches may be replaced with a switch director with either SX6 or FX8-24 blades installed. This configuration can be supported with or without switches 4 or 1. All switches must be Gen 5 or Gen 6. You cannot mix Gen 5 and Gen 6 switches with ICLs.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 22 53-1004394-02 FICON configurations

FIGURE 8 Multi-hop with ICLs and FCIP

The following figure illustrates a configuration that uses FCIP between 7840 switches that are used as routers only, for ISL extension. In this configuration topology, direct FICON channel or control unit connections into the 7840 FC ports are not supported. The 7840 switches may be replaced with FX8-24 or SX6 blades installed in directors.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 23 FICON configurations

FIGURE 9 FCIP with 7840 switches as routers only

The following figure illustrates a configuration that uses cascaded FCIP with four 7840 switches. The 7840 switches at site 1 are used for ISL extension only. Channel or control unit connections are not permitted. The 7840 switches at site 2 are only for network, channel, and control unit connections. The 7840 switches on either site may be replaced with the FX8-24 or SX6 blades installed in directors.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 24 53-1004394-02 FICON configurations

FIGURE 10 Cascaded configuration using FCIP and 7840 switches

The following figure illustrates a cascaded configuration that uses FCIP and 7840 switches as edge switches. At site 1, the 7840 switches are used for ISL extension only. Channel or control unit connections are not permitted. At site 2, only channel and control unit connections are permitted on the 7840 switches. The 7840 switches at either site may be replaced with the FX8-24 or SX6 blades installed in directors.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 25 Access control in FICON

FIGURE 11 Cascaded configuration using FCIP and 7840 edge switches

Access control in FICON Zoning is used to control access in a FICON environment. A zone consists of a group of ports or World Wide Names (WWNs). Connectivity is permitted only between connections to the switch that are in the same zone. There are three types of zoning: WWN, port, and domain index zoning. A zone configuration includes at least one zone. In open systems environments and in more complex FICON deployments, the zone configuration contains multiple zones. Although domain index zoning is supported, WWN zoning for Quality of Service (QoS) is recommended in environments where N_Port ID Virtualization (NPIV) is deployed. For more information on how to implement QoS domain index zoning in your fabric, refer to the “QoS” section of the Brocade Fabric OS Administration Guide for details.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 26 53-1004394-02 Access control in FICON

When zoning changes occur, Registered State Change Notification (RSCN) messages are sent throughout the zone. RSCNs are part of the low-level Fibre Channel Protocol that alerts channels and devices to changes in the fabric. As a best practice, Brocade recommends one zone for all FICON connectivity.

NOTE Session-based zoning enforcement is not recommended on a FICON switch. For more information on session-based zoning enforcement, refer to the Brocade Fabric OS Administration Guide.

Cascaded zoning The figure below illustrates multiple sites sharing the same disaster-recovery site. Each switch or Director at a remote site, labeled Director 1 and Director 3, can pass traffic to Director 2, but no traffic is permitted between Zone A and Zone B.

FIGURE 12 Simple cascaded zoning

The figure below illustrates the multiple zoning concepts that can be used to restrict traffic. Any host channel at the backup site (connected to Director 11 or Director 12) can connect to the backup tape contained within the same zone. Notice that no more than a single hop is ever allowed and only Channel Path Identifiers (CHPIDs) 79 and 7A on the primary site can connect to the backup tape. Furthermore, CHPIDs 79 and 7A can connect only to the backup tape at the backup site.

NOTE Zoning does not replace the need to set up the connectivity from the host to storage control units in the HCD or Input/Output Configuration Program (IOCP). For more information on zoning, refer to the Brocade Fabric OS Administration Guide.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 27 Access control in FICON

FIGURE 13 Complex cascaded zoning

Zone A (Light Blue): Any CHPID connected to Director 1, except CHPID 79, can get to any control unit connected to Director 1. The zone includes all ports in Director 1 except ports 4, 5, and 6. Zone B (Orange): Any CHPID connected to Director 2, except CHPID 7A, can get to any control unit connected to Director 2. The zone includes all ports in Director 2 except ports 4, 5, and 6.

Zone C (Green): Any CHPID connected to Director 11 can get to any control unit connected to Director 11. The zone includes all ports in Director 11 except ports 5 and 6. Adding ports 5 and 6 to the zone, so that all ports in the switch or Director are in the same zone, would not affect permitted connectivity and may be a more practical alternative. Zone D (Yellow): Any CHPID connected to Director 12 can get to any control unit connected to Director 12. The zone includes all ports in Director 12 except ports 5 and 6, which are used for ISLs. Zone E (Red): CHPID 79 can talk only to the remote tape connected to ports 7 and 8 on Director 11. The zone includes port 4 of Director 1 and ports 7 and 8 of Director 11. Either ISL can be used.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 28 53-1004394-02 Access control in FICON

Zone F (Dark Blue): CHPID 7A can talk only to the remote tape connected to ports 7 and 8 on Director 12. The zone includes port 4 of Director 2 and ports 7 and 8 of Director 12. Either ISL can be used.

Error reporting Non-implicit link incidents (such as Fabric OS recognized or bit error rate threshold exceeded) and implicit link incidents (such as an FRU failure) are reported to registered listeners on the local switch. The RMF 74-7 record (FICON Director Activity Report, which is the same RMF record containing the average frame pacing delay information) reports port errors, which in turn are also reported back to the mainframe host management consoles.

Secure access control Binding is a method used to prevent devices from attaching to the switch or director. Secure Access Control Lists (ACLs) provide the following fabric, switch, and port binding features: • Fabric binding is a security method for restricting switches within a multiple-switch fabric. Brocade recommends using fabric binding for cascaded FICON. SCC ACLs with strict fabric-wide consistency are required for FICON fabric binding. • Switch binding is a security method for restricting devices that connect to a particular switch or director. If the device is another switch, this is handled by the SCC policy. If the device is a host or storage device, the device connection control (DCC) policy binds those devices to a particular switch. Policies range from completely restrictive to reasonably flexible, based upon customer needs. SCC ACLs with strict fabric-wide consistency are required for FICON switch binding. • Port binding is a security method for restricting host or storage devices that connect to particular switch ports. The DCC policy also binds device ports to switch ports. Policies range from completely restrictive to reasonably flexible, based on customer needs. The figure below demonstrates the three types of binding that you can use depending on the security requirements of your fabric.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 29 FICON commands

FIGURE 14 Types of binding for access control

FICON commands

NOTE The Fabric OS CLI supports only a subset of the Brocade management features for FICON fabrics. The full set of FICON CUP administrative procedures is available using the Brocade Network Advisor and Web Tools software features. You can also use an SNMP agent and the FICON Management Information Base (MIB).

Brocade Fabric OS FICON Configuration Guide, 8.1.0 30 53-1004394-02 FICON commands

The table below summarizes the Fabric OS CLI commands that can be used for managing FICON fabrics. For detailed information on these commands, refer to the Brocade Fabric OS Command Reference.

TABLE 1 Fabric OS commands related to FICON Command Description Standard Fabric OS commands bladeSwap Swaps the area numbers for matching port pairs of two blades. configure Changes a variety of switch configuration settings, including setting the domain ID and the insistent mode. configUpload Backs up the current Fabric OS feature and switch configuration, including FMS or FICON-specific configuration such as the IPL file, active configuration, mode register, and host data. firmwareShow Displays the current version of the firmware. licenseAdd Adds a license to the switch. The license key is case-sensitive and must be entered exactly. licenseRemove Removes a license from the switch. Note that FMS mode must be disabled before removing the FICON license. licenseShow Displays current license keys, along with a list of licensed products enabled by these keys. licenseSlotCfg Enables and displays slot-based licenses for a switch chassis. Note that for a switch without blades, such as the Brocade 7840 Extension Switch, slot 0 is used as the slot-based license target. For blades, slot numbers are based on the switch chassis numbering scheme. A license key with the specified capacity must be installed with the licenseAdd command before you can enable a feature on a specified slot with this command. portAddress Binds the 16-bit address to the lower two bytes of a port 24-bit Fibre Channel address. Also unbinds the currently bound address for the specified port. portSwap Swaps ports. Note that the portswap --restore command restores swapped ports to an unswapped state. portSwapDisable Disables the portSwap feature. The portSwap command cannot be used after this feature is disabled. The disabled state is persistent across reboots and power cycles. Enabling or disabling the portSwap feature does not affect previously performed portSwap operations. portSwapEnable Enables the portSwap feature. portSwapShow Displays information about swapped ports. supportShowCfgEnable ficon Turns on logging of FICON information on the switch. Commands specific to FICON lscfg --create FID -ficon Creates a new logical switch for FICON lscfg --change FID -ficon Changes a logical switch to a FICON logical switch. ficonClear RNID Removes all outdated RNID records from the local RNID database. ficonCfg --set LIRR port Sets the current LIRR device port number persistently. ficonCfg --reset LIRR port Clears the currently configured LIRR port number. ficonCupSet fmsmode enable | disable | reset Enables, disables, or resets FICON Management Server (FMS) mode.

CAUTION Use the ficonCupSet fmsmode reset option only under direction from technical support personnel. Indiscriminate use can disrupt CCW processing and create errors at the host.

ficonCupSet modereg bitname 0 | 1 Sets FICON-CUP mode register bits.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 31 Link and FC addressing

TABLE 1 Fabric OS commands related to FICON (continued) Command Description ficonCupSet MIHPTO seconds Sets missing interrupt handler primary timeout (MIHPTO) values. ficonCupSet CRP PID CHID Sets the current reporting path (CRP). ficonCupSet UALERT_type enable | disable Sets the specified unsolicited alert types and displays the status of the unsolicited alerts. Allowed types are as follows: • UALERT_HSC • UALERT_FRU • UALERT_INVATT • UALERT_ALL ficonCupShow UALERT_MODE Displays the current settings of which types of UALERT are enabled or disabled. ficonCupShow DD_LOG Displays the log information associated with the last diagnostic command processed by the CUP. ficonCupShow diag_info Displays the diagnostic interval setting and related statistic sampling information for diagnostic information collected by the CUP. ficonCupShow fmsmode Displays the current FMS mode setting. ficonCupShow hlthchk_log Displays health check logs for the logical switch. ficonCupShow modereg bitname Displays FICON-CUP mode register bits. ficonCupShow MIHPTO Displays MIHPTO values. ficonCupShow LP Displays the CUP logical path and error-reporting path information. ficonHelp Displays a list of FICON support commands. ficonShow lirr fabric Displays registered listeners for link incidents for the local switch or for the fabric, if specified. ficonShow rlir fabric Although all FICON channels register as “conditional” recipients of registered link incident reports (RLIRs) and are added to the switch LIRR database, only one channel per switch is selected to forward reports to the host. The command output displays all channels which have registered and indicates which node on each switch is selected to generate reports to the host. ficonShow rnid fabric Displays node identification data for all devices registered with the local switch or for all devices registered with all switches defined in the fabric, if specified. ficonShow rnid port Displays node identification data for a specified port. ficonShow rnid table Displays the local node identification database in tabular format. ficonShow switchrnid fabric Displays node identification data for the local switch or for the fabric, if specified.

For limitations and considerations for using Fabric OS commands with FMS mode enabled, refer to Fabric OS command limitations and considerations on page 59.

Link and FC addressing To understand the addressing mode requirements and restrictions for FICON, it is important to understand the relationship between the link address and the FC address. Understanding this relationship is also valuable for troubleshooting paths. The following figure represents components of link and FC addresses that are explained in this section.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 32 53-1004394-02 Link and FC addressing

FIGURE 15 Link and FC address components

Domain ID Although you enter the domain ID in decimal format when configuring a switch, it is represented in hexadecimal format in the FC address. For single-byte addressing, the domain area returned from the switch where the channel logs in is used for the FC address. Therefore, the channel and control unit must be in the same logical switch. With 2-byte link addressing, the most significant byte of the link address is used for the domain area of the FC address. Once 2-byte link addressing is defined for a channel, all link addressing for that channel must use 2-byte link addressing.

Port area The port area address is the single-byte link address or the least significant byte of a 2-byte link address. The link address is entered in the HCD in hexadecimal format and is represented in hexadecimal in the FC address.

ALPA The Arbitrated Loop Physical Address (ALPA) was originally used in fibre channel for loop devices. Currently, the ALPA is used for N_Port ID Virtualization (NPIV), which allows multiple WWNs to log in to the same switch port. The ALPA determines the logical entity to which frames belong. This is how virtual servers using Linux on IBM z Systems or z/VM can share the same channel. Because Brocade DCX 8510-8 and Brocade X6 directors can have up to 512 ports, the upper two bits of the ALPA are used in certain addressing modes. FICON does not use the ALPA byte. However, the ALPA is a required byte in the FC address. The channel completes the FC address for a control unit link address by acquiring the ALPA that the switch returned to the channel when the channel logged in. This is why the ALPA must be the same for both the channel port and the control unit port. This is also the reason why 10-bit addressing mode cannot be used for FICON (refer to Addressing modes on page 46).

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 33 Brocade Fabric OS FICON Configuration Guide, 8.1.0 34 53-1004394-02 Administering FICON Fabrics

• User security considerations...... 35 • Meeting high-integrity fabric requirements...... 35 • Preparing a switch for FICON...... 38 • Configuring switched point-to-point FICON...... 39 • Configuring cascaded FICON...... 44 • FCR and FICON cascading...... 45 • FICON and FICON CUP in Virtual Fabrics...... 45 • Addressing modes...... 46 • Disabling and enabling ports - persistent states...... 47 • Clearing the FICON management database...... 48 • Automating CS_CTL mapping...... 48 • FICON best practices...... 50 • Latency guideline...... 52

User security considerations To administer FICON, you must have one of the following roles associated with your login name on the switch: • Admin • Operator • SwitchAdmin • FabricAdmin The User and BasicSwitchAdmin roles are view-only. The ZoneAdmin and SecurityAdmin roles have no access. In an Admin Domain-aware fabric, if you use the FICON commands (ficonShow, ficonClear, ficonCupShow, and ficonCupSet) for any Admin Domain other than AD0 and AD255, the current switch must be a member of that Admin Domain. The output is not filtered based on the Admin Domain. In Virtual Fabrics, these commands apply to the current logical or specified switch only.

Meeting high-integrity fabric requirements In a cascaded switch configuration, FICON channels use an Extended Link Service Query Security Attributes (ELS QSA) function to determine whether they are connected to a high-integrity fabric. Each switch in a high-integrity fabric must have the following attributes configured: • An insistent domain ID (IDID) • A valid SCC policy, configured and activated • A fabric-wide consistency policy greater than or equal to switch connection control - strict mode (SCC:S)

NOTE You enable the fabric-wide consistency policy on the fabric once the switch joins the fabric.

NOTE If FMS mode is enabled before upgrading from any earlier release to v7.3.0 or later, including v8.1.0 on supported platforms, the IDID, SCC_Policy, and SCC:S are validated. If any of the validations fail, the firmware upgrade will fail. When validation is successful, high-integrity fabric (HIF) mode will automatically enable when the firmware installs.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 35 Meeting high-integrity fabric requirements

If a FICON channel tries to connect to a fabric switch without these attributes configured, the channel segments from the fabric. With HIF mode not configured, new channel bring-up is not possible in v7.3.0 or later firmware, including v8.1.0. The absence of HIF mode configuration will fail all the security attributes in QSA even though they are actually present. Therefore, you must perform HIF mode configuration when upgrading from v7.3.0 or later firmware. Once these attributes are configured, you must enable the switch in HIF mode using the Fabric OS configure command. This verifies that the required features are set and locks the configuration to ensure connection with the FICON channel. Once the HIF mode is set, you cannot change the IDID, fabric-wide consistency policy, and SCC policy without disabling HIF mode. Following are considerations for using HIF mode: • Once at 7.3.0 or later firmware, HIF mode must be enabled before you can enable FMS mode. • Before a Fabric OS downgrade, you must disable HIF mode. Note that this operation is not recommended for FICON and should be used only when downgrading firmware. You will receive a warning to this effect if FMS mode is enabled. If HIF is disabled, any new channel initialization will fail as the Query Security Attribute (QSA) reply from the switch to the channel will fail. The existing channel will continue to operate. • Before a Fabric OS firmware upgrade, be sure that the switch has appropriate IDID, fabric-wide consistency policy, SCC policy settings enabled. • FICON users should verify that HIF is enabled after the upgrade to v7.3.0 or later. The following instructions are provided in this section to configure a switch as part of a high-integrity fabric: • Enabling the insistent domain ID on page 36 • Creating and activating the SCC policy on page 36 • Enabling the fabric-wide consistency policy on page 37 • Enabling High-Integrity Fabric mode on page 37

Enabling the insistent domain ID To enable the insistent domain ID, complete the following steps for each switch in the fabric. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter the configure command and step through the interactive prompts. a) At the "Fabric parameters" prompt, type y. b) At the "Insistent Domain ID Mode" prompt, type y.

Creating and activating the SCC policy Creating a switch connection control (SCC) policy defines the switches allowed in the fabric. To configure and activate an SCC policy, perform the following steps. 1. Connect to the switch and log in.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 36 53-1004394-02 Meeting high-integrity fabric requirements

2. Perform one of the following actions: • Enter the secpolicycreate command to add all switches in the fabric, if they are connected.

secpolicycreate "SCC_POLICY","*"

• Enter the secpolicyadd command to add one or more members to an existing policy. The following command is an example of adding a member using device WWNs.

secpolicyadd "SCC_POLICY","wwn1;wwn2"

3. Enter the secpolicyactivate command to activate the currently defined SCC policy. This activates the policy set on the local switch or all switches in the fabric, depending on the configured fabric-wide consistency policy.

Enabling the fabric-wide consistency policy Enable the fabric-wide consistency policy after all switches have joined the merged fabric. If there are fabric-wide data distribution (FDD) conflicts on any of the ISLs, disable the fabric-wide consistency policy on each switch in the fabric. Once the fabric has merged successfully (use fabricShow to verify), enter the following command. fddcfg --fabwideset "SCC:S"

When enabling the fabric-wide security policy, SCC:S enforces strict mode, which is required for FICON.

Enabling High-Integrity Fabric mode Setting High-Integrity Fabric (HIF) mode on a switch verifies that the switch meets high-integrity fabric requirements through the channel's Extended Link Service Query Security Attributes (ELS QSA) function. For a list of high-integrity fabric requirements for switches, refer to Meeting high-integrity fabric requirements on page 35. Setting HIF mode locks the IDID, fabric-wide consistency policy, and SCC policy settings to ensure that the fabric is of high integrity so that it can connect with the FICON channel. You cannot change these settings without disabling HIF mode.

NOTE HIF mode must be enabled to enable FMS mode.

To enable HIF mode, perform the following steps. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter the configure command and step through the interactive prompts. a) At the "Fabric parameters" prompt, type y. b) At the "High Integrity Fabric Mode" prompt, type y. If HIF configuration requirements have not been met, an error message describes what you must configure for the command to succeed. For example, the following message states that an IDID, SCC policy, or fabric-wide consistency policy has not been configured for the switch. Perform additional configuration if required, and then enable HIF mode.

Error: Unable to set HIF Mode. No valid IDID settings, SCC policy and/or Fabric wide(SCC:S) configuration

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 37 Preparing a switch for FICON

Using other security commands You may find the following security-related commands useful.

Disabling the fabric-wide consistency policy To disable the fabric-wide consistency policy, enter the fddcfg --fabwideset command.

Displaying the fabric-wide consistency policy To display fabric-wide consistency policy information, enter the fddcfg --showall command.

Displaying the current security policy To display the current security policy, enter the secpolicyshow command.

Deleting the SCC_POLICY Enter the secpolicydelete "SCC_POLICY" command if you get messages that the E_Port is in a security violation state.

Recovering the E_Port Enter the following commands for each switch if the E_Port is down:

secpolicyactivate portenable n

NOTE For more detailed information on commands and command output referenced in this section, refer to the Brocade Fabric OS Command Reference.

Preparing a switch for FICON Use the following steps to verify and prepare a switch for use in a switched point-to-point FICON environment. A single-switch configuration does not require insistent domain IDs (IDIDs) or fabric binding, provided that connected channels are configured for single- byte addressing. However, you should configure an IDID to ensure that domain IDs are maintained. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Verify the management IP addresses have been set up. 3. Verify the switches can be seen by your management tool. 4. Verify the switches have the correct version of Fabric OS. 5. Add feature keys, if applicable. 6. Enter the configUpload command to save a baseline of the switch configuration.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 38 53-1004394-02 Configuring switched point-to-point FICON

Cascaded FICON and two-byte addressing considerations The following are considerations when installing a switch in a FICON environment where two-byte addressing is used. Two-byte addressing is always used in cascaded environments but may be used in single-switch fabrics as well. Making changes to your switch or director may require scheduled downtime. • All fabric operating parameters, such as timeout values, must be the same. If you have not made any changes outside the scope of this document, there is nothing additional to consider regarding these parameters. • The domain IDs of all switches must be unique and insistent. • Although not required, it will be easier to configure the security policies if the zoning matches. Ensuring proper zoning configuration, ISL connections, and that switches and directors have merged into a fabric will also make the process of setting the security attributes much easier.

Configuring switched point-to-point FICON This section provides detailed steps and commands to configure a switch for point-to-point FICON operation. The following steps assume that you have used your hardware reference manual to perform the initial setup of the switch and have performed all the steps from Preparing a switch for FICON on page 38. For basic steps and commands in a checklist format to quickly configure a switch for fabric and possible FICON operation, refer to the Basic Switch Configuration chapter, then return to this chapter for detailed FICON configuration procedures. Use the worksheet in the Configuration Information Record appendix to record your configuration information. Refer to FICON commands on page 30 for a list of FICON-related Fabric OS commands.

CAUTION Configuring the switch for FICON is a disruptive process. The switch must be disabled prior to configuring switch parameters.

1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter the switchDisable command. You will need to disable the switch to access all the switch parameters. 3. Configure the switch and chassis name, if applicable. 4. Set the routing policy by entering the aptPolicy command. Port-based routing (PBR) and device-based routing (DBR) are qualified for IBM z Systems; however, reference your system qualification letter for current support information. The recommended policy is DBR (aptPolicy 2). If FICON Emulation features (IBM z/OS Global Mirror or Tape Pipelining) are enabled on an FCIP Tunnel in the switch, either PBR (aptPolicy 1) or DBR (aptPolicy 2) should be set in the switch. 5. Configure Dynamic Load Sharing.

The recommended best practice is to enable Dynamic Load Sharing (DLS); however, DLS is only supported when Lossless is enabled. • To enable Lossless with DLS, use the dlsSet --enable -lossless command. • If Lossless will not be used, use the dlsReset command.

NOTE If Lossless DLS is not enabled, the routing policy must be port-based routing (aptPolicy 1).

6. Set In-Order Delivery using the iodSet command.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 39 Configuring switched point-to-point FICON

7. Configure the switch parameters using the configure command and enter the responses shown in the table below when prompted. (Items in italics are top-level parameters.)

TABLE 2 FICON switch parameters Parameter Response Comment Fabric parameter Yes Prompts for the fabric parameters. Domain The domain ID is the switch address. The recommended best practice is to set the switch address and domain ID to be the same. The domain ID is entered in decimal, so a switch address of hexadecimal 0x22 would have a domain ID of decimal 34. R_A_TOV 10000 Do not change. The Resource Allocation TimeOut Value (R_A_TOV) is entered in milliseconds. This works with the variable E_D_TOV to determine switch actions when presented with an error condition. Allocated circuit resources with detected errors are not released until the time value has expired. If the condition is resolved prior to the timeout, the internal timeout clock resets and waits for the next error condition. E_D_TOV 2000 The Error Detect TimeOut Value (E_D_TOV) is a timeout value entered in milliseconds. This timer is used to flag a potential error condition when an expected response is not received within the set time limit. If the time for an expected response exceeds the set value, then an error condition occurs. Leave this value at 2 seconds (2000) unless connected to extension equipment. In some cases, when connecting to extension equipment, it must be set to 5 seconds (5000).

NOTE This field should only be changed after consulting a Brocade Certified Fabric Professional.

WAN_TOV 0 Wide-Area Network TimeOut Value (WAN_TOV) is set in milliseconds. This is the maximum frame timeout value for a WAN, if any, interconnecting the Fibre Channel islands. MAX HOPS 7 This parameter should not be confused with the one- hop FICON cascading limitation. There are configurations that are more than one hop because more than two domain IDs are used in the path that fit within the IBM support limitation of "one hop." Also, Linux on IBM z Systems using FCP channels is not restricted to "one hop". Data field size 2112 Do not change. Specifies the largest possible value, in bytes, for the size of a type 1 (data) frame. The switch advertises this value to other switches in the fabric during

Brocade Fabric OS FICON Configuration Guide, 8.1.0 40 53-1004394-02 Configuring switched point-to-point FICON

TABLE 2 FICON switch parameters (continued) Parameter Response Comment construction of the fabric and to other devices when they connect to the fabric. Setting this value smaller than 2112 may result in decreased performance. Sequence level switching 0 Do not change. When set to 1, frames of the same sequence from a particular source are transmitted together as a group. When set to 0, frames are interleaved among multiple sequences when transmitted. Under normal conditions, sequence-level switching should be disabled for better performance. Disable device probing 1 The recommended best practice is to disable device probing. When disable device probing is set to 1, devices that do not register with the Name Server will not be present in the Name Server database. Suppress Class F traffic 0 Do not change. By default, the switch can send Class F frames. When this option is turned on (set to 1), Class F traffic is converted to Class 2 traffic before being transmitted to support remote fabrics that involve ATM gateways. Per-frame route priority 0 Do not change. In addition to the virtual channels used in frame routing priority, when this value is set to 1, support is also available for per-frame-based prioritization. Long-distance fabric 0 Do not change. The recommended best practice is to configure individual ports for long distance when cascading at extended distances. Insistent Domain ID Mode Yes The recommended best practice is to set the domain ID to be insistent. Setting the insistent domain ID is required for two-byte addressing. High Integrity Fabric Mode No Before setting HIF mode, the following attributes must be configured: • An insistent domain ID (IDID • A Fabric Wide Consistency Policy => SCC:S (Strict mode) • A valid SCC_Policy (configured and activated) Setting HIF mode locks the IDID, fabric wide consistency policy, and SCC policy settings to ensure that the fabric is of high integrity so that it can connect with the FICON channel. You cannot change these settings without disabling HIF mode. After configuring the attributes, set this parameter to Yes.

Virtual Channel parameters No Do not change. The switch allows fine-tuning of a specific application through virtual channel parameters. The default virtual channel settings have already been

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 41 Configuring switched point-to-point FICON

TABLE 2 FICON switch parameters (continued) Parameter Response Comment optimized for switch performance. Changing these values can improve switch performance, but can also degrade performance. F_Port login parameters No With Fabric OS v6.1.0 and later, it is not necessary to make any changes to F_Port login parameters. The only other reason to answer yes (y) to this prompt is if NPIV is being used and there is a need to change the default number of NPIV logins. Maximum logins per switch Change this only if NPIV is being used and the number of fabric logins will exceed the default or there is a need to limit the number of logins. Maximum logins per port Change this only if NPIV is being used and the number of port logins will exceed the default or there is a need to limit the number of logins. Maximum logins per second For Fabric OS v6.1.0b and later - Do not change. Leave at default. Login stage interval Do not change. Specifies the stage interval in the staged F_Port login, in milliseconds. Zoning operation parameters No Do not change. Disables and enables NodeName Zone Checking. RSCN transmission mode No Configures end-device RSCN Transmission Mode values such as: • RSCN only contains single PID • RSCN contains multiple PIDs (Default) • Fabric addresses RSCN Arbitrated Loop parameters No Parameters include Send FAN frames, Enable CLOSE on OPEN received, and Always send RSCN. Refer to the configure command in the Brocade Fabric OS Command Reference for more information. System services No Enables or disables the read link status (RLS) probing performed by the FCP daemon. Portlog events enable No Determines whether various types of port events are logged. SSL attributes No Enables or disables Secure Socket Layer attributes. RPCD attributes No Enables or disables Remote Procedure Call Daemon (RPCD) attributes. cfgload attributes No Configures configuration upload and download parameters. Refer to the configureChassis command in the Brocade Fabric OS Command Reference for more information. Web Tools attributes No Modifies Webtools attributes such as enabling the Basic User Enabled Perform License, Checking and Warning, Allow Fabric Event Collection, and Login Session Timeout. 8. Enter the switchEnable command to set the switch online.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 42 53-1004394-02 Configuring switched point-to-point FICON

9. Enter the trackChangesSet command to enable or disable the track-changes feature and to configure the SNMP-TRAP mode. 10. Enter the fabricPrincipal command on the switch you want to be the principal switch. In cascaded fabrics, only one switch should be the principal. In core-edge designs, the director class switch should be the principal. 11. Enter the portCfgSpeed command to configure port speeds. By default, all ports are configured to auto-negotiate. Normally, the only time the port configuration is changed is when connecting to 1 Gbps ports. Some Dense Wavelength Division Multiplexing (DWDM) ports are known not to auto-negotiate well.

NOTE 8 Gbps ports will auto-negotiate to 4 or 2 Gbps. They will not support or auto-negotiate to 1 Gbps. 16 Gbps ports will auto-negotiate to 8 or 4 Gbps. They will not support or auto-negotiate to 2 Gbps or 1 Gbps. 32 Gbps ports will auto-negotiate to 16 or 8 Gbps. They will not support or auto-negotiate to 4 Gbps or less.

12. Enter the portCfgLongDistance command for ports with fiber connections exceeding 10 km. For ports with fiber connections exceeding 10 km, configuring the port for long distance mode increases the number of buffer- to-buffer (BB) credits available on that port. If you have any Extended Fabrics links, enable VC translation link initialization to stabilize them. Refer to the Brocade Fabric OS Administration Guide for details on this option of the portCfgLongDistance command. 13. Configure the fill word on Gen 4 (8 Gbps capable) switches using the portCfgFillWord command. The following example shows the command with mode 3 and passive operands set:

portcfgfillword slot/port, 3 passive

NOTE This command is only supported on Gen 4 (8 Gbps capable) switch products. It is not supported on Gen 2 (4 Gbps capable) switches and is automatic in Gen 5 (16 Gbps capable) and Gen 6 (32 Gbps capable) switches. Refer to your switch vendor for appropriate fill word settings, such as mode. For more information on the portCfgFillWord command, refer to the Brocade Fabric OS Command Reference.

14. Enter the defZone --noaccess command to disable the default zone. 15. Configure zoning for your fabric. Follow standard FICON zoning practices published by IBM. For more information on zoning, refer to the administrator’s guide for your management tool. 16. Enter the statsClear command to clear port statistics. 17. Enter the switchShow command to verify that the switch and devices are online. 18. Enter the ficonShow rnid command to verify that the FICON devices are registered with the switch. Enter this command only if fabric binding is enabled; otherwise, channels will be attached as invalid. The ficonShow rnid port command displays RNID information for a port. 19. Enter the ficonShow lirr command to verify that the FICON host channels are registered to listen for link incidents. Enter this command only if fabric binding is enabled; otherwise, channels will be attached as invalid. 20. Enter the configUpload command to save your configuration.

NOTE This command backs up the current Fabric OS feature and switch configuration, including FMS or FICON-specific configuration such as IPL file, active configuration, mode register, and host data.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 43 Configuring cascaded FICON

21. Enter the command appropriate for your environment: • If you do not have access to an FTP server, use a Telnet session that can log console output and enter the supportShow command to save a FICON baseline. • If you have access to an FTP server, enter the supportSave command to save the FICON baseline of your switch. 22. Take the appropriate action based on your configuration: • If you have a cascaded configuration, continue configuring your switches using the instructions in Configuring cascaded FICON on page 44. • If you have and plan to use a CUP license, continue configuring your switches using the instructions in Configuring FICON CUP on page 57. • If you have a switched point-to-point configuration, you have completed the switch configuration.

Configuring cascaded FICON In addition to performing the steps listed in Configuring switched point-to-point FICON on page 39, you also must perform the following steps to configure cascaded FICON.

CAUTION Configuring the switch for FICON is a disruptive process. The switch must be disabled to configure switch parameters. This procedure must be followed prior to channels joining the fabric.

1. Perform the following actions for each switch: a) Enable the IDID mode using the Fabric OS configure command. For details on enabling the IDID mode, refer to Enabling the insistent domain ID on page 36. b) Set the domain ID. It is highly recommended that the switch ID used in hardware configuration definition (HCD) and Input/ Output Configuration Program (IOCP) be the same as the switch address in hexadecimal. All switches ship from the factory with a default domain ID of 1. The best practice is to use something other than 1 so that a new switch can be added to the fabric without changing the domain ID. 2. Use the secPolicyCreate command to configure the SCC policies on all switches to limit connectivity to only the switches in the selected fabric.

switch:admin> secPolicyCreate SCC_POLICY, member;...;member

In the command syntax, member indicates a switch that is permitted to join the fabric. Specify switches by WWN, domain ID, or switch name. Enter an asterisk (*) to indicate all the switches in the fabric. To create a policy that includes all the switches in the fabric, enter the following command:

switch:admin> secPolicyCreate SCC_POLICY "*"

3. Save or activate the new policy by entering either the secPolicySave or the secPolicyActivate command. If neither of these commands is entered, the changes are lost when the session is logged out.

4. Enter the fddCfg command to enable the ACL fabric-wide consistency policy and enforce a strict SCC policy.

switch:admin> fddcfg --fabwideset "SCC:S"

5. Enable High-Integrity Fabric mode using the Fabric OS configure command. For details on enabling HIF mode, refer to Enabling High-Integrity Fabric mode on page 37. Setting HIF mode locks the IDID, fabric-wide consistency policy, and SCC policy settings to ensure that the fabric is of high integrity to connect with the FICON channel. You cannot change these settings without disabling HIF mode.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 44 53-1004394-02 FICON and FICON CUP in Virtual Fabrics

6. Connect and enable channel and control unit (CU) devices. The Query Security Attributes (QSA) response to the channel indicates that the fabric binding and IDID are enabled.

FCR and FICON cascading For Fabric OS v7.3 and later, FICON cascading is allowed in an FCR configuration when front or translate domains are present. These domains can co-exit with a fabric-wide "strict" SCC policy. To connect edge fabrics to high-integrity backbone fabrics that use a FCR, use the following these general steps: 1. Define the FC Router EX_Ports. 2. Enter the portcfgexport slot/port command to obtain the front domain WWN. 3. Add the front domain WWN to the SCC Policy lists in the edge switches to be merged.

4. Connect the switches.

FICON and FICON CUP in Virtual Fabrics For FICON CUP, FICON Management Server (FMS) mode is enabled on the logical switch and not the chassis. For example, in a Virtual Fabrics environment on a Brocade switch or a Brocade DCX directors, enable CUP on each logical switch. You can configure up to four logical switches as CUP switches in a Virtual Fabrics-enabled platform in FMS mode. Complete instructions for creating a logical switch using Fabric OS commands are in the Brocade Fabric OS Administration Guide. Instructions for for creating a logical switch using Brocade Network Advisor are in the Brocade Network Advisor User Manual. Once a logical switch is configured, CUP must be installed on the switch per the instructions under Configuring FICON CUP on page 57. The table below specifies the maximum number of logical switches and maximum number of logical switches with FMS mode enabled for supported Brocade FICON switches and directors.

TABLE 3 Maximum logical switches for FICON switches and directors Switch or director Maximum number of logical switches Maximum number of logical switches with FMS (CUP) enabled G620 4 2 X6-4 16 8 X6-8 16 8 DCX 8510-4 8 4 DCX 8510-8 8 4 7840 4 (the base switch cannot be FMS-enabled) 4 6510 4 (3 if using a base switch) 2

When creating a logical switch, consider the following for FICON: • Set the addressing mode to Mode 1 (zero-based) FICON CUP. Setting these modes may be required for specific hardware configurations; refer to the following examples: – For 48-port blades in an 8-slot chassis, FICON is supported only on a logical switch with mode 1 addressing configured. – For 48-port blades in an 4-slot chassis, FICON may work but is not supported on a logical switch defined for mode 2 addressing. Mode 1 is the recommended mode. For more information on addressing modes, refer to Addressing modes on page 46.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 45 Addressing modes

NOTE FICON is not supported on the default logical switch.

• You can use the Fabric OS configure command to allow XISL use. An extended interswitch link (XISL) is an interswitch link (ISL) that connects the logical switch to a base switch and carries traffic for multiple logical fabrics. The XISL is a logical switch feature, not a link feature. It is shared by multiple logical switches and can be used for multiple Fabric IDs (FIDs). Creating an XISL is disruptive because it provides a core routing function for the switch. For more information on creating XISLs and restrictions, refer to the configure command in the Brocade Fabric OS Command Reference. When using XISLs, the effective routing policy for all logical switches configured to allow XISL use is that of the base switch regardless of how the routing policy is defined. The best practice is to set the routing policy in all logical switches that allow XISL use to have the same routing policy as the base switch to avoid confusion about the routing policy used. A base switch can only be used for XISLs. Therefore, the switch cannot be managed through a CUP port and cannot report statistics for RMF. • The following policies are qualified for IBM z Systems: – Port-based routing (PBR) – Device-based routing (DBR) – Exchange-based routing (EBR) There are caveats with EBR as to specific processor type, z/OS level and storage device support. Refer to the z Systems qualification letter and storage vendor support matrixes for current EBR support details. The recommended policy is DBR or aptPolicy 2. • If addresses 0xFE or 0xFF have been assigned to physical ports, those ports must be disabled before FMS can be enabled. • Each logical switch has its own configuration data, such as the following: – Initial Program Load (IPL) file. – Configuration data elements, such as Prohibit Dynamic Connectivity Mask (PDCM), Port Information Block (PIB), port address names, mode register, and key counter. – CUP configuration files. • Ports moved into a logical switch will have persistent states based on the Active=Saved (ASM) bit setting and other factors. Refer to Disabling and enabling ports - persistent states on page 47 for more information.

FICON Logical Switch feature Beginning with Fabric OS 8.1.0, a FICON Logical Switch feature provides simplified configuration of logical switches for use in FMS mode. A -ficon option is provided for the lscfg command, which creates a logical switch with FICON configurations. This includes such configuration attributes as IDID, fabric binding, high integrity fabric mode, DBR routing policy, and 256-area limited addressing mode. For details and configuration steps, refer to the Brocade Fabric OS Administration Guide.

Addressing modes The following 256-area addressing modes provide extended functionality in dynamically created partitions: • Mode 0: 10-bit addressing. For more information about 10-bit addressing, refer to the Brocade Fabric OS Administration Guide. • Mode 1: zero-based addressing. Zero-based addressing is the recommended method when configuring FICON support. • Mode 2: port-based addressing. For more information about port-based addressing, refer to the Brocade Fabric OS Administration Guide.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 46 53-1004394-02 Disabling and enabling ports - persistent states

Mode 1 (zero-based addressing) Mode 1 is the recommended mode for FICON. With zero-based addressing, unique area assignments begin at zero regardless of where the port is physically located. This allows FICON users to make use of high port count blades with port indexes greater than 256. Zero-based addressing assigns areas when the ports are added to the logical switch, beginning at area 0x00. When a port is assigned to a logical switch, the next free PID starting from 0x00 is assigned. This mode allows FICON customers to make use of the upper ports of a 48-port blade. The arbitrated loop physical address (ALPA) is always 0x00. Therefore, Mode 1 addressing limits the maximum switch size to 256 ports. Mode 1 does not use any of the ALPA bits and may be preferred for native FCP with IBM z/VM or IBM Linux on z Systems to allow up to 256 (255 practical) NPIV logins.

NOTE Although port addresses are assigned when moved to a logical switch, the address is not bound to the port. To ensure that the link address for a control unit attached to a port does not change, the portAddress command must be used to bind the address to the port even if you are not changing the port address assignments. Refer to Sequential address binding on page 107 for a list of commands that will bind ports on DCX Directors or X6 Directors fully populated with 32-port blades.

FICON and blade support for addressing modes FICON is supported on blades that are attached to a logical switch other than the default logical switch. A non-default logical switch and its attached blade(s) require Mode 1 addressing (zero-based) for FICON support.

Port swap limitations For limitations for port swapping on logical switches and when FMS mode is enabled, refer to Port swap limitations on page 61.

Disabling and enabling ports - persistent states You cannot issue the portCfgPersistentDisable command if FMS mode is enabled. When FMS mode is enabled, persistently enabled or disabled configuration states are saved in the CUP's IPL file. When FMS mode is enabled and Active=Saved Mode (ASM) is ON, the user can achieve persistent port configuration states by using the portDisable and portEnable command. IBM CUP documentation refers to these persistent configuration states as blocked and unblocked. The persistent configuration state depends on the following factors: • If ASM is set to one (1) and you change the port's enabled state to block, unblock, enable, or disable in the CUP Active Configuration, then that setting will update the IPL file and will be in a persistent configuration state. • If ASM is set to zero (0) and you change the port's enabled state to block, unblock, enable, or disable in the CUP Active Configuration, then that setting will not update the IPL file and will not be in a persistent configuration state. The following tables compare the achievement of port persistent enable and disable states with interactions between the ASM Mode setting, IPL state. and use of the portdisable or portenable command.

TABLE 4 ASM 1 ON Initial IPL state Blocked Blocked Unblocked Unblocked User action portenable command portdisable command portenable command portdisable command Physical state of port Enabled Disabled Enabled Disabled Port state in IPL file Unblocked Blocked Unblocked Blocked

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 47 Clearing the FICON management database

TABLE 4 ASM 1 ON (continued) PortCfgShow command OFF ON OFF ON display for persistent state

TABLE 5 ASM 0 OFF Initial IPL state Blocked Blocked Unblocked Unblocked User action portenable command portdisable command portenable command portdisable command Physical state of port Enabled Disabled Enabled Disabled Port state in IPL file Blocked Blocked Unblocked Unblocked PortCfgShow command ON ON OFF OFF display for persistent state

Following are summaries of important points in the tables: • The only time "Persistent Disable ON" should display with the PortCfgShow command is when you disable a port and ASM is set to ON. • The only time the IPL file changes is when ASM is set to ON. • When FMS mode is enabled, persistence is controlled by the interaction of ASM mode and the IPL file.

Clearing the FICON management database Perform the following steps to clear RLIR and RNID records from the FICON management database. 1. Connect to the switch and log in as admin. 2. Enter ficonClear rlir to remove all the RLIR records from the local RLIR database. 3. Enter ficonClear rnid to remove all the RNID records marked "not current" from the local RNID database.

Automating CS_CTL mapping The CS_CTL-based frame prioritization feature allows you to prioritize the frames between a host and Control Unit (CU) as having high, medium, or low priority, depending on the value of the CS_CTL field in the FC frame header. High, medium, and low priority frames are allocated to different virtual channels (VCs). High priority frames receive more VCs than medium priority frames, which receive more VCs than low priority frames. The virtual channels are allocated according to the CS_CTL value. When QoS is enabled, buffers are reserved for the VCs. Most traffic occurs on the medium-priority channel, which means a number of available buffers are not being used. The recommended action is to disable QoS on ports unless you have a well-defined plan for establishing priorities in your FICON environment. When QoS is enabled on a port, you risk depleting buffers and experiencing performance degradation. Be aware that disabling QoS disrupts the link when it is taken offline and brought back online as a result of disabling or enabling QoS.

NOTE QoS zoning is not supported in FICON environments.

NOTE Check with your host and storage manufacturer to determine if they support Fibre Channel CS_CTL prioritization on their devices.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 48 53-1004394-02 Automating CS_CTL mapping

The Brocade Fabric OS Administration Guide provides additional information on this feature and steps to enable CS_CTL-based frame prioritization on your switch using the portCfgQos command. The configureChassis command allows you to set chassis-level configuration parameters, such as cfgload, custom, system, and Fabric OS attributes, to be used by ASIC drivers. The following procedure uses the Fabric OS attribute, CS_CTL QoS Mode, to change CS_CTL values mapped to VCs for priority levels from default to auto mode. While default mode maps CS_CTL values 1-8 (low), 9-16 (medium), and 17-24 (high) to specific VCs, auto mode maps CS_CTL values 1 (low), 2 (medium), and 3 (high) to VCs based on the ASIC supported by your platform. For DCX 8510-4, DCX 8510-8, and 6510 models, a single CS_CTL value is mapped to multiple VCs. To enable auto mode for CS_CTL to VC mapping on a FICON switch, use the following steps.

NOTE This process is disruptive as you must reboot the chassis to reset the configuration in the ASIC. You cannot enable CS_CTL mapping on individual ports until this is done. If auto mode is selected, you must select auto mode for each chassis in the fabric. Not doing so will mean different virtual channels (VCs) will be used across the fabric with undesirable results.

1. Connect to the switch and log in to an account that has admin permissions. 2. Launch the configureChassis command. 3. Select no when prompted to modify cfgload attributes, custom attributes, and system attributes, then select yes to modify Fabric OS attributes.

switch:admin> configurechassis Configure... cfgload attributes (yes, y, no, n): [no] Custom attributes (yes, y, no, n): [no] system attributes (yes, y, no, n): [no] fos attributes (yes, y, no, n): [no] y

4. Select 1 (auto mode) when prompted to configure CS_CTL QoS mode.

CSCTL QoS Mode (0 = default; 1 = auto mode): (0..1) [0] 1

5. Reboot the switch or chassis. 6. To verify if auto mode or default mode is set for the chassis, enter the configShow --all command.

root> configshow -all | grep fos.csctlMode fos.csctlMode:1

• If auto mode is set, the following should display in the command output:

fos.csctlMode:1

• If default mode is set, the following should display in the command output:

fos.csctlMode:0

To return to default mode, follow the preceding steps, but select 0 (default mode) for CS_CTL QoS mode when modifying fos attributes through the configureChassis command.

NOTE The configureChassis command does not provide options to enable the CS_CTL QoS mode on individual ports in the chassis. Once you set the mode on the chassis, you must enable individual ports to use this mode with the portCfgQos command. For details on the configureChassis and portCfgQos commands, refer to the Brocade Fabric OS Command Reference for details.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 49 FICON best practices

FICON best practices Use the following best practices for configuring FICON on Brocade switches and directors: • Configuring Domain ID Give all switches a unique domain ID and always set the IDs to "insistent." • Switch ID Make the Switch ID in the IOCP or HCD the same as the hexadecimal equivalent of the domain ID. Although not required, this will make it easier to correlate switches to the IOCP. For example, if the domain ID is 32 (0x20), the Switch ID should be 20. • Firmware – Use only qualified firmware for FICON. – All versions of firmware for switches that Brocade Network Advisor will be managing should be in the Brocade Network Advisor repository. – All switches in a fabric should be at the same code level. – When upgrading code more than two levels, plan the upgrades so that no switch in the fabric is more than one release apart. – Always check the version of firmware on a switch before putting the switch into production. – If a firmware upgrade is required on a new switch installation, upgrade the firmware before making any configuration changes. • CHPID and control unit placement Place CHPID and control unit connections on the same port card when possible to minimize the impact of a card failure. This also allows for maximum use of Brocade local switching to minimize latency and optimize performance. Consult your Brocade SE for more specifics on maximizing the benefits of local switching with your specific configuration. This should be done in conjunction with your IOCDS planning. • Default switch Leave the default switch FID at 128. • Logical switches Always use a logical switch other than the default switch for FICON and do not disable Virtual Fabrics. • Cascading When cascading switches, connect ISLs so that a fabric forms before configuring switches for FICON. Merging switches or directors into the fabric after configuring FICON is possible, but allowing the fabrics to form before applying the FICON settings simplifies the configuration process. • Addressing mode Always use Mode 1 addressing. You can bind ports to specific addresses and ensure Mode 1 or Mode 2 addressing using the portAddress --bind command. Use the Fabric OS scripts in Sequential address binding on page 107 to help simplify configuration. • Port fencing Set the port fencing parameters with the following values: – C3 Discard Frames - 2 per minute – Invalid Words - 25 per minute – Invalid CRCs - 3 per minute – Link Reset - 2 per minute – Protocol Error - 2 per minute

Brocade Fabric OS FICON Configuration Guide, 8.1.0 50 53-1004394-02 FICON best practices

– State Change - 7 per minute • WWN-based persistent port area IDs (PIDs) Do not enable WWN-based persistent PIDs for FICON environments.

FICON and FEC-via-TTS All known devices that support FEC-via-TTS have it enabled by default; however, not all devices that support 16GFC support FEC-via- TTS. FEC is enabled by default on Brocade switches, but FEC-via-TTS is disabled by default. Enabling or disabling FEC-via-TTS momentarily disables the port. As with any switch action that disables a port, CHIPIDs connected to that port should be configured offline. Operators should quiesce all traffic or vary offline any link address associated with a port that will be disabled. The best practice is to always leave FEC enabled; however, a best practice regarding FEC-via-TTS depends on current and future plans regarding 16GFC attachments. If the only plans for 16GFC attachments are with HBAs and devices that will support FEC-via-TTS, then a data center may choose to establish a best practice to enable it during installation. Otherwise, FEC-via-TTS should be enabled only on ports intended for connections to HBAs and devices that also support FEC-via-TTS. Because enabling FEC-via-TTS is disruptive, the use of this feature should be considered before putting the port into production. The Gen 5 director must be set to enable FEC with TTS to enable Forward Error Correction on the IBM Channel (FICON Express16S) or 16G Control Unit links. In cases where Gen 5 16G switches are connected to FICON Express8S or 8G CUs, enabling FEC with TTS on 16G F_Ports on the switch is fine regardless of the device port capability. The idea is that the switch will be ready for the transition to the new FICON Express16s cards or the 16G Control Unit adapter cards, so there's less disruption when they are added (for example, you don't have to reconfigure the switch port). FEC-via-TTS is supported on the FICON Express16s channel card, which is used for both FICON and FCP. This feature is not FICON dependent and is supported in FCP environments such as PPRC. In Gen 6 directors 32G F_Ports are automatically enabled with FEC based on 32G FC standards, there are no portcfgfec commands to enter if connecting to a 32G device. For Gen 6 directors connected to 16G channels and CUs the 32G switch port will negotiate to 16G and the behavior is the same as Gen 5 16G and the portcfgfec command is required to enable FEC-via-TTS. For further information on FEC limitations and instruction on enablement and disablement, refer to the Brocade FICON Administration Guide and theBrocade Fabric OS Command Reference, which contain additional information on configuring and using this feature. Also, refer to the Brocade Forward Error Correction (FEC) for Gen 5 Supporting Fabric OS 7.3 and Later Feature Guide.

TABLE 6 Forward Error Correction (FEC) Gen 6 to Gen 5 Device Behavior SFPs With FEC-via-TTS Enabled With FEC-via-TTS Disabled 16G SFPs 16G FEC-via-TTS 16G 16G SFPs 8G 8G 16G SFPs 4G 4G

32G SFPs 32G FEC 32G FEC 32G SFPs 16G FEC-via-TTS 16G 32G SFPs 8G 8G

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 51 Latency guideline

Latency guideline The maximum supported distance for a FICON channel is 300 km (1.5 msec of delay). Synchronous remote data replication for DASD is generally limited to 100 km (0.5 msec of delay). Asynchronous remote data replication for direct-access storage devices (DASD) and remote tape reads/writes require that the Brocade Advanced Accelerator for FICON feature be used with FCIP. The Advanced Accelerator for FICON feature emulates control unit response to the channel to improve the performance over distances greater than locally attached distances.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 52 53-1004394-02 Configuring FICON CUP

• Control Unit Port overview...... 53 • Port and switch naming standards for FMS mode...... 56 • Configuring FICON CUP...... 57 • Determining physical port assignment ...... 58 • FMS mode and FICON CUP...... 58 • Mode register bit settings...... 61 • Setting the MIHPTO value...... 64 • Persistently enabling and disabling ports for CUP...... 65

Control Unit Port overview The Control Unit Port (CUP) provides an in-band management interface defined by IBM that defines the channel command words (CCWs) that the FICON host can use for managing the switch. The protocol used is the IBM version of the ANSI FC-SB4 single-byte command code specification, which defines the protocol used for transporting CCWs to the switch, and for the switch to direct data and status back. The CUP is an optional licensed feature. The CUP provides an interface for host in-band management and collection of FICON switch performance metrics using the Resource Measurement Facility (RMF) 74-7 record, more commonly known as the FICON Director Activity Report. Host-based management programs manage the FICON switches by sending commands to the switch control unit defined in the I/O Configuration Data Set (IOCDS) and hardware configuration definition (HCD). A FICON switch that supports CUP can be controlled by one or more host-based management programs or switch consoles. Control of the FICON switches can be shared between these options. CUP commands, or CCWs, monitor and control FICON switch functions. CUP commands are oriented towards management of a single switch, even though the use of CUP in a cascaded FICON environment is fully supported.

NOTE The CUP port address will always be xxFExx. Port addresses xxFE and xxFF are unavailable to assign to physical ports when FMS is enabled. For more information, refer to Disabling ports 0xFE and 0xFF on page 57.

FICON Management Server mode (FMS mode) must be enabled on the switch to enable CUP management features. For more information, refer to FMS mode and FICON CUP on page 58.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 53 Control Unit Port overview

FIGURE 16 FICON CUP

The figure above is a simplified representation of a FICON environment and how CUP fits into that environment. FICON switches with FMS enabled use port address "FE" as the embedded internal port for host connectivity to the CUP, and port address "FF" is reserved. Therefore, addresses "FE" and "FF" cannot be used for assignment to physical ports when FMS is enabled. For more information, refer to Disabling ports 0xFE and 0xFF on page 57. In a FICON environment, only one RMF logical partition (LPAR) should be configured to poll the CUP for port statistical counter data to minimize contention for the CUP device. Host contention for access to the CUP can lead to missing interrupts, potentially causing the host to box the device. It is a best practice to have more than one CHPID defined as a path to the CUP to ensure redundancy for host- to-CUP connectivity.

FICON CUP restrictions The following restrictions apply to Brocade FICON switches having at least 256 ports when FMS mode is enabled and when host applications are used for in-band monitoring and management of the switch: • FICON Management Server mode (FMS mode) must be enabled on the switch to enable CUP management features. When this mode is enabled, Fabric OS prevents configuration requests from out-of-band management interfaces from interfering with host in-band configuration requests by serializing access to switch parameters.

ATTENTION Once FMS mode is enabled, you cannot bind addresses 0xFE or 0xFF to any ports using either the portAddress or wwnAddress commands.

• The switch is advertised to the mainframe by the CUP as having a specific number of ports, which is based on the hardware platform. The maximum supported switch size is 256 ports. • The FE and FF addresses are not components of the Allow/Prohibit Matrixes (as they are called in Brocade Network Advisor and Web Tools), because the Prohibit Dynamic Connectivity Masks (PDCMs) for the ports associated with FE and FF are defined architecturally and cannot be modified by the user.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 54 53-1004394-02 Control Unit Port overview

• The port address name for the internal FE port can be read by the host, and corresponds to the switch name that is set for the switch. A switch name in Fabric OS must begin with an ASCII alphanumeric character and must contain only alphanumeric characters, an underscore, a dash, or a period. The switch name can be modified by the host and is subject to the following restrictions: – If the host-assigned FMS name is all numeric, the first character will be converted to an “x” and the remainder of the numbers remain. For example, the name “12345” will appear as “x2345” in Fabric OS. – If the first character of an FMS name is not ASCII alphanumeric, that character will be converted to an “x”. For example, the name “_switch_1” will appear as “xswitch_1” in Fabric OS. – Spaces in the middle of an FMS name will be converted to underscores. Trailing spaces are removed. For example, the name “ switch name 1 ” will appear as “switch_name_1” in Fabric OS. – If the host-assigned FMS name is all spaces, the Fabric OS value will be set to the format “FID fabid______”, where fabid is the fabric ID of the logical switch and the spaces are converted to underscore characters. For example, an FMS name of 10 spaces on fabric ID 32 will appear as “FID32______” in Fabric OS. – Any character other than ASCII alphanumeric, underscore, dash, period, and space in the FMS name will be converted to a period. For example, the FMS swithch name “switch(1)” will appear as “switch.1.” in Fabric OS. • Addresses FE and FF are not available for external connections. Before enabling FMS mode, you must manually disable physical ports associated with FE and FF if there is an active device connected to these ports. If there is an active device connected to either of these ports, Fabric OS will not enable FMS mode until either the port is disabled or the device is taken offline (logs out of the switch). If there is no active device connected, these ports will automatically disable when FMS enables. Because the ports associated with FE and FF are not available after enabling FMS mode, you should first move any fiber connected to either of them to another free port. For more information, refer to Disabling ports 0xFE and 0xFF on page 57.

CUP configuration recommendations The following are recommendations for setting up FICON CUP: • Device Type: 2032 Use device type 2032 as the CUP "UNIT" type for the CNTLUNIT and IODEVICE statements in the IOCDS or HCD. Although IBM has developed new machine types for switches, all Brocade FICON directors and switches regardless of model or manufacture should be configured as 2032. • Paths Define at least two CHPIDs as paths to the CUP in the IOCDS Control Unit statement for the switch to ensure redundancy for host connectivity. • RMF 74-7 statistics gathering So as not to overwhelm the CUP, the recommended best practice in a sysplex environment is to disable FICON switch statistics (RMF polling) on all but one host system that has in-band access to the CUP. If no FICON statement is specified, the system will gather switch statistics by default so FICON switch statistics should be disabled on all but the system intended to gather statistics. • Missing Interrupt Handler (MIH) Set the MIHPTO to three minutes (180 seconds).

NOTE Although 180 seconds should be the default value set on the switch when FMS mode is enabled, this value may not be set when older versions of Fabric OS are upgraded. This value must be set on the host system as well.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 55 Port and switch naming standards for FMS mode

FICON CUP zoning and PDCM considerations The FICON PDCMs control whether or not communication between a pair of ports in the switch is prohibited or allowed. PDCMs are a per-port construct. Each port on the switch has its own PDCM that defines whether communication is allowed between that particular port and each of the other ports in the switch, including itself. The Allow/Prohibit Matrix presents a matrix that allows you to set and clear the PDCMs for all external ports. If there are any differences between restrictions set up with Brocade Advanced Zoning and PDCMs, the most restrictive rules are automatically applied. FMS mode must be enabled for the Allow/Prohibit Matrix to be operational, and there must be an active zoning configuration. Domain,Index (D,I) zoning is recommended for FICON, but is not specifically required. Hard-port or hard WWN zoning enforcement is required however. PDCMs will not be enforced on ports with session-based enforcement.

If Brocade Advanced Zoning is in use, refer to the Brocade Fabric OS Administration Guide for more information on configuration.

Port and switch naming standards for FMS mode The FICON management server and the FICON programming interface employ 8-bit EBCDIC characters in port address names and switch names. Fabric OS employs 7-bit characters. Therefore, when FMS mode is enabled, all characters greater than 0x40 and not equal to 0xFF are allowed in port address names. However, a switch name in Fabric OS must begin with an ASCII alphanumeric character and must contain only alphanumeric characters, an underscore, a dash, or a period. Refer to FICON CUP restrictions on page 54 for additional information about Fabric OS switch and port name handling. A host can set a name with nonprintable characters or characters other than the set allowed by Fabric OS. Because of this, it is possible for a host to set a name with nonprintable characters or characters not allowed by Fabric OS. If a name contains nonprintable characters, those characters are displayed as dots (...). The following characters are also displayed as dots: semicolon (;), comma (,), equal sign (=), and at sign (@). Refer to EBCDIC Code Page on page 115. The port name for the CUP must be unique within the chassis.

IMPORTANT Change to FMS mode first and then configure port names. If you configure port names before changing to FMS mode, you will not see the port names when you do enable FMS mode.

FICON CUP Fabric OS commands The table below summarizes the Fabric OS CLI commands related to managing FICON CUP. For detailed information on these commands, refer to the Brocade Fabric OS Command Reference.

TABLE 7 Fabric OS commands related to FICON CUP Command Description ficonCupSet fmsmode Sets FICON Management Server mode on or off for the switch. ficonCupSet crp Sets the current reporting path (CRP). ficonCupSet MIHPTO Sets the Missing Interrupt Handler Primary Timeout value. ficonCupSet modereg Sets the mode register bits for the switch. ficonCupSet UALERT_ALL | UALERT_HSC | UALERT_FRU | Sets which alert types are enabled for display for the switch. UALERT_INVATT ficonCupShow lp Displays the host logical path information for the CUP. ficonCupShow fmsmode Displays the FICON Management Server enabled or disabled state for the switch. ficonCupShow modereg Displays the mode register bit settings for the switch.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 56 53-1004394-02 Configuring FICON CUP

TABLE 7 Fabric OS commands related to FICON CUP (continued) Command Description ficonCupShow UALERT_MODE Displays the UALERT mode settings for the switch.

Configuring FICON CUP To set up FICON CUP, use the following procedure. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Verify that the switch or director has been set up according to the instructions in Configuring switched point-to-point FICON on page 39 and, if in a cascaded topology, Configuring cascaded FICON on page 44. 3. For switches with at least 256 ports installed, use the portDisable command to disable ports 0xFE and 0xFF. Refer to Disabling ports 0xFE and 0xFF on page 57 for more information. 4. Enter the ficonCupShow fmsmode command to verify if FMS mode is disabled. 5. Take the appropriate action based on whether FMS mode is enabled or disabled: • If FMS mode is disabled, proceed to step 6. • If FMS mode is enabled, disable it using the ficonCupSet fmsmode disable command.

ATTENTION If FMS mode is already enabled, disabling it may be disruptive to operations because ports that were previously prohibited from communicating will be allowed to do so because prohibits are no longer enforced.You must disable FMS mode to continue setting up CUP.

6. Install a CUP license on the switch. For more information on installing a license, refer to the Brocade Fabric OS Administration Guide. 7. Be sure that the switch meets requirements for a high-integrity fabric, and then enable High-Integrity Fabric (HIF) mode using the configure command. For details, refer to Meeting high-integrity fabric requirements on page 35.

NOTE You must enable HIF mode to enable FMS mode.

8. Enter the ficonCupSet modereg command to set the mode register bits. Refer to Mode register bit settings on page 61 for more information. 9. Verify with the systems programmer that the CUP ports, and the switches and directors, are defined properly in their IOCDS. FICON ports are defined as part of the sysgen process. The z/OS systems programmer can verify if the CUP ports are defined properly.

Disabling ports 0xFE and 0xFF Addresses 0xFE and 0xFF are not available for external connections, so they must be disabled to configure FICON CUP. Note that in logical switches or in cases where port address binding or port swapping has occurred, addresses 0xFE and 0xFF are not necessarily tied to specific physical ports, such as 254 and 255. After FMS mode has been successfully enabled, these two ports remain disabled and cannot be used either as an F_Port or an E_Port. Because these ports are not available after enabling FMS mode, you should first move any cable connected to either of them to another free port.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 57 Determining physical port assignment

You must manually disable ports associated with 0xFE and 0xFF to enable FMS mode only if there is an active device connected to these ports. Otherwise, if physical ports have been assigned these addresses by default prior to enabling FMS mode, they will be automatically disabled when FMS mode is enabled. On Brocade DCX 8510 Directors, when Virtual Fabrics is not enabled or addressing Mode 1 is not used, you must disable physical ports associated with addresses 0xFE and 0xFF (if ports were assigned by default) before enabling FMS mode. Note that physical ports associated with 0xFE and 0xFF may be different in logical switches using Mode 1 addressing. Disable these addresses manually if there is an active device attached. If an active device is not attached to the ports, they will be disabled automatically when you enable FMS mode. You can only disable ports if there is a card present in the slot. If FMS mode is enabled in a logical switch with Mode 2 addressing, the physical ports with addresses 0xFE and 0xFF are essentially wasted and may be used better elsewhere. This is the same for a switch with Mode 1 addressing where all available addresses are used, and thus no addresses are available for binding to these ports. On logical switches with Mode 1 addressing, such ports may be reclaimed for external connections by binding a new address to the port, if unused addresses are available. Ports that are disabled for having addresses "FE or "FF" when FMS mode is enabled are not eligible for port swapping.

Configuring FICON CUP in Virtual Fabrics Beginning with Fabric OS 8.1.0, a FICON Logical Switch feature provides simplified configuration of logical switches for use in FMS mode. A -ficon option is provided for the lscfg command, which creates a logical switch with FICON configurations. This includes such configuration attributes as IDID, fabric binding, high integrity fabric mode, DBR routing policy, and 256-area limited addressing mode. For details on FICON and FICON CUP in Virtual Fabrics, refer to FICON and FICON CUP in Virtual Fabrics on page 45.

Determining physical port assignment The following steps help you identify the physical port from CUP_PortAddress. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Set the context to the appropriate logical switch. 3. Enter the switchShow command. 4. Look for the PID in the Address column. 5. Read across to the Slot and Port columns to find the physical port number. For more information and example output from the switchShow command, refer to the Brocade Fabric OS Command Reference.

FMS mode and FICON CUP Enabling FICON Management Server (FMS) mode in a Fabric OS environment allows the switch to behave within the context of the FICON architecture and creates a FICON director. The FMS mode setting can be changed whether the switch is disabled or enabled. If FMS mode is changed while the switch is enabled, a device reset is performed for the control device and an RSCN is generated with PID 0xDDFE00, where 0xDD is the domain ID of the switch.

IMPORTANT Change to FMS mode first and then configure port names. If you configure port names before changing to FMS mode, you will not see the port names when you do enable FMS mode.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 58 53-1004394-02 FMS mode and FICON CUP

The following are required on the switch to enable FMS mode: • For Fabric OS 7.0 and later, a FICON CUP license. • For Fabric OS 7.3 and later, High-Integrity Fabric (HIF) mode must also be enabled. Changing FMS mode from disabled to enabled triggers the following events: • Access to switch configuration parameters is serialized. • The active CUP configuration data, including the following, is initialized according to the IPL file: – Port and switch names – Port "Block" and "Unblock" values – PDCM values • Brocade Advanced Zoning, if used, continues to be enforced. If there are any differences between the port-to-port connectivity restrictions defined by Brocade Advanced Zoning and those defined by PDCMs, the most restrictive rules are automatically applied. • RSCNs are sent to devices if PDCM changes result in changes to connectivity between a set of ports that are zoned together. • An RSCN for the CUP is generated to all mainframe FICON and FCP channels in the fabric. Changing FMS mode from enabled to disabled triggers the following events: • A device reset is performed on the control device. • Prohibits are no longer enforced. • RSCNs may be generated to some devices if PDCM removal results in changes to connectivity between a set of ports that are zoned together. • If a given port was set to "Block" or "Unblock," that port remains disabled or enabled. • The switch interface for host in-band management is no longer enabled. • An RSCN for the CUP is generated to all mainframe FICON and FCP channels in the fabric.

NOTE FMS mode cannot be enabled in a Virtual Fabrics environment when a logical switch is using Mode 0 addressing.

Fabric OS command limitations and considerations This section describes limitations and considerations for using Fabric OS commands with FMS mode enabled. For a list of Fabric OS commands related to FICON, refer to FICON commands on page 30. • The following Fabric OS commands return a "switch busy" response if they are issued when the host-based management application is performing a write operation. This prevents interference from out-of-band management applications when a host- based management program is being used to administer the switch. – bladeEnable – portName – portShow – portSwap – switchCfgPersistentDisable – switchDisable – switchEnable – switchName – switchShow – portDisable

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 59 FMS mode and FICON CUP

– portEnable • You cannot use the portCfgPersistentEnable and portCfgPersistentDisable commands to persistently enable and disable ports. Refer to Persistently enabling and disabling ports for CUP on page 65 for instructions. • Specifying a range of ports for the portName command will fail except for the first port in the range. FMS mode does not permit multiple ports with the same name.

Displaying FMS mode Use the ficonCupShow fmsmode command to display the enabled or disabled state of FMS mode for the switch.

Enabling FMS mode Before enabling FMS mode, you must enable attributes for high-integrity fabrics and HIF mode. For more information, refer to Meeting high-integrity fabric requirements on page 35.

IMPORTANT Change to FSM mode first and then configure port names. If you configure port names before changing to FMS mode, you will not see the port names when you do enable FMS mode.

1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter ficonCupSet fmsmode enable. 3. Enter the ficonCupShow fmsmode command to verify that FMS mode is enabled.

Disabling FMS mode Perform the following steps to disable FMS mode. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter ficonCupSet fmsmode disable. 3. Enter the ficonCupShow fmsmode command to verify that FMS mode is disabled.

FMS mode and FICON 0xFE or 0xFF ports 0xFE and 0xFF addresses are assigned to the CUP and cannot be associated with any physical port with FMS mode enabled. Therefore, note the following when using FMS mode: • You must manually disable ports associated with 0xFE and 0xFF using the portDisable command before you can enable FMS mode, but only if there is an active device connected to these ports. Otherwise, these ports will disable automatically when FMS is enabled. Refer to Disabling ports 0xFE and 0xFF on page 57 for more information. • Enabling FMS mode disables all ports with 0xFE and 0xFF addresses. • If you enable FMS mode, you will get port-disable messages for physical ports with 0xFE or 0xFF FICON addresses. • You cannot enable FMS mode when physical ports have 0xFE or 0xFF FICON addresses with live devices connected. • Port swapping and blade swapping cannot be performed on ports where FMS mode is enabled and ports have either 0xFF or 0xFE FICON addresses.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 60 53-1004394-02 Mode register bit settings

Upgrade considerations Take the CUP offline before performing a firmware upgrade or downgrade operation. This means you should vary the CUP offline at the host. The upgrade can disrupt host communication with the CUP, especially for active RMF sessions. For Fabric OS 7.0 and later, a FICON CUP license is required to enable FMS mode. Consider the following when using FMS mode and upgrading from Fabric OS 7.3.0: • Upgrading with FMS mode enabled from Fabric OS 7.2.1 or prior to 7.3.0 or later requires that the following attributes be configured. If FMS mode is enabled on the switch and these are not configured, the upgrade will fail. Refer to Administering FICON Fabrics on page 35 for configuration information. – An insistent domain ID (IDID) – A valid SCC_Policy (configured and activated) – A Fabric Wide Consistency Policy, where SCC:S (Strict mode)

NOTE You enable the Fabric Wide Consistency Policy on the fabric once the switch joins the fabric.

– HIF mode enabled. • The following Gen 6 chassis are supported in Fabric OS 8.1.0. – Brocade G620 – Brocade X6-4 – Brocade X6-8

Port swap limitations The following limitations apply to swapping ports or blades using CLI commands or Brocade Network Advisor options. Note that some of these constraints apply to logical switches in general, and are not necessarily limited to switches enabled for FMS mode. • A port can be swapped with only one other port at a time. • Ports cannot be swapped if one of the ports has a value of 0xFE or 0xFF in the Fibre Channel Port ID (FC ID) field. • The logical switch addressing mode cannot be changed if the logical switch contains swapped ports. • Logical switch configuration (LSCFG) operations cannot operate on swapped ports. • You cannot swap ports that are in two different logical switches. • Swapped ports cannot be moved out of a logical switch. • The portaddress - -bind command is not allowed on swapped ports. • The wwnaddress - -bind command is not recommended on swapped ports.

Mode register bit settings A mode register controls the behavior of the switch with respect to CUP itself, and with respect to the behavior of other management interfaces. The FICON CUP mode register bits are described in the table below.

TABLE 8 FICON CUP mode register bits ACP Alternate control prohibited. Because the Fabric OS CLI, Web Tools, and Brocade Network Advisor are considered to be switch consoles, this bit has no effect on their operations. Attempts to set CUP parameters through SNMP are denied when this bit is set on. The default setting is 1 (on).

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 61 Mode register bit settings

TABLE 8 FICON CUP mode register bits (continued) ASM Active=Saved mode. When this bit is set on, all CUP configuration parameters are persistent, meaning that they will be saved in nonvolatile storage in the IPL file that is applied upon a cold reboot or a power cycle. The default setting is 1 (on). DCAM Switch clock alert mode. When this bit is set on, a warning is issued when the date, tsClockServer, or tsTimeZone commands are entered to set the time and date on the switch. The default setting is 0 (off). HCP Host control prohibited. When this bit is set on, the host is not allowed to set CUP parameters. The default setting is 0 (off). POSC Programmed offline state control. If the bit is set (=1), the command from the host sets the switch offline. If the bit is off (=0), the command from the host is rejected and the switch does not go offline. The default setting is 1 (on). UAM User alert mode. When this bit is set on, a warning is issued when an action is attempted that will write CUP parameters on the switch; for example, changing the block/unblock state of a port, the portname, or a PDCM by means of the out of band interfaces. This bit can only be modified in-band by the host. The default setting is 0 (off).

When the POSC bit=1, the FICON host is allowed to set the switch offline. The bit is set to 1 by default. If you do not want to allow the host to have permission to set the switch offline, the bit should be turned off. The state of this bit cannot be changed by the FICON host; it can only be changed through the command line. The ficonCupShow modereg command displays the mode register bit settings for the switch. A display of 0 indicates that the mode register bit is set to off; 1 indicates that the bit is set to on. To display the mode register bit HCP for the switch, enter the command as shown in the following example:

switch:admin> ficoncupshow modereg HCP

For more information on this command and an example of command output, refer to the Brocade Fabric OS Command Reference.

FICON file access facility The FICON file access facility (FAF) stores configuration files. This includes the initial program load (IPL) and other configuration files. Fabric OS saves the IPL and all other configuration files on the switch. The FAF supports a maximum of 16 configuration files, including the IPL file. You can upload the configuration files saved on the switch to a management workstation using the configUpload command. For more information on the configUpload process, refer to the configuration file backup section in the Brocade Fabric OS Administration Guide.

Configuration files uploaded When you execute the configUpload command, all the files saved in the file access facility are uploaded to a management workstation. There is a section in the uploaded configuration file labeled [FICU SAVED FILES] where the files are stored in an encoded format.

Configuration files downloaded with Active=Saved mode enabled When the Active=Saved mode register bit is set to on, the contents of existing files saved on the switch, also present in the FICON_CUP section of the configuration file, are overwritten.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 62 53-1004394-02 Mode register bit settings

The files in the [FICU SAVED FILES] section of the configuration file, which are not currently on the switch, are saved on the switch. The IPL file is not replaced because Active=Saved mode is enabled. A warning message is displayed in the event log to warn users that the IPL will not be overwritten.

Configuration files downloaded with Active=Saved mode disabled The contents of existing files saved on the switch, which are also present in the [FICU SAVED FILES] section, are overwritten. When the Active=Saved mode register bit is set to off, the contents of existing files saved on the switch, also present in the [FICU SAVED FILES] section of the configuration file, are overwritten. The IPL is replaced because Active=Saved mode is disabled.

Sample IOCP configuration file The channel subsystem controls communication between a configured channel, the control unit, and the device. The I/O Configuration Data Set (IOCDS) defines the channels, control units, and devices to the designated logical partitions (LPARs) within the server; this is generated using the Input/Output Configuration Program (IOCP). The IOCP statements are typically built using the hardware configuration definition (HCD). The interactive dialog is used to generate the Input/Output Definition File (IODF), invoke the IOCP, and subsequently build the production IOCDS.

Each FICON switch in a fabric must have a unique domain ID and a unique switch ID. The switch ID used in the IOCP definitions can be any value between x00 to xFF. The domain ID range for switches is hex x01 to xEF or decimal 1 to 239. When defining the switch IDs in the IOCP definitions, ensure that you use values within the FICON switch’s range. The switch ID must be assigned by the user and must be unique within the scope of the definitions (IOCP and HCD). The domain ID is assigned by the manufacturer and can be customized to a different value. It must be unique within the fabric. Brocade recommends that the switch ID (IOCP or HCD) be set to the same value as the domain ID of the FICON switch, which is defined to the switch at installation time. This simplifies the configuration and reduces confusion by having a common designation across all definitions. For more information on switch numbering, refer to the IBM Redbook FICON® Planning and Implementation Guide (SG24-6497-03). In the following sample IOCP configuration file, the UNIT value for FICON CUP definitions is 2032 for any FICON switch regardless of vendor or platform. All Brocade switches require UNIT=2032 for the CUP definition. All domain IDs are specified in hex values in the IOCP (and not in decimal values).

*------* Brocade Domain_ID=0x3c0000 *------CNTLUNIT CUNUMBR=0D8,UNITADD=00,UNIT=2032, PATH=(50,51), LINK=(60FE,60FE) IODEVICE ADDRESS=(0D8,1),CUNUMBR=0D8,UNIT=2032,STADET=Y,UNITADD=00 *------CNTLUNIT CUNUMBR=0D9,UNITADD=00,UNIT=2032, PATH=(8A,8B), LINK=(22FE,22FE) IODEVICE ADDRESS=(0D9,1),CUNUMBR=0D9,UNIT=2032,STADET=Y,UNITADD=00 *------* Brocade Domain_ID=0x190000 *------* CNTLUNIT CUNUMBR=0DB,UNITADD=00,UNIT=2032, PATH=(5A,5B), LINK=(25FE,25FE) IODEVICE ADDRESS=(0DB,1),CUNUMBR=0DB,UNIT=2032,STADET=Y,UNITADD=00

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 63 Setting the MIHPTO value

* *------

Considerations for setting mode register bits Consider the following when changing mode register bits: • The UAM bit can only be set by host programming. • All mode register bits except UAM are saved across power cycles; the UAM bit is reset to 0 following a power-on. • Mode register bits can be changed when the switch is offline or online. If the ACP or HCP bits are changed when the switch is online, they will take effect any time between the completion of the current command and the end of the CCW command chain (or the next alternate manager operation).

Setting the mode register bits Perform the following steps to set mode register bits: 1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter the ficonCupSet modereg command to set the FICON CUP mode register bits for the local switch. Example of setting the mode register bit HCP to off

switch:admin> ficoncupset modereg HCP 0

Example of setting the mode register bit ACP to on

switch:admin> ficoncupset modereg ACP 1

Setting the MIHPTO value The missing interrupt handler primary timeout (MIHPTO) value determines how long the channel will wait before timing out an expected response from the CUP. This value is part of the data returned to the host when it reads the configuration data, but the host is under no obligation to adhere to this value. The actual value that the host will use before detecting a timeout can be set by the system programmer (overriding the value returned by the switch). Use the ficonCupSet MIHPTO command to increase, decrease, or display the MIHPTO value that the CUP returns to the host when configuration data is read. Changing the MIHPTO value requires that the CUP control device be varied offline from the host, as the host will not automatically be notified when the value is changed. The host will normally read the new value using the Read Configuration Data command when the CUP is varied back online. The MIHPTO setting will persist across switch reboots, power on reset (POR), and failovers. Setting this value to the upper end of the time range will allow the CUP more time to process requests during intervals of peak usage, without causing the host to detect timeouts. It is recommended that the value be set to 180 seconds (default). Complete the following steps to set the MIHPTO value. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter the ficonCupSet MIHPTO command and set the value from 15 through 600.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 64 53-1004394-02 Persistently enabling and disabling ports for CUP

Persistently enabling and disabling ports for CUP When FMS mode is enabled, you cannot use the portCfgPersistentEnable and portCfgPersistentDisable commands to persistently enable and disable ports. Instead, use the following procedure. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Enter the ficonCupShow modereg command to display the mode register bit settings. 3. Verify that the ASM bit is set on (1). 4. If the ASM bit is set off (0), enter the ficonCupSet modereg asm 1 command to set the bit to on. For more information on this command and an example of command output, refer to the Brocade Fabric OS Command Reference. 5. Use the portEnable and portDisable commands to enable and disable ports as necessary. The ports remain enabled or disabled after a switch reboot.

switch:admin> portenable 1/1

Refer to Disabling and enabling ports - persistent states on page 47 for more information on enabling and disabling ports and persistent states.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 65 Brocade Fabric OS FICON Configuration Guide, 8.1.0 66 53-1004394-02 Administering FICON Extension Services

• Platforms supporting FICON extension over IP...... 67 • FICON emulation overview...... 67 • FCIP configuration requirements for FICON extension...... 72 • Configuration requirements for switches and directors...... 72 • Configuring FICON emulation...... 73 • Modifying FICON emulation...... 75 • Displaying FICON emulation performance statistics...... 75

Platforms supporting FICON extension over IP In Fabric OS 8.1.0, FICON extension over IP is supported on the following platforms: • Brocade 7840 Extension Switch. – The Brocade 7840 switch has 24 physical Fibre Channel ports, two 40 GbE ports, and 16 1/10 GbE ports. • Brocade DCX 8510-4 with FX8-24 extension blade • Brocade DCX 8510-8 with FX8-24 extension blade – The FX8-24 blade has 12 Fibre Channel ports, ten 1 GbE ports, and two 10 GbE ports. • Brocade X6-4 with SX6 blade • Brocade X6-8 with SX6 blade – The SX6 blade has 16 FC ports, two 40G GbE ports, and 16 1/10 GbE ports.

FICON emulation overview FICON emulation supports FICON traffic over IP WANs using FCIP as the underlying protocol. FICON emulation can be extended to support performance enhancements for specific applications through use of the following licensed features: • IBM z/OS Global Mirror emulation (formerly eXtended Remote Copy or XRC) • FICON tape emulation (tape read and write pipelining) Brocade extension products use the following licenses: • Advanced Accelerator for FICON (FTR_AFA) Allows interoperability for the following features and products: – Write and read tape pipelining – Teradata emulation – IBM z/OS Global Mirror emulation This license contains the following options: – Capacity 1 – Consumed 1 – Configured Blade Slots 1 This is a slot-based license for extension switches and blades. • Advanced Extension (FTR_AE)

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 67 FICON emulation overview

Required for multiple-circuit tunnels, FCIP Trunking, Adaptive Rate Limiting, and other FCIP features. Advanced Extension is not required for FICON Acceleration features, but multiple circuits could be used in a FICON emulation environment. This is a slot-based license for extension switches and blades. This license contains the following options: – Capacity 1 – Consumed 1 – Configured Blade Slots 1

ATTENTION Use the licenseShow command to verify the licenses are installed on the hardware at both ends of the FCIP tunnel. For slot- based licenses, use the licenseSlotCfg --show command to display all slot-based licenses in a chassis.

For more information on licensing, such as licensing required per product, refer to the Fabric OS Software Licensing Guide.

IBM z/OS Global Mirror emulation The IBM z/OS Global Mirror (formerly eXtended Remote Copy or XRC) application is is an IBM zSystems mainframe application that implements host-based asynchronous disk mirroring, as supported by the disk hardware architecture and a host software component called the System Data Mover (SDM). Within this application, a specific application channel program invokes a well-constrained type of channel program called a Read Record Set (RRS) channel program. This channel program is used to read only updates to disk volumes (record sets) after they have been brought into synchronization with the aim of writing only record updates to a mirrored volume. The RRS channel program accesses primary volumes from a remote host for the purpose of reading these record sets (updates) supported by IBM z/OS Global Mirror emulation. The Brocade emulation feature thus allows the primary volume to be located at a distance from its mirrored secondary without encountering performance degradation associated with IU pacing.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 68 53-1004394-02 FICON emulation overview

FIGURE 17 IBM z/OS Global Mirror emulation

The figure above shows how the primary volume and the secondary mirrored volume may be geographically distant across an IP WAN. Updates to the primary disk volumes are completed by the production applications and then staged in a control unit cache to be read by SDM. SDM then writes the updates to the secondary volumes. The latency introduced by greater distance creates delays in anticipated responses to certain commands. The FICON IU pacing mechanism may interpret delays as an indication of a large data transfer that could monopolize a shared resource and react by throttling the I/O. IBM z/OS Global Mirror emulation provides local responses to remote hosts, eliminating distance-related delays. You can use the Brocade 7840 switch, the FX8-24 blade, or the SX6 blade with FICON emulation. For information on configuring IBM z/OS Global Mirror emulation, refer to Configuring FICON emulation on page 73. For information on displaying IBM z/OS Global Mirror emulation status and statistics, refer to Displaying FICON emulation performance statistics on page 75. For z/OS Global Mirror implementations with cascaded FICON, it is recommended that device based routing (DBR) be used for the routing policy on the ISLs instead of PBR.

FICON Emulation features operate in DBR or PBR mode. FICON emulation can tolerate EBR, but WAN consumption is not affected for FICON flows with EBR enabled. Exchange-based routing, which IBM calls FICON Dynamic Routing (FIDR), is only qualified on the IBM z13-class (and higher) platforms. If you are running IBM z13 fabrics with FDIR, you must isolate those fabrics from the earlier IBM platforms in your fabric. The earlier IBM platforms only use port-based or device-based routing. It is recommended that the z13 be connected to a Brocade Gen 5 or Gen 6 switch through the use of FICON Express 16S channels and for the disk storage to utilize 16G control unit adapters. IBM Health Checker for z/OS is designed to detect and advise the user if any down-level hardware or drivers are operating in the system. Using logical switches is one approach for providing this isolation.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 69 FICON emulation overview

Tape emulation Tape emulation (also called tape pipelining) refers to the concept of maintaining a series of I/O operations across a host-WAN-device environment and should not be confused with the normal FICON streaming of CCWs and data in a single command chain. Normally, tape access methods can be expected to read data sequentially until they reach the end-of-file delimiters (tape marks) or to write data sequentially until either the data set is closed or an end-of-tape condition occurs (multi-volume file). The emulation design strategy attempts to optimize performance for sequential reads and writes, while accommodating any other nonconforming conditions in a lower performance non-emulating frame shuttle. Because write operations can be expected to comprise the larger percentage of I/O operations for tape devices (for archival purposes), they are addressed first. For information on configuring tape emulation, refer to Configuring FICON emulation on page 73. For information on displaying tape emulation status and statistics, refer to Displaying FICON emulation performance statistics on page 75.

Tape Write Pipelining FICON Tape Write Pipelining improves performance for a variety of applications when writing to tape over extended distances. FICON Tape Write Pipelining locally acknowledges write data records, enabling the host to generate more records while previous records are in transit across the IP WAN. If an exception status is received from the device, the writing of data and emulation is terminated.

FIGURE 18 Tape Write Pipelining

Brocade Fabric OS FICON Configuration Guide, 8.1.0 70 53-1004394-02 FICON emulation overview

Tape Read Pipelining FICON Tape Read Pipelining improves performance for certain applications when reading from FICON tape over extended distances. FICON Tape Read Pipelining reads data on the tape directly from the tape device. Reading of the tape continues until a threshold is reached. The buffered data is forwarded to the host in response to requests from the host. When the host sends the status accept frame indicating that the data was delivered, the read processing on the device side credits the pipeline and requests more data from the tape. If an exception status is received from the device, the reading of data and emulation is terminated.

FIGURE 19 Tape Read Pipelining

FICON and ESCON conversion support Brocade extension switches and blades can operate with the Prizm FICON to ESCON converter and ESBT Bus/Tag Interface Module for Prizm from Optica Technologies, Inc. This allows FICON tape emulation when connecting to ESCON and to bus and tag devices including 3480, 3490, and 3590 controllers. Discovery of these devices is automatic when FICON emulation is enabled on an FCIP tunnel.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 71 FCIP configuration requirements for FICON extension

Teradata emulation Teradata emulation reduces latency on links to Teradata Warehouse systems caused by WAN propagation delays and bandwidth restrictions. It accomplishes this by processing selected FICON commands for associated control, data, and status responses. FICON Teradata emulation is only supported between FICON channels and FICON Teradata controllers. For write commands, control and status frames are generated for the host side of the WAN in order to pipeline write commands over the same or multiple exchanges. Such pipelined write commands and their data are queued at the device side of the WAN for asynchronous transfer to the device. For read operations received by the device side of the WAN, a number of anticipatory read commands are autonomously generated and transferred to the device. The data and status associated with such commands are sent to the host side of the WAN and queued in anticipation of host-generated read commands. FICON emulation for Teradata sequences over an FCIP tunnel is controlled by using FICON emulation feature flags in the PortCfg fciptunnel command associated with the FCIP tunnel. For information on configuring Teradata emulation or tape emulation, refer to Configuring FICON emulation on page 73. For information on displaying Teradata emulation status and statistics, refer to Displaying FICON emulation performance statistics on page 75.

FCIP configuration requirements for FICON extension FICON extension uses FCIP for transport. FCIP interfaces and tunnels used for FICON extension must be defined prior to configuring FICON emulation. Ports should remain persistently disabled until after FICON emulation is configured. Refer to the Brocade Fabric OS Extension Configuration Guide for information about configuring FCIP interfaces, tunnels, and circuits.

Configuration requirements for switches and directors Consider these configuration issues when an extension switch or blade is connected to a switch or director in a FICON configuration: • If you are creating a cascaded configuration (connecting two switches or directors with different domain IDs), be aware of IBM requirements for high integrity fabrics. • In configurations with ISLs, ensure that ISL paths are properly configured to meet FICON emulation requirements for a determinate path for FICON commands and responses. • FICON networks with FCIP emulating and non-emulating tunnels do not support Exchange Based Routing (aptpolicy 3) configurations. • When running FICON emulation features over an FCIP tunnel, it is highly recommended that both switches providing the FCIP tunnel use the same Fabric OS release level.

High-integrity fabric requirements for cascaded configurations You can use extended FICON connections between or through Brocade extension switches or blades to create a cascaded FICON switched configuration. The fabric must be set up to provide a secure, or high integrity, fabric to enable this configuration to operate in an IBM environment. Refer to Meeting high-integrity fabric requirements on page 35 for an explanation of these requirements.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 72 53-1004394-02 Configuring FICON emulation

FICON emulation requirement for a determinate path FICON emulation processing creates FICON commands and responses on extended CHPIDs, and intercepts all exchanges between a channel and a CU. For FICON emulation processing to function correctly, all the exchanges between a channel and a CU must take a single tunnel path. There are two ways to ensure a determinate path for FICON commands and responses: • Define only one FCIP tunnel between sites. • When multiple FICON emulation FCIP tunnels are required between a pair of chassis, define a new logical switch pair (one logical switch in each chassis) for each tunnel. The logical switches and the FCIP tunnel in those logical switches will provide a determinant path for all FICON sequences between the host and device ports in that logical switch pair. • When it is not possible to create logical switches, use Traffic Isolation Zones (TI Zones) to define the host and device ports that traverse each required FCIP tunnel.

FCIP tunnel between sites Brocade extension switches and blades use FCIP trunking features to overcome the limitation of one Ethernet interface, one IP address, and one FCIP tunnel. In Fabric OS v6.3 and later, an FCIP tunnel is created with multiple FCIP circuits over different IP interfaces to provide WAN load balancing and failover recovery in the event of a limited WAN outage. This provides a highly redundant WAN configuration for all FICON or FCP emulation technologies with Fabric OS. The figure below shows that a tunnel can have up to four circuits per GbE port.

FIGURE 20 FCIP tunnel and circuits

Configuring FICON emulation Before you configure FICON emulation, you need to understand the available options, and whether those options are to be implemented in your installation. If FICON emulation is new to you, refer to FICON emulation overview on page 67.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 73 Configuring FICON emulation

ATTENTION Make sure both ends of the tunnel match before bringing it up or the tunnel will not form.

1. Verify that the following ports are opened in the IP network for FCIP: • TCP 3225--FC Class F frames • TCP 3226--FC Class 2 and 3 frames • TCP 3227--Brocade proprietary IP path performance utility (ipPerf) • IP protocol 6--Transmission Control Protocol • IP protocol 108--IP Payload Compression Protocol (IPComp) 2. Verify that the firmware is Fabric OS v6.1.0e or later using the firmwareShow command. 3. Verify the correct licenses are installed using the licenseShow command. You can verify all slot-based licenses in a chassis using the licenseSlotCfg --show command. 4. Verify the switches have been set up according to the instructions in Configuring switched point-to-point FICON on page 39 and Configuring cascaded FICON on page 44. 5. Configure the FCIP tunnel according to the Brocade Fabric OS Extension Configuration Guide. 6. Enable compression on the FCIP tunnel. 7. Configure FICON emulation on the tunnel that is solution-specific. Refer to Configuration examples on page 74. 8. If you have more than one tunnel being configured, take the following actions: • If there is more then one tunnel to the same destination and their tunnel commit rates are different, configure the link cost values the same. • Configure TI Zones ensuring that if there are multiple E_Ports of different link costs, from one switch to another switch within TI Zones, configure the link cost values to be the same.

Configuration examples You can configure FICON emulation with such features as Teradata read, Teradata write, tape write pipelining, tape read pipelining, TIN/ TIR, device level ACK, and IBM z/OS Global Mirror (formerly XRC) emulation enabled. Following are examples for enabling IBM z/OS Global Mirror, Teradata emulation, tape read and write pipelining.

portcfg fciptunnel 23 modify --ficon-xrc 1 portcfg fciptunnel 23 modify --ficon-tera-read 1 1 --ficon-tera-write 1 portcfg fciptunnel 23 modify --ficon-tape-write 1 --ficon-tape-read 1

Note that the preceding commands assume that an FCIP tunnel was a enabled for FICON operation by using the -F or --ficon option. Following are two examples: • To create a empty tunnel as a FICON FCIP tunnel, use the following command:

portcfg fciptunnel 1/17 create -F -c 1

• To modify a tunnel to be FICON enabled and with hardware compression enabled, use the following command:

portcfg fciptunnel 1/17 modify -c 1 -F 1

Displaying FICON emulation configuration values For Brocade extension switches or blades, use the portShow fciptunnel command to display FICON configuration values. Command output shows which emulation features are enabled or disabled and displays related emulation parameters for each tunnel.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 74 53-1004394-02 Displaying FICON emulation performance statistics

For more information, refer to Displaying FICON emulation performance statistics on page 75.

Modifying FICON emulation FICON emulation can be enabled on a per-FCIP tunnel basis. For Brocade extension switches and blades, use the portCfg fciptunnel command to make modifications to the FICON emulation feature. For details on command usage, refer to the Brocade Fabric OS Command Reference.

ATTENTION You must bring the FCIP tunnel down in order to make changes. The following process is disruptive to all traffic on the tunnel.

1. Connect to the switches at both ends of the FCIP tunnel and log in using an account assigned to the admin role. 2. Disable the FCIP tunnel at both ends where FICON emulation is enabled. 3. Use the portCfg fciptunnel modify command for the Brocade extension switches and blades. 4. Make matching FICON emulation changes to both ends of the tunnel. 5. Enable the FCIP tunnel.

Displaying FICON emulation performance statistics You can use the portShow command to view performance statistics and monitor the behavior of FICON emulation. You do not need to disable any FICON emulation feature to display statistics. 1. Connect to the switch and log in using an account assigned to the admin role. 2. Use the portShow xtun command to display the statistics for the Brocade extension switches and blades. Refer to FICON emulation monitoring on page 75, Options for displaying statistics on page 77, and the Brocade Fabric OS Command Reference for information on command formats that you can use to display various FICON statistics.

FICON emulation monitoring Use the -emul option for the portShow xtun command to display FICON emulation statistics. The syntax for this command is portshow xtun [slot/]ve_port -ficon -emul. The -emul option displays statistics and status for Teradata, tape, and IBM z/OS Global Mirror emulation. IBM z/OS Global Mirror emulation (formerly eXtended Remote Copy or XRC) and tape statistics are presented differently in output formats for the -emul option. The following elements are common to both tape and IBM z/OS Global Mirror emulation outputs (refer to Emulation statistics examples on page 76 for an illustration of actual tape and XRC emulation statistics output). FDCB Ptr A pointer to the FICON Device Control Block. Support personnel may use this pointer. Path The device path, in the format VE-HD-HP-DD-DP-LP-CU-DV: where • VE is the internal VE_Port number. • HD is the hex value for the Host Domain (the entry domain for this host port into the fabric). • HP is the hex value for the Host Port (the entry port of this host connection into the fabric). • DD is the hex value for the Device Domain (the entry domain for this device into the fabric). • DP is the hex value for the Device Port (the entry port for this device connection into the fabric). • LP is the Logical Partition (LPAR) value for the host accessing the specific device.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 75 Displaying FICON emulation performance statistics

• CU is the Control Unit number (CUADDR) for the specific FICON connection. • DV is the Device Number of this FICON connected device. For example, the value 2463016406050001 breaks down as follows.

VE HD HP DD DP LP CU DV 24 63 01 64 06 05 00 01 State A value of zero indicates emulation is idle. Any non-zero value indicates emulation is active.

Emulation statistics examples The following is a tape statistics output example for the Brocade 7840 extension switch. admin:switch> portshow xtun 17 -ficon -emultape TAPE EMULATION STATS +------+------+-+-----+----+----+----+------+------+------+------+--+ | FDCB Ptr | Path |H|State|Emul|Emul|Rtry| Emulated |Emulated |RdAvg |Emulated |WtAvg | | (0x) | (0x) |D| |Pipe|Q'd | Qd | Tape Ops |Read CCWs | Size|Write CCWs|Size| +------+------+-+-----+----+----+----+------+------+------+------+--+ |0x04100F4000|1163016401060400|H| 0x3C|0x10|0060|0000| 137053| 7808| 32760| 369837|32762| |0x04100F4400|1163016401060401|H| 0x3C|0x12|006C|0000| 34126| 4947| 32760| 255851|32760| |0x041013BC00|1163016401060402|H| 0x00| N/A|0000|0000| 32981| 0| 0| 251591|32760| |0x0410139C00|1163016401060403|H| 0x3C|0x12|006C|0000| 36760| 23040| 32760| 260178|32760| |0x04100F4880|1163016401060404|H| 0x3C|0x10|0060|0000| 35077| 9612| 32760| 257835|32760| |0x0410077100|1163016401060405|H| 0x3C|0x10|0060|0000| 34849| 1925| 32760| 265122|32760| |0x041012DC00|1163016401060406|H| 0x3C|0x12|006C|0000| 36587| 15176| 32760| 269822|32760| |0x04100D1980|1163016401060407|H| 0x3C|0x12|006C|0000| 33455| 20584| 32760| 237519|32760| |0x0410109980|1163016401060408|H| 0x00| N/A|0000|0000| 133494| 101103| 32767| 245794|32760| |0x041010B980|1163016401060409|H| 0x00| N/A|0000|0000| 32023| 0| 0| 243572|32760| |0x041011C500|116301640106040A|H| 0x00| N/A|0000|0000| 34516| 0| 0| 262878|32760| |0x04100A9700|116301640106040B|H| 0x3C|0x12|006C|0000| 33834| 19329| 32760| 240347|32760| |0x04100F0000|116301640106040C|H| 0x3C|0x12|006C|0000| 34537| 12385| 32760| 253620|32760| |0x0410049980|116301640106040D|H| 0x00| N/A|0000|0000| 34764| 0| 0| 266346|32760| |0x04100FA500|116301640106040E|H| 0x3C|0x12|006C|0000| 23636| 16742| 32760| 183126|32760| |0x041008F280|116301640106040F|H| 0x00| N/A|0000|0000| 32598| 0| 0| 248620|32760| |0x04100FA000|1163016401060506|H| 0x00| N/A|0000|0000| 13684| 0| 0| 90210|32760| |0x0410118500|1163016401060507|H| 0x00| N/A|0000|0000| 101108| 0| 0| 01108|32768| |0x04100ED500|116301640106050B|H| 0x00| N/A|0000|0000| 101109| 101109| 32767| 0| 0| +------+------+-+-----+----+----+----+------+------+------+------+---

The following is an IBM z/OS Global Mirror output example. root> portshow xtun 17 -ficon -emulxrc XRC EMULATION STATS +------+------+-+-----+----+----+----+----+------+---+------+------+--+ | FDCB Ptr | Path |H|State|Cmds| Cmd|Data|Data| Emulated |Avg| RRS| RRS | Large| | (0x) | (0x) |D| | Qd | Max| Qd |Max | RRS Ops |RRS| TLF| Read|Chains| +------+------+-+-----+----+----+----+----+------+---+------+------+--+ |0x04100D8880|1163006400060023|H| 0x00|0000|000F|0000|0002| 1| 1| 58864| 40| 0| |0x04100DA880|116300640006002B|H| 0x00|0000|000F|0000|0002| 1| 1| 58864| 40| 0| |0x041008FB00|1163006400060033|H| 0x00|0000|0003|0000|0001| 1| 1| 58864| 40| 0| |0x04100ED980|116300640006003B|H| 0x00|0000|0003|0000|0001| 1| 1| 58864| 40| 0| |0x04100DD100|1163006400060043|H| 0x00|0000|0003|0000|0001| 1| 1| 58864| 40| 0| |0x04100E2000|1163006400060047|H| 0x00|0000|0003|0000|0001| 1| 1| 58864| 40| 0| |0x04100E7100|1163006400060057|H| 0x00|0000|0003|0000|0001| 1| 1| 58864| 40| 0| |0x04100ECC80|116300640006005F|H| 0x00|0000|0003|0000|0001| 1| 1| 58864| 40| 0| +------+------+-+-----+----+----+----+----+------+---+------+------+--+

Brocade Fabric OS FICON Configuration Guide, 8.1.0 76 53-1004394-02 Displaying FICON emulation performance statistics

Options for displaying statistics Use the portshow xtun [slot/]ve_port -ficon -stats command to display status, performance statistics, and other statistics for tape, Teradata, and IBM z/OS Global Mirror on Brocade extension switches and blades. Refer to the table below for a description of command formats to achieve various outputs.

TABLE 9 FICON emulation statistics commands Command Output display portshow xtun slot/ve_port ve_port -ficon -emul Statistics and status for Teradata, tape and IBM z/OS Global Mirror (XRC) emulation. portshow xtun slot/ve_port -ficon -emulxrc FICON IBM z/OS Global Mirror emulation statistics and status. portshow xtun slot/ve_port -ficon -emultape FICON tape emulation statistics and status. portshow xtun slot/ve_port -ficon -emultera FICON Teradata emulation statistics and status. portshow xtun slot/ve_port -ficon -stats General statistics, including those for Teradata, XRC, tape emulation, and FICON idle status acceptance. portshow xtun slot/ve_port -ficon -fdcb control block Teradata, tape or IBM z/OS Global Mirror emulation statistics, including the device extension of the FDCB for a specified Device Control Block. portshow xtun ve_port ficon -teraperf Teradata performance statistics. portshow xtun ve_port -ficon -tapeperf FICON tape pipelining performance statistics. portshow xtun ve_port -ficon -xrcperf IBM z/OS Global Mirror performance statistics.

Refer to the portShow command section of the Brocade Fabric OS Command Reference for more information on these commands.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 77 Brocade Fabric OS FICON Configuration Guide, 8.1.0 78 53-1004394-02 Maintaining and Troubleshooting FICON

• Firmware management in a FICON environment...... 79 • Configuration restoration in a FICON environment...... 80 • Traffic Isolation Zoning...... 81 • Monitoring and Alerting Policy Suite...... 88 • Port fencing...... 88 • FICON information...... 89 • Swapping port area IDs...... 92 • Blade swapping...... 92 • Common FICON issues...... 93 • Troubleshooting FICON...... 95 • Troubleshooting FICON CUP...... 97 • Troubleshooting NPIV...... 98

Firmware management in a FICON environment You can use either the CLI or Brocade Network Advisor to upgrade or downgrade your Fabric OS. Registered users can log in on the Brocade website at http://www.brocade.com and follow the links for downloads to access firmware. Firmware is downloaded in a .gz or .zip file. Brocade Network Advisor contains built-in intelligence that unbundles the necessary files, making it unnecessary to unbundle a package. With Web Tools or the CLI, it is necessary to decompress or extract the files from the package first. For more information, refer to the firmware download process overview in the Brocade Fabric OS Administration Guide.

Upgrade and downgrade considerations Consider the following when upgrading and downgrading firmware: • Concurrent upgrades are generally supported from one major release level to the next, for example, Fabric OS v7.0.0 to v7.3.0. As a precaution, always read the appropriate section in the Brocade Fabric OS Release Notes before upgrading or downgrading firmware. • Firmware may need to be upgraded in multiple steps. Consult the Release Notes for details. • When downgrading firmware, turn off and disable all features not supported in the final release. For more information on the firmware download process and considerations for FICON CUP environments, refer to the firmware download process overview section of the Brocade Fabric OS Administration Guide.

Firmware download disruption

NOTE Extension HCL supports serial upgrades. Recommended practice is to perform firmware upgrades on switches at the local site, followed by upgrades on the switches at the remote site.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 79 Configuration restoration in a FICON environment

Downloading new firmware is not a disruptive process except for the following cases: • During the firmware download process, a failover to the backup processor occurs. Any outstanding CUP commands are lost which results in a timeout. To avoid this, CUP should be varied offline before starting a firmware download. The CUP may be varied back online after a successful firmware download. • All firmware downloads cause an I/O disruption when the new code is activated on the Brocade 7800 switch and FX8-24 blade. The 7800 is not supported in Fabric OS 8.1.0 and later. • The Brocade 7840 switch supports the Extension Hot Code Load (Extension HCL) feature, which allows firmware downloads without I/O disruption. • The Brocade X6-4 and X6-8 chassis with the SX6 blade installed support the Extension HCL feature.

NOTE When using hybrid mode for FCIP and IP Extension traffic in Fabric OS releases prior to Fabric OS 8.1.0, Extension HCL is disruptive to any IP Extension traffic. Extension HCL is non-disruptive to FCIP traffic.

Non-disruptive firmware upload and download All systems maintain a primary and a secondary partition of nonvolatile storage areas. The following overview of the firmware download process illustrates the use of the two partitions: 1. The firmware is downloaded to the secondary partition. 2. The current secondary and primary partitions are swapped. 3. The CP then reboots. In dual-CP systems (Brocade DCX 8510 FICON directors and Brocade X6 FICON directors), the backup CP is rebooted with the new firmware and the HA failover is automatically invoked. 4. Once rebooted, the primary code image is copied to the secondary.

Considerations for fixed-port switches Unlike director-class products, fixed-port switches have only one control processor (CP) so they behave differently during Fabric OS hot code upgrades. This can impact FICON operations if best practices are not followed. During the code upload process, there is a period of time when the CP is busy rebooting the operating system and re-initializing Fabric OS, and CP is not available to respond to CPU-targeted queries or frames. For dual-CP products, this "busy" time is a couple of seconds (the time it takes for mastership to change), and is non-disruptive. For single-CP fixed-port switches, however, the "busy" period can last a minute or two. During this time, data traffic continues to flow uninterrupted, unless a response from the CP is required. If a response from the CP is required, for path and device validation for instance, Interface Control Checks (IFCCs) are possible. Any IFCCs should be recovered automatically by the IBM z Systems host, with no required user action. This does not mean that switches are not appropriate for FICON. Fully qualified FICON switch deployments will continue to be sold and supported. It is important to follow the best practices of performing the firmware upgrade during scheduled maintenance windows when traffic is minimized, IFCCs can be tolerated, and the CUP is varied offline.

Configuration restoration in a FICON environment The following table describes the behavior of the configUpload and configDownload commands and IPL file function when the ASM bit is set on or off. In general, if the switch is operating in a FICON CUP environment and the ASM (Active=Saved) bit is set on, then the switch ignores the IPL file downloaded when you restore a configuration.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 80 53-1004394-02 Traffic Isolation Zoning

TABLE 10 Backup and restore in a FICON CUP environment ASM bit Command Description on or off configUpload All the files saved in the file access facility are uploaded to the management workstation. A section in the uploaded configuration file labeled FICON_CUP is in an encoded format. on configDownload Files saved on the switch that are also present in the FICON_CUP section of the configuration file are overwritten. Files in the FICON section of the configuration file that are not currently present on the switch are saved. off configDownload Files saved on the switch that are also present in the FICON_CUP section of the configuration file are overwritten. Files in the FICON section of the configuration file that are not currently present on the switch are saved. The IPL file is replaced. The Active Configuration is re-established with values that may be different from what is in IPL file.

Traffic Isolation Zoning Traffic Isolation (TI) Zoning allows you to specify dedicated data paths to control traffic flowing from a specific set of source ports (N_Ports). TI Zoning has the following benefits: • Separates direct attached storage device (DASD) and tape traffic. • Selects traffic for diverse ISL routes (typical of dual fiber networks). • In conjunction with long-distance channel extension equipment (FICON Acceleration), guarantees bandwidth for certain mission-critical data. Creating logical switches is preferred over creating TI Zones for FICON emulation configurations. Logical switches can be created easily and they naturally separate disk and tape traffic to different tunnels and network bandwidth. Fabric OS v6.2.0 or later is required for TI Zoning in a FICON fabric. For more information on TI Zoning, refer to the Brocade Fabric OS Administration Guide publication.

NOTE Session-based zoning enforcement is not recommended on a FICON switch. For more information on session-based zoning enforcement, refer to the Brocade Fabric OS Administration Guide.

Determining ports for the TI Zone To determine source ports and paths for specific devices, use the MVS display command. The following example displays paths to device 1002 and where the device is connected:

D M=DEV(1002)

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 81 Traffic Isolation Zoning

Response is:

DEVICE 1002 STATUS=OFFLINE CHP AC AD AE AF ENTRY LINK ADDRESS .. 6715 6808 6679 DEST LINK ADDRESS 66FE 66FE 66FE 66FE \ //CUP has link address = DDFE, where DD= domain ID of switch// PATH ONLINE Y Y Y Y CHP PHYSICALLY ONLINE Y Y Y Y PATH OPERATIONAL Y Y Y Y MANAGED N N N N CU NUMBER 1002 1002 1002 1002 MAXIMUM MANAGED CHPID(S) ALLOWED: 0 DESTINATION CU LOGICAL ADDRESS = 00 SCP CU ND = SLKWRM.DCX.BRD.CA.4FT00X39C19A.0001 SCP TOKEN NED = SLKWRM.DCX.BRD.CA.4FT00X39C19A.0000 SCP DEVICE NED = SLKWRM.DCX.BRD.CA.4FT00X39C19A.0000

Enhanced TI Zoning Enhanced Traffic Isolation Zones allow you to specify a preferred and exclusive path through a cascaded fabric for a particular flow by defining a set of devices or ports to appear in more than one Enhanced TI Zone. A preferred path is one that has failover enabled and an exclusive path has failover disabled . An exclusive path in the following topologies is beneficial as it limits the number of hops between switches: • Triangular • System Data Mover • Emulation Enhanced TI Zoning for the three previously listed topologies is supported on the following platforms running Fabric OS 8.0.1 and later: • Brocade 7840 • Brocade 6510 • Brocade DCX 8510-4 • Brocade DCX 8510-8 • Brocade G620 • Brocade X6-4 • Brocade X6-8 For prior releases of Fabric OS 6.4.0 through Fabric OS 7.4.x, Enhanced TI Zoning is available on the following platforms: • Brocade 5100 • Brocade 5300 • Brocade 7800 • Brocade 7840 • Brocade 6510 • Brocade DCX 8510-4 • Brocade DCX 8510-8 • Brocade DCX • Brocade DCX-4S

Brocade Fabric OS FICON Configuration Guide, 8.1.0 82 53-1004394-02 Traffic Isolation Zoning

Triangular topology The triangular topology shown in the figure below is a common FICON deployment for managing data center recovery functions. In this topology, a switch is located in each of three sites and connected to the other two forming a triangle. In most environments, the purpose of this configuration is to give the host application the ability to connect to storage media at the other two sites, which allows it to recover from an outage at either site. Meanwhile, the storage systems constantly synchronize between the two storage sites.

FIGURE 21 Typical triangular setup

During normal operation, the routes from any device on one switch are a one-hop path to either of the other two switches. However, if the path between any pair of switches fails, then a two-hop path is available.

NOTE In Fabric OS 7.4.0 and later multi-hop paths are certified for FICON configurations.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 83 Traffic Isolation Zoning

To get around the multiple-hop issue, use Enhanced TI Zoning to prohibit the connection between E_Ports on the switches. For this setup you must define a device in two zones with failover disabled. The figure below shows that the setup allows a source device to reach two separate destinations over exclusive, one-hop paths, while preventing the source device from taking the two-hop path in the event of a failure.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 84 53-1004394-02 Traffic Isolation Zoning

FIGURE 22 Triangular topology with Enhanced TI Zones

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 85 Traffic Isolation Zoning

The preceding figure shows the following TI Zone definitions for the triangular topology: • Blue Zone includes the channel, ISL 1, and CU A. • Green Zone includes the channel, ISL 2, and CU B. • Red Zone includes the CU A, ISL 3, and CU B. Using these definitions with failover disabled, the topology achieves the desired behavior. The channel can reach CU A only over ISL 1 and CU B only over ISL 2. If either ISL should fail, connectivity to the destination with the failed ISL is prevented because the exclusive path has failed.

Remote tape vaulting topology The figure below shows a cascaded topology which can be used to support an operations recovery site. In this environment, host and storage systems exist at both sites, which are connected by two switches cascaded together. The storage differs between the sites. In the production site, DASD storage is used to support fast access for production applications. In the backup site, tape storage is used to support archival operations for system restoration.

FIGURE 23 Typical System Data Mover topology

Brocade Fabric OS FICON Configuration Guide, 8.1.0 86 53-1004394-02 Traffic Isolation Zoning

The host in the production site operates the application that reads data from the DASD and writes it to the remote tape. The path to the remote site is required to be isolated to support the bandwidth requirements needed to write the data to the remote tape. The host in the backup site needs access to the DASD in the production site to support a hot recovery scenario in the event the production host goes down. Supporting these two functions requires the ability to define overlapping zones that isolate the tape traffic from the DASD traffic and allow local access to the DASD ports.

FIGURE 24 System Data Mover topology using Enhanced TI Zones

The figure above shows the following Enhanced TI Zone definitions for the topology: • Green Zone includes Host A, ISL 1, and CU B. • Orange Zone includes CU A, ISL 2, and Host B. • Red Zone includes Host A and CU A. • Blue Zone includes Host B and CU B. Using these definitions with failover disabled achieves the desired behavior. The production channels can access the local DASD and use an exclusive path to write data to the remote tape. The remote channels can access the remote tape and use an exclusive path to write data to the production DASD. In both cases, the production tape traffic is excluded from intruding on the backup DASD traffic and vice versa.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 87 Monitoring and Alerting Policy Suite

Monitoring and Alerting Policy Suite The Monitoring and Alerting Policy Suite (MAPS) is an optional (SAN) health monitor supported on all switches running Fabric OS7.2.0 or later. MAPS allows you to enable each switch to constantly monitor itself for potential faults and automatically alerts you to problems before they become costly failures. MAPS tracks a variety of SAN fabric metrics and events. Monitoring fabric-wide events, ports, and environmental parameters enables early fault detection and isolation as well as performance measurements. When using MAPS in a FICON environment, in most cases you should not enable the Slow-Drain Device Quarantining (SDDQ) feature. Refer to the Brocade Monitoring and Alerting Policy Suite Administrator's Guide for more information. MAPS provides the following set of predefined monitoring policies that allow you to immediately use MAPS on activation: • dflt_conservative_policy • dflt_moderate_policy • dflt_aggressive_policy It is recommended that all IBM z Systems customers enable MAPS after upgrading to Fabric OS version supporting MAPS and use the default aggressive policy (dflt_aggressive_policy). This policy contains rules with very strict thresholds. For details on enabling MAPS and monitoring policies, refer to the Brocade Monitoring and Alerting Policy Suite Administrator's Guide.

Port fencing Occasionally, bad optics and cables can cause errors to occur at such a rapid rate that error processing and RSCN transmission and processing results in fabric performance problems. Port fencing allows you to limit the number of errors a port can receive by forcing a port offline when certain error thresholds are met. The port fencing feature is configured through MAPS. For more information on configuring port fencing, refer to the Brocade Monitoring and Alerting Policy Suite Administrator's Guide publication. It is recommended that the port decommissioning/recommissioning feature be used to the maximum extent possible in place of port fencing.

NOTE As of March 2017, IBM will no longer support IO Operations (IOOPS) within Systems Automation v3.6. For additional information, refer to the IBM developerWorks Wikis and search for “Important Announcement to all System Automation for z/OS I/O Operations (IOOps) users,” which will provide details about Port Decommissioning functions and required use.

Defining port fencing The following overview defines port fencing. 1. ( Optional) Clear all alarms. 2. Define threshold levels. 3. Define alarm action.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 88 53-1004394-02 FICON information

4. Activate alarming.

NOTE Establish a Telnet session with a tool such as PuTTy that allows the columns to be increased. This is because some of the displays use more than the standard 80 columns that programs such as HyperTerminal support. The recommended number of columns is 120.

Settings for FICON environments For typical FICON environments, port fencing is usually only set for CRC errors and Invalid Words. The default of 1,000 errors per minute is a little high for CRC errors and Invalid Words. A more common setting is 50 errors per minute. This is high enough to ignore occasional errors and transient errors due to recabling but low enough to stop problematic optics from causing fabric issues. By default, the alarms are set to fence the port, log an alert, send an e-mail message, and set an SNMP trap. In most FICON environments, only fencing the port and logging the alert are desired. The following are the default thresholds: • Low - 0 • High - 1,000 errors per minute

FICON information You can display link incidents, registered listeners, node identification data, and FRU failures, as described in the following sections.

Link incidents The Registered Link Incident Report (RLIR) ELS contains the link incident information sent to a listener N_Port. To display link incidents, connect to the switch, log in as user, and enter one of the following commands: • For the local switch: ficonShow rlir • For all switches defined in the fabric: ficonShow rlir fabric

Identifying ports The ficonShow rlir command displays, among other information, a tag field for the switch port. You can use this tag to identify the port on which a FICON link incident occurred. The tag field contains the port index of the switch port, in hexadecimal format. The following example shows the top portion of command output which shows a link incident for the switch port at domain ID 120, port 93 (785d in hex):

switch:admin> ficonshow rlir

{ {Fmt Type PID Port Incident Count TS Format Time Stamp 0x18 F 785d00 93 1 Time server Thu Apr 22 09:13:32 2004 Port Status: Link not operational Link Failure Type: Loss of signal or synchronization Registered Port WWN Registered Node WWN Flag Node Parameters 50:05:07:64:01:40:16:03 50:05:07:64:00:c1:69:ca 0x10 0x200115 (output truncated)

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 89 FICON information

For complete examples of output from this command, refer to the ficonShow command section of the Brocade Fabric OS Command Reference.

Registered listeners To display registered listeners for link incidents, connect to the switch, log in as user, and enter one of the following commands: • For the local switch: ficonShow lirr • For all switches defined in the fabric: ficonShow lirr fabric For an example of local Link Incident Record Registration (LIRR) database output, refer to the ficonShow command section of the Brocade Fabric OS Command Reference. When you configure an LIRR entry and it is current, it is marked with -C. If the Management Server marks an entry as current based on order, it is marked with -C. If the Management Server marks an entry as secondary, it is marked with -S. Following is an example of output with the -C and -S flags.

Switch Port WWN Listener Type 20:2d:00:60:69:80:1e:4e Conditional-C 20:0d:00:60:69:80:1e:4f Conditional-S

If the LIRR is configured, then the a valid port number displays as shown in the following example.

Current LIRR device port number: 27 (0x1b)

If the LIRR is not configured, the following displays:

Current LIRR device port number is not configured.

Node identification data To display node identification data, connect to the switch, log in as user, and enter one of the following commands: • For the local switch: ficonShow switchrnid • For all switches defined in the fabric: ficonShow switchrnid fabric • For all devices registered with the local switch: ficonShow rnid • For all devices registered with all switches defined in the fabric: ficonShow rnid

FRU error reporting Field Replaceable Unit (FRU) error information, such as FRU failures and fan and power supply removals and insertions, are stored in error reports as sense data. All FRUs in a chassis have an assigned number that is included in this data. Each CUP instance retains a database of ten FRU error reports. All error reports are sent to host LPARs that have appropriate Current Reporting Paths established with the CUP.

Error reports are added to the database as they occur, and then they are removed when sent. If the database fills up, new reports are discarded and not delivered.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 90 53-1004394-02 FICON information

Error data The following examples show error data available from the host. The number identifying the failed Brocade FRU (refer to FRU numbers on page 91) is derived from a single bit from byte 29 as the high order bit and four bits from byte 30 or 31 as the low order bits. Refer to the data in marked with “vv” in the second lines of the following examples and note that “vv” is not part of the actual output. The FRU numbers are decoded for display as the FRU names, which display in the third lines of the following examples.

IOS000I 1065,AB,EQC,**,8200,,,*MASTER*, 200 vv 1000A00000000046700010000000000000000000000000000000000000008000 *IRD000E 1065,002032-001 LEVEL=1 FRU(S)=SLOT8

IOS000I 1065,AB,EQC,**,8200,,,*MASTER*, 286 vv 1000A00000000046700000000000000000000000000000000000000000088000 *IRD000E 1065,002032-001 LEVEL=0 FRU(S)=FAN1

IOS000I 1065,AB,EQC,**,8200,,,*MASTER*, 461 vv 1000A00000000046700000000000000000000000000000000000000000084000 *IRD000E 1065,002032-001 LEVEL=0 FRU(S)=PWR4

IOS000I 1065,AB,EQC,**,8200,,,*MASTER*, 496 vv 1000A00000000046700000000000000000000000000000000000000000089000 *IRD000E 1065,002032-001 LEVEL=0 FRU(S)=FAN2

IOS000I 1065,AB,EQC,**,8200,,,*MASTER*, 502 vv 1000A00000000046700000000000000000000000000000000000000000081000 *IRD000E 1065,002032-001 LEVEL=0 FRU(S)=PWR1

IOS000I 1065,AB,EQC,**,8200,,,*MASTER*, 568 vv 1000A0000000004670000000000000000000000000000000000000000008F000 *IRD000E 1065,002032-001 LEVEL=0 FRU(S)=WWN-CRD

IOS000I 1065,AB,EQC,**,8200,,,*MASTER*, 662 vv 1000A0000000004670001000000000000000000000000000000000000000A000 *IRD000E 1065,002032-001 LEVEL=1 FRU(S)=SLOT10

IOS000I 1061,A8,EQC,**,8200,,,*MASTER*, 697 vv 1000A00000000046700010000000000000000000000000000000000000007000 *IRD000E 1061,002032-001 LEVEL=1 FRU(S)=SLOT7

FRU numbers The following Brocade FRU numbers are provided for error reports and associated FRU names that display in error reports. Note that the FRU number does not display in the error reports, but its associated FRU name does display. • 1 = SLOT1 • 2 = SLOT2 • 3 = SLOT3 • 4 = SLOT4 • 5 = SLOT5 • 6 = SLOT6 • 7 = SLOT7 • 8 = SLOT8 • 9 = SLOT9 • 10 = SLOT10 • 11 = SLOT11 • 12 = SLOT12 • 17 = PWR1

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 91 Swapping port area IDs

• 18 = PWR2 • 19 = PWR3 • 20 = PWR4 • 24 = FAN1 • 25 = FAN2 • 26 = FAN3 • 30 = CHASSIS • 31 = WWN-CRD

Swapping port area IDs If a port malfunctions, or if you want to connect to different devices without having to rewire your infrastructure, you can move a port’s traffic to another port ( swap port area ID ) without changing the I/O Configuration Data Set (IOCDS) on the mainframe. To swap port area IDs, refer to the "Swapping port area IDs" procedure in the Brocade Fabric OS Administration Guide. For more detail on the following commands that you will use to swap port area IDs, refer to the Brocade Fabric OS Command Reference Manual: • portSwapEnable • portDisable • portSwap • portSwapShow • PortSwapDisable

Important notes Consider the following when swapping port area IDs: • Ports that have been swapped cannot be moved to another logical switch. • Ports with area 0xFE or 0xFF addresses cannot be swapped when FMS mode is enabled. • You can use the portSwapShow command to display information about swapped ports in a switch. • You can use the portSwap command to disable the port swapping feature. You cannot use the portSwap command after this feature is disabled. The enabled state of the port swapping feature is persistent across reboots and power cycles. Enabling and disabling the port swapping feature does not affect previously executed port swapping operations.

Blade swapping Blade swapping allows you to swap one blade with another of the same type; in this way, you can perform a FRU replacement with minimal traffic disruption. The entire operation is accomplished when the bladeSwap command runs on Fabric OS. Fabric OS then validates each command before actually implementing the command on the platform. If an error is encountered, the blade swap quits without disrupting traffic flowing through the blades. If an unforeseen error does occur during the running of the bladeSwap command, an entry will be made into the RASlog and all ports that have been swapped as part of the blade swap operation will be swapped back. On successful completion of the command, the source and destination blades are left in a disabled state, allowing you to complete the cable move.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 92 53-1004394-02 Common FICON issues

Blade swapping is based on port swapping and has the same restrictions: • Shared area ports cannot be swapped. • Faulty blades cannot be swapped. • Ports or blades with area OxFE or OxFF addresses cannot be swapped when FMS mode is enabled. • Ports that are part of a trunk group cannot be swapped. • GbE ports cannot be swapped. • Swapping ports between different logical switches is not supported. The ports on the source and destination blades must be in the same logical switch. • Undetermined board types cannot be swapped. For example, a blade swap will fail if the blade type cannot be identified. • Blade swapping is not supported when swapping to a different model of blade or a different port count. For example, you cannot swap an FC16-32 blade with an FC16-48 port blade. • Blade swapping is not supported on application blades. • Blade swapping is supported on the FX8-24 blade, but only the 12 Fibre Channel ports will swap. The GbE and VE_ Ports will not be swapped. For procedures and more information on blade swapping, refer to the Brocade Fabric OS Administration Guide.

Common FICON issues Any information you need to verify that FICON has been set up correctly can be found in the Administering FICON Fabrics or the Configuring FICON CUP chapters.

Symptom Probable cause and recommended action Cascading: No path - Entry Link is ".." message This typically occurs when one or more of the required high integrity features for cascading have not been met. Check the following: • Review each step in Configuring switched point-to-point FICON on page 39 and Configuring cascaded FICON on page 44 and validate that all features are configured properly. • Validate that CUP is online for each FICON director or switch in the fabric with the data center’s system programmer. Path to a device does not come online. No connection to device. Make sure binding or zoning does not prevent the connection. Validate the following with the data center's system programmer: • Correct switch addresses (not switch IDs) are used in link statements. Remember that the switch address is the domain ID converted to hex and may have an offset. • The switch ID, used in the CHPID statements, was defined with the correct switch address. • All addressing (link statements) uses two-byte addressing on the channel if two-byte addressing has been previously used on that channel. This is necessary even when the specified path is not cascaded. Packets are being dropped between two FICON units. Distance between devices is impacting data. When planning cable needs, the following criteria must be considered: • Distance considerations • Fiber Optic Sub Assembly (FOSA) type (SW or LW) • Cable specifications (SM or MM)

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 93 Common FICON issues

Symptom Probable cause and recommended action

• Patch Panel Connections between FOSA ports (link loss .3-5 dB per) • Maximum allowable link budget (dB) loss For cabling, the most important factor of a Fibre Channel link is the selection of the Fibre Optic Sub Assembly (FOSA) and matching cable type, to support the required distance. Both ends of the optical link must have the matching FOSA (SFP) types. Channel path with two-byte addressing does not come online. The fabric may not be configured properly, cable connections are not correct, or cable is wrong type. Find out what CHPID the operator is attempting to bring online. In FICON environments, only the egress ports are defined in the IOCDS. The CHPID number of the channel appears in the node list, but only if the channel path has logged in. If the channel path will not come online, it may not have completed a Fibre Channel fabric login. If this is the case, you will have to rely on customer documentation to determine the switch port to which the channel is connected. Next, find out what type of error message the operator is getting. An IOS error message is reported when there is an error external to the host; an IEE error message indicates something is wrong internal to the host. Fabric Not Configured Properly • Make sure that the insistent domain ID is set and the domain IDs are unique for all switches in the fabric. • Make sure that the same binding method is used on all switches in the fabric. • Scroll through the node list and make sure there are no invalid attachments. • Make sure that the re-routing delay is turned off. Cabling Validate that cables are connected where intended. When using multimode fiber, make sure that all fiber is either all 50u or all 62.5u. A common mistake is to mix 50u and 62.5u fiber cables, which causes errors at patch panels. Example of a Boxed Channel In the following example, the CHPIDs with two-byte addressing did not come online. In response, the CHPID was configured offline and then reconfigured back online. MVS console commands and responses (lines beginning with "IEE" are responses and all other lines are entries).

CF CHP(60),OFFLINE IEE503I CHP(60),OFFLINE IEE712I CONFIG PROCESSING COMPLETE CF CHP(60),ONLINE IEE754I NOT ALL PATHS BROUGHT ONLINE WITH CHP(60) IEE502I CHP(60),ONLINE IEE712I CONFIG PROCESSING COMPLETE

The following line displays the status of the CHPID with the "D M =" command. All other lines are responses.

D M=CHP(60) IEE174I 03.29.45 DISPLAY M 021 CHPID 60: TYPE=1D, DESC=FICON INCOMPLETE, ONLINE DEVICE STATUS FOR CHANNEL PATH 60

Brocade Fabric OS FICON Configuration Guide, 8.1.0 94 53-1004394-02 Troubleshooting FICON

Symptom Probable cause and recommended action

0 1 2 3 4 5 6 7 8 9 A B C D E F 006 . $@ ...... SWITCH DEVICE NUMBER = NONE ATTACHED ND = NOT KNOWN PHYSICAL CHANNEL ID = 01F0 ************************ SYMBOL EXPLANATIONS ************************ + ONLINE @ PATH NOT VALIDATED - OFFLINE . DOES NOT EXIST * PHYSICALLY ONLINE $ PATH NOT OPERATIONAL

The responses "NOT ALL PATHS BROUGHT ONLINE" after attempting to configure the CHPID online and "FICON INCOMPLETE" in the display example indicate that the channel did not come online. You can determine this because the IEE error types are shown and combined with the validation that there was no attempt to do a basic FLOGI (no light displayed on the port view (LED) and no Fibre Channel frames were received). The Control Unit Port cannot access the switch. Domain or port ID has changed on CHPID link. A two-byte CHPID link is defined using a domain and port ID that must remain consistent. Any change in the physical link, such as a change in a domain or port ID, will prevent storage control unit access. Use the configure command to verify and set the insistent domain ID (IDID) parameter.

FICON:admin> configure

For more information and examples of using this command to set the IDID parameter, refer to the Configure command in the Brocade Fabric OS Command Reference. Unable to "vary online" FICON CUP port on the switch . FICON CUP port cannot go online. Use the haFailover command on the FICON director. This the only known fix as there is no known firmware solution.

Troubleshooting FICON This section provides information-gathering and troubleshooting techniques necessary to fix your problem.

General information to gather for all cases The following information must be gathered for all FICON environments: • The output from the standard support commands (portLogDump, supportSave, and supportShow) the Fabric Manager Event Log or Brocade Network Advisor logs. By default, the FICON group in the supportShow output is disabled. To enable the capture of FICON data in the supportShow output, enter the supportShowCfgEnable ficon command. After you get confirmation that the configuration has been updated, ouput from the following will be collected and display for the supportShow command: – ficonCupShow fmsmode – ficonCupShow modereg – ficonDbg dump rnid – ficonDbg log – ficonShow lirr

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 95 Troubleshooting FICON

– ficonShow rlir – ficonShow rnid – ficonShow switchrnid – ficuCmd dump -A • The type of mainframe involved including the make, model, and driver levels in use. • The type of storage array installed. Many arrays emulate a certain type of IBM array and the make, model, and firmware of the array in use must be provided. • Other detailed information for protocol-specific problems: – Port data structures, displayed using the ptDataShow command. – Port registers, displayed using the ptRegShow command. The following actions must be performed to troubleshoot all FICON environments: • Use the configUpload command to gather configuration files. Provide the IOCDS mainframe file. This will define how all mainframe ports are configured. • Verify that Dynamic Load Sharing (DLS) has been disabled with the dlsReset command. If DLS is enabled, traffic on existing ISL ports may be affected when one or more new ISLs is added between the same two switches. Specifically, adding the new ISL may result in dropped frames as routes are adjusted to take advantage of the bandwidth provided. By disabling DLS, you ensure that there will be no dropped frames. In thesupportShow output, search for route.stickyRoutes and check for a value of 1 or enter the dlsShow command. • Verify that IOD is enabled using the iodSet command to ensure in-order delivery. In the output from the supportShow or supportSave, search for route.delayReroute and check for a value of 1 as this indicates that the feature is turned on. Alternately, you can enter the iodShow command.

Switched point-to-point topology checklist Verify the following in your FICON environment to ensure proper functionality of the feature: • Fabric OS v6.1.0 or later release is installed on Brocade switch or director. • Appropriate management tool is being used, such as Brocade Network Advisor. • All required licenses are enabled for your FICON configuration. • Switch or director does not have a special mode setting turned on for FICON. • Brocade Advanced features software package (Trunking, Fabric Watch, Extended Fabric) license is activated.

NOTE There is no requirement to have a secure fabric in a switched point-to-point topology.

Cascaded topology checklist Verify the following in your FICON environment to ensure proper functionality of the feature: • Fabric OS v6.1.0 or later is installed Brocade switch or director. • Appropriate management tool is used, such as Brocade Network Advisor. • All required licenses are activated to enable your FICON configuration? • The switch or director does not have a special mode setting enabled for FICON. In addition to device-based routing, lossless, and in-order frame delivery (IOD), the dynamic load-sharing feature is enabled.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 96 53-1004394-02 Troubleshooting FICON CUP

• If you have a fabric for intermix mode of operations, separate zones for FICON and FCP devices are configured. • A maximum of one hop exists for both FCP and FICON devices (mainframe channel device connectivity rule). • The insistent domain ID flag is set to keep the domain ID of a fabric switch persistent. • The CHPID link path is defined using the two-byte address format. • The FICON channel connectivity to the storage CU port does not exceed one hop. • Proper security policies are enabled. Refer to Configuring cascaded FICON on page 44. • The Switch Connection Control (SCC) security policy is active. • Brocade Advanced features software package (Trunking, Fabric Watch, Extended fabric) license is activated.

Gathering additional information Collect information for your support provider as mentioned in the Brocade Fabric OS Troubleshooting and Diagnostics Guide. In addition, gather the following FICON-specific information. • Did the problem occur during an initial install or has was everything functioning prior to the problem? • What was changed immediately before the problem occurred. • Is the switch properly configured for a FICON environment. Refer to the most recent version of the Fabric OS Release Notes for notes on FICON setup and configuration. • Is this a switched point-to-point or cascaded environment. • Is the FICON group enabled for supportShow. Enter the supportShow command and verify that FICON is enabled under "supportshow groups enabled". If it is not enabled, use supportShowCfgEnable ficon command.

Link information Gather information about the physical status of the link. • Use the portshow command to display port operational information on Brocade extension switches and blades. Refer to Brocade Fabric OS Command Reference for complete descriptions of the porshow command syntax and options. • Use the sfpshow command to display status of the optics. Refer to Brocade Fabric OS Command Reference for complete descriptions of the exit command syntax and options.

CUP diagnostics FICON CUP supports the IBM Health Checker for zOS to diagnose problems. Refer to the IBM Redbooks website at www.redbooks..com for details on using the IBM Health Checker for z/OS. You can also refer to a Brocade publication that discusses CUP diagnostics and the IBM Health Checker for zOS, found at http:// www.brocade.com/content/dam/common/documents/content-types/whitepaper/brocade-control-unit-port-diagnostics-wp.pdf

Troubleshooting FICON CUP In addition to the information you collect for your support provider mentioned in Troubleshooting FICON on page 95, also gather the following information which is specific to FICON CUP: • Verify the FICON CUP license is installed.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 97 Troubleshooting NPIV

• Check the state of the CUP by running the ficonCupShow fmsmode command. If it is disabled, enter the ficonCupSet fmsmode enable command to enable it. If the CUP is on a director, enter the haFailover command to ensure both CPs are set correctly. • Verify that the switch is using Fabric OS v6.1.0 or later. • Ensure no device is plugged into port 254 on the Brocade FICON director. • Verify with the systems programmer that the CUP ports are defined properly. FICON ports are defined as part of the sysgen process. The z/OS systems programmer can verify if the CUP ports are defined properly. • Verify that ports 254 and 255 display Disabled (FMS Mode) by entering the switchShow command. If not, enter the portDisable command on the appropriate models for the related ports: – On a Brocade 48000, disable 10/30 and 10/31. – On a Brocade DCX Backbone, disable 12/30 and 12/31.

Troubleshooting NPIV Gather all information as listed in General information to gather for all cases on page 95 and Gathering additional information on page 97.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 98 53-1004394-02 Platforms Supporting FICON

• Introduction...... 99 • Supported platforms with end-of-support announcements...... 99 • Currently supported platforms...... 100 • Supported Brocade blades...... 100

Introduction This appendix provides the following support details: • Brocade products with end-of-support announcements supported for FICON for different IBM systems and drivers (Supported platforms with end-of-support announcements on page 99). • Brocade products currently supported for FICON for different IBM systems and drivers (Currently supported platforms on page 100). • Brocade blades supported for FICON in various Brocade Switch and Data Center Backbone products (Supported Brocade blades on page 100). Due to the nature of environments in which the mainframes are used, product qualification for FICON is more rigorous than with other products. As a result, not all product combinations and versions of Fabric OS are qualified for FICON.

NOTE Refer to the Fabric OS release notes for additional details about compatibility with IBM systems and drivers. Check that your current versions of IBM systems and drivers are compatible with the Fabric OS firmware that you plan to use.

Supported platforms with end-of-support announcements All Brocade products in the table below have end-of-support announcements. However, end-of-support dates vary for each product, and your service provider may have end-of-support dates that differ from Brocade dates. Contact your service provider for details. Firmware listed in the following table is the final version supported and the recommended target path.

TABLE 11 Supported platforms with end-of-support announcements Brocade 4900 Brocade 5000 Brocade 6140 Brocade i10K Brocade 7500 Brocade 48000 Brocade 5100 Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS z900 & z800 v6.2.0e v6.2.0e v9.9.9 v9.9.8 v6.4.2a v6.4.2a v7.0.0d Driver 3GF z990 & z890 v6.2.0e v6.2.0e v9.9.9 v9.9.8 v6.4.2a v6.4.2a v7.0.0d Driver 55K z9 EC & z9 BC v6.2.0e v6.2.0e v9.9.9 v9.9.8 v6.4.2a v6.4.2a v7.0.0d Driver 67L z10 EC & z10 v6.2.0e v6.2.0e v9.9.9 v9.9.8 v6.4.2a v6.4.2a v7.0.0d BC Driver 76D & 79F

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 99 Currently supported platforms

TABLE 11 Supported platforms with end-of-support announcements (continued) Brocade 4900 Brocade 5000 Brocade 6140 Brocade i10K Brocade 7500 Brocade 48000 Brocade 5100 Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS z10 BC Driver v6.2.0e v6.2.0e v9.9.9 v9.9.8 v6.4.2a v6.4.2a v7.0.0d 76D z196 Driver Not supported Not supported v9.9.9 v9.9.8 v6.4.2a v6.4.2a v7.0.0d 86E or 93G z114 Driver Not supported Not supported v9.9.9 v9.9.8 v6.4.2a v6.4.2a v7.0.0d 93G EC12 at driver Not supported Not supported Not supported Not supported v6.4.2a v6.4.2a v7.0.0d 12K

Currently supported platforms The table below lists Brocade products currently supported for Fabric OS 8.1.0 for various IBM z Systems and driver levels.

NOTE Please consult your Brocade SE for detailed information on IBM z14 qualified support. The IBM z14 was introduced on 17 July, 2017.

TABLE 12 Currently supported platforms Brocade 7840 Brocade G620 Brocade X6-4 Brocade X6-8 Brocade DCX Brocade DCX Brocade 6510 8510-4 8510-8 Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS Fabric OS z196 Driver 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 86E or 93G z114 Driver 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 93G EC12 and 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c BC12 at driver 12K z13 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c 8.1.0c z13s

Supported Brocade blades The table below lists Brocade blades supported for FICON in various Brocade Switch and Data Center Backbone and Director products in Fabric OS 8.1.0.

TABLE 13 Currently supported blades in Brocade Switch and Data Center Backbone and Director products DCX 8510-8 DCX 8510-4 X6-8 X6-4 SX6 No No Yes Yes FX8-241 Yes Yes No No FC16-32 Yes Yes No No FC16-48 Yes Yes No No CR16-8 Yes No No No

Brocade Fabric OS FICON Configuration Guide, 8.1.0 100 53-1004394-02 Supported Brocade blades

TABLE 13 Currently supported blades in Brocade Switch and Data Center Backbone and Director products (continued) DCX 8510-8 DCX 8510-4 X6-8 X6-4 CR16-4 No Yes No No FC32-48 No No Yes Yes

1. The Ethernet ports of an FX8-24 extension blade can operate with another FX8-24. The maximum number of FX8-24 blades supported in a chassis is four. An FX8-24 can operate with an FX8-24E; however, IPsec and compression is only supported on one 10GbE port on the FX8-24.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 101 Brocade Fabric OS FICON Configuration Guide, 8.1.0 102 53-1004394-02 Basic Switch Configuration

This appendix provides basic steps and commands to quickly configure a switch for fabric and possible FICON and cascaded FICON operation. For detailed concepts, procedures, and additional Fabric OS command options to configure a switch for point-to-point and cascaded FICON operation, refer to Administering FICON Fabrics. The following tables are included in this appendix: • The Switch configuration example and commands table provides the basic steps and commands in a checklist format to quickly configure a switch for fabric and possible FICON operation. • The Cascading (2-byte addressing) example and commands table provides additional steps and commands for FICON cascading (two-byte addressing).

TABLE 14 Switch configuration example and commands Feature Relevant Commands Upgrade code (if necessary). firmwaredownload firmwareshow Feature keys (add licenses). licenseadd licenseshow Create all logical switches and add all intended ports to each logical switch. lscfg The -ficon option sets many of the logical switch attributes for FICON use. lscfg -ficon Set switch offline. switchdisable Repeat the following procedure to configure switch parameters for each configure logical switch. To set the routing policy to 1: aptpolicy 1 1. Enter the configure command. You will be asked several questions. Only answer questions listed in the Relevant Commands column. Use defaults for other settings unless instructed by a Brocade Certified Architect for FICON. Note that the BB_Credit setting here should not be changed. BB_Credits will be set elsewhere in this checklist. 2. Change fabric parameter settings by answering Yes . After answering Yes , you will be asked several questions. Change only the following parameters. Leave all other parameters at the default unless instructed by a Brocade Certified Architect for FICON. After completing all of the Fabric Parameter settings, answer No for all other parameters. • Domain • Allow XISL Use When applicable. • Enable a 256 Area Limit – 0 - Not supported for FICON. – 1 - Zero-based addressing. Recommended for FICON. – 2 - Port-based addressing. Not supported for 48-port cards in 8-port slot chassis. • Disable Device Probing Set to 1. • Insistent Domain ID Mode

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 103 TABLE 14 Switch configuration example and commands (continued) Feature Relevant Commands

Answer Yes. Set Interop mode interopmode 0

0 - No other interop mode is supported for FICON. Device Based Routing. To set the routing policy to 2: aptpolicy 2 Set to 2. To display the routing policy: aptpolicy Set in-order delivery. iodset Enable dynamic load sharing with lossless DLS enabled. dlsset --enable -lossless Set switch name. switchname Set chassis name. chassisname Set switch online. switchenable Set the principal switch. This can only be one switch in the fabric. In mixed fabricprincipal 1 M-Type and B-Type fabrics, the M-Type must be the principal switch. If you are enabling FMS (CUP), disable all ports assigned address 0xFE portdisable and 0xFF. Enable FMS if FICON CUP will be used. ficoncupset fmsmode enable

NOTE ficoncupshow fmsmode High-integrity fabric requirements must be met and HIF mode enabled to enable FMS mode.

Set the default zone for no access. defZone --noaccess cfgsave defZone --show Configure zones. This is much easier with Brocade Network Advisor or cfgclear Web Tools. Typically, scripts are used when using Fabric OS commands. cfgcreate cfgdelete cfgdisable cfgenable cfgremove cfgsave cfgshow Clear all port statistics and trace information. supportsave -R errclear statsclear portlogclear diagclearerror -all tracedump -c slotstatsclear errclear ficonclear rlir Turn on FICON logging. supportshowcfgenable ficon

Brocade Fabric OS FICON Configuration Guide, 8.1.0 104 53-1004394-02 TABLE 14 Switch configuration example and commands (continued) Feature Relevant Commands Set port fencing. Setting port fencing parameters is much easier with To clear alarms: Brocade Network Advisor. fwalarmsfilterset 0 To define alarms: fwconfigure Respond to menu driven prompts accordingly. To enable the defined alarms: fwalarmsfilterset 1

Parameters in the table below are only required when two-byte link addressing is used in the IOCP. Normally, these parameters are not set when single-byte addressing is used.

TABLE 15 Cascading (two-byte addressing) example and commands Feature Parameter Add members to the SCC Policy. secPolicyCreate "SCC_POLICY", "wwn;wwn; ..." Or, to add all switches already in the fabric, use an "*" for each WWN: secPolicyCreate "SCC_POLICY", "*" Save the policy. secpolicysave Activate the policy. secpolicyactivate Enable the ACL Fabric-Wide Consistency Policy and enforce a strict SCC fddcfg --fabwideset "SCC:S;" policy.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 105 Brocade Fabric OS FICON Configuration Guide, 8.1.0 106 53-1004394-02 Address Binding Examples

• Sequential address binding...... 107 • Unbinding multiple ports...... 112

Sequential address binding This section provides an example that will allow all ports on all blades installed in a Brocade DCX or DCX 8510 FICON director to use sequential, zero-based, Mode 1 addresses. This type of range binding is the default in a FICON logical switch. Refer to Brocade Fabric OS Administration Guide for additional information. The following figure illustrates ports with sequential addresses.

FIGURE 25 Sequential addresses

Before binding an address with the portAddress --bind command, disable the port with the portDisable command. To change the bound address, you must first unbind the addresses. Refer to Unbinding multiple ports on page 112 for an easy method to unbind multiple ports at once.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 107 Sequential address binding

For more information on port addressing modes, refer to Addressing modes on page 46.

Example scripts for binding ports (Mode 1) The following example scripts containing the portAddress --bind command bind all ports on the DCX Backbone to sequential, zero based (Mode 1) addresses. You can copy and paste these scripts directly into a Telnet Fabric OS command line session. If a port does not exist, an error message will be reported, but this has no effect.

date # Slot 1 portaddress --bind 1/0 0000 portaddress --bind 1/1 0100 portaddress --bind 1/2 0200 portaddress --bind 1/3 0300 portaddress --bind 1/4 0400 portaddress --bind 1/5 0500 portaddress --bind 1/6 0600 portaddress --bind 1/7 0700 portaddress --bind 1/8 0800 portaddress --bind 1/9 0900 portaddress --bind 1/10 0A00 portaddress --bind 1/11 0B00 portaddress --bind 1/12 0C00 portaddress --bind 1/13 0D00 portaddress --bind 1/14 0E00 portaddress --bind 1/15 0F00 portaddress --bind 1/16 1000 portaddress --bind 1/17 1100 portaddress --bind 1/18 1200 portaddress --bind 1/19 1300 portaddress --bind 1/20 1400 portaddress --bind 1/21 1500 portaddress --bind 1/22 1600 portaddress --bind 1/23 1700 portaddress --bind 1/24 1800 portaddress --bind 1/25 1900 portaddress --bind 1/26 1A00 portaddress --bind 1/27 1B00 portaddress --bind 1/28 1C00 portaddress --bind 1/29 1D00 portaddress --bind 1/30 1E00 portaddress --bind 1/31 1F00 # Slot 2 portaddress --bind 2/0 2000 portaddress --bind 2/1 2100 portaddress --bind 2/2 2200 portaddress --bind 2/3 2300 portaddress --bind 2/4 2400 portaddress --bind 2/5 2500 portaddress --bind 2/6 2600 portaddress --bind 2/7 2700 portaddress --bind 2/8 2800 portaddress --bind 2/9 2900 portaddress --bind 2/10 2A00 portaddress --bind 2/11 2B00 portaddress --bind 2/12 2C00 portaddress --bind 2/13 2D00 portaddress --bind 2/14 2E00 portaddress --bind 2/15 2F00 portaddress --bind 2/16 3000 portaddress --bind 2/17 3100 portaddress --bind 2/18 3200 portaddress --bind 2/19 3300 portaddress --bind 2/20 3400 portaddress --bind 2/21 3500 portaddress --bind 2/22 3600 portaddress --bind 2/23 3700 portaddress --bind 2/24 3800

Brocade Fabric OS FICON Configuration Guide, 8.1.0 108 53-1004394-02 Sequential address binding

portaddress --bind 2/25 3900 portaddress --bind 2/26 3A00 portaddress --bind 2/27 3B00 portaddress --bind 2/28 3C00 portaddress --bind 2/29 3D00 portaddress --bind 2/30 3E00 portaddress --bind 2/31 3F00 # Slot 3 portaddress --bind 3/0 4000 portaddress --bind 3/1 4100 portaddress --bind 3/2 4200 portaddress --bind 3/3 4300 portaddress --bind 3/4 4400 portaddress --bind 3/5 4500 portaddress --bind 3/6 4600 portaddress --bind 3/7 4700 portaddress --bind 3/8 4800 portaddress --bind 3/9 4900 portaddress --bind 3/10 4A00 portaddress --bind 3/11 4B00 portaddress --bind 3/12 4C00 portaddress --bind 3/13 4D00 portaddress --bind 3/14 4E00 portaddress --bind 3/15 4F00 portaddress --bind 3/16 5000 portaddress --bind 3/17 5100 portaddress --bind 3/18 5200 portaddress --bind 3/19 5300 portaddress --bind 3/20 5400 portaddress --bind 3/21 5500 portaddress --bind 3/22 5600 portaddress --bind 3/23 5700 portaddress --bind 3/24 5800 portaddress --bind 3/25 5900 portaddress --bind 3/26 5A00 portaddress --bind 3/27 5B00 portaddress --bind 3/28 5C00 portaddress --bind 3/29 5D00 portaddress --bind 3/30 5E00 portaddress --bind 3/31 5F00 # Slot 4 portaddress --bind 4/0 6000 portaddress --bind 4/1 6100 portaddress --bind 4/2 6200 portaddress --bind 4/3 6300 portaddress --bind 4/4 6400 portaddress --bind 4/5 6500 portaddress --bind 4/6 6600 portaddress --bind 4/7 6700 portaddress --bind 4/8 6800 portaddress --bind 4/9 6900 portaddress --bind 4/10 6A00 portaddress --bind 4/11 6B00 portaddress --bind 4/12 6C00 portaddress --bind 4/13 6D00 portaddress --bind 4/14 6E00 portaddress --bind 4/15 6F00 portaddress --bind 4/16 7000 portaddress --bind 4/17 7100 portaddress --bind 4/18 7200 portaddress --bind 4/19 7300 portaddress --bind 4/20 7400 portaddress --bind 4/21 7500 portaddress --bind 4/22 7600 portaddress --bind 4/23 7700 portaddress --bind 4/24 7800 portaddress --bind 4/25 7900 portaddress --bind 4/26 7A00 portaddress --bind 4/27 7B00 portaddress --bind 4/28 7C00 portaddress --bind 4/29 7D00 portaddress --bind 4/30 7E00

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 109 Sequential address binding

portaddress --bind 4/31 7F00 # Slot 9 portaddress --bind 9/0 8000 portaddress --bind 9/1 8100 portaddress --bind 9/2 8200 portaddress --bind 9/3 8300 portaddress --bind 9/4 8400 portaddress --bind 9/5 8500 portaddress --bind 9/6 8600 portaddress --bind 9/7 8700 portaddress --bind 9/8 8800 portaddress --bind 9/9 8900 portaddress --bind 9/10 8A00 portaddress --bind 9/11 8B00 portaddress --bind 9/12 8C00 portaddress --bind 9/13 8D00 portaddress --bind 9/14 8E00 portaddress --bind 9/15 8F00 portaddress --bind 9/16 9000 portaddress --bind 9/17 9100 portaddress --bind 9/18 9200 portaddress --bind 9/19 9300 portaddress --bind 9/20 9400 portaddress --bind 9/21 9500 portaddress --bind 9/22 9600 portaddress --bind 9/23 9700 portaddress --bind 9/24 9800 portaddress --bind 9/25 9900 portaddress --bind 9/26 9A00 portaddress --bind 9/27 9B00 portaddress --bind 9/28 9C00 portaddress --bind 9/29 9D00 portaddress --bind 9/30 9E00 portaddress --bind 9/31 9F00 # Slot 10 portaddress --bind 10/0 A000 portaddress --bind 10/1 A100 portaddress --bind 10/2 A200 portaddress --bind 10/3 A300 portaddress --bind 10/4 A400 portaddress --bind 10/5 A500 portaddress --bind 10/6 A600 portaddress --bind 10/7 A700 portaddress --bind 10/8 A800 portaddress --bind 10/9 A900 portaddress --bind 10/10 AA00 portaddress --bind 10/11 AB00 portaddress --bind 10/12 AC00 portaddress --bind 10/13 AD00 portaddress --bind 10/14 AE00 portaddress --bind 10/15 AF00 portaddress --bind 10/16 B000 portaddress --bind 10/17 B100 portaddress --bind 10/18 B200 portaddress --bind 10/19 B300 portaddress --bind 10/20 B400 portaddress --bind 10/21 B500 portaddress --bind 10/22 B600 portaddress --bind 10/23 B700 portaddress --bind 10/24 B800 portaddress --bind 10/25 B900 portaddress --bind 10/26 BA00 portaddress --bind 10/27 BB00 portaddress --bind 10/28 BC00 portaddress --bind 10/29 BD00 portaddress --bind 10/30 BE00 portaddress --bind 10/31 BF00 # Slot 11 portaddress --bind 11/0 C000 portaddress --bind 11/1 C100 portaddress --bind 11/2 C200 portaddress --bind 11/3 C300

Brocade Fabric OS FICON Configuration Guide, 8.1.0 110 53-1004394-02 Sequential address binding

portaddress --bind 11/4 C400 portaddress --bind 11/5 C500 portaddress --bind 11/6 C600 portaddress --bind 11/7 C700 portaddress --bind 11/8 C800 portaddress --bind 11/9 C900 portaddress --bind 11/10 CA00 portaddress --bind 11/11 CB00 portaddress --bind 11/12 CC00 portaddress --bind 11/13 CD00 portaddress --bind 11/14 CE00 portaddress --bind 11/15 CF00 portaddress --bind 11/16 D000 portaddress --bind 11/17 D100 portaddress --bind 11/18 D200 portaddress --bind 11/19 D300 portaddress --bind 11/20 D400 portaddress --bind 11/21 D500 portaddress --bind 11/22 D600 portaddress --bind 11/23 D700 portaddress --bind 11/24 D800 portaddress --bind 11/25 D900 portaddress --bind 11/26 DA00 portaddress --bind 11/27 DB00 portaddress --bind 11/28 DC00 portaddress --bind 11/29 DD00 portaddress --bind 11/30 DE00 portaddress --bind 11/31 DF00 # Slot 12 portaddress --bind 12/0 E000 portaddress --bind 12/1 E100 portaddress --bind 12/2 E200 portaddress --bind 12/3 E300 portaddress --bind 12/4 E400 portaddress --bind 12/5 E500 portaddress --bind 12/6 E600 portaddress --bind 12/7 E700 portaddress --bind 12/8 E800 portaddress --bind 12/9 E900 portaddress --bind 12/10 EA00 portaddress --bind 12/11 EB00 portaddress --bind 12/12 EC00 portaddress --bind 12/13 ED00 portaddress --bind 12/14 EE00 portaddress --bind 12/15 EF00 portaddress --bind 12/16 F000 portaddress --bind 12/17 F100 portaddress --bind 12/18 F200 portaddress --bind 12/19 F300 portaddress --bind 12/20 F400 portaddress --bind 12/21 F500 portaddress --bind 12/22 F600 portaddress --bind 12/23 F700 portaddress --bind 12/24 F800 portaddress --bind 12/25 F900 portaddress --bind 12/26 FA00 portaddress --bind 12/27 FB00 portaddress --bind 12/28 FC00 portaddress --bind 12/29 FD00 portaddress --bind 12/30 FE00 portaddress --bind 12/31 FF00

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 111 Unbinding multiple ports

Unbinding multiple ports The following example scripts containing the portAddress --unbind command unbind all addresses on an 8-slot chassis that is fully populated with 32-port cards. You can copy and paste these scripts directly into a Telnet Fabric OS command line session. If a port does not exist, an error message will be reported, but this has no effect.

for ((i=0;i<32;i++)); do (echo 1/$i;portaddress --unbind 1/$i); done for ((i=0;i<32;i++)); do (echo 2/$i;portaddress --unbind 2/$i); done for ((i=0;i<32;i++)); do (echo 3/$i;portaddress --unbind 3/$i); done for ((i=0;i<32;i++)); do (echo 4/$i;portaddress --unbind 4/$i); done for ((i=0;i<32;i++)); do (echo 9/$i;portaddress --unbind 9/$i); done for ((i=0;i<32;i++)); do (echo 10/$i;portaddress -unbind 10/$i); done for ((i=0;i<32;i++)); do (echo 11/$i;portaddress --unbind 11/$i); done for ((i=0;i<32;i++)); do (echo 12/$i;portaddress --unbind 12/$i); done

Brocade Fabric OS FICON Configuration Guide, 8.1.0 112 53-1004394-02 Configuration Information Record

You can use the following worksheet for recording FICON configuration information.

NOTE Attached E_Ports can be for an ISL, control unit (CU) interface, or central processor complex (CPC) channel path identifier (CHPID).

FICON® Switch Configuration Worksheet FICON® Switch Manufacturer:______Type: ______Model: ______S/N: ______HCD Defined Switch ID ______(Switch ID) Cascaded Directors No___ Yes ___ FICON® Switch Domain ID ______(Switch @) Corresponding Cascaded Switch Domain ID ____ Fabric Name ______FICON® Switch F_Ports and Attached N_Ports/E_Ports Slot Number Port Port Laser Type: Port Name Node Type Machine Model Serial ISL, CU I/F, Number Address LX / SX CU / CHNL Type Number CPC CHPID

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 113 Brocade Fabric OS FICON Configuration Guide, 8.1.0 114 53-1004394-02 EBCDIC Code Page

Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8-bit character encoding (code page) used on IBM mainframe operating systems such as z/OS and S/390. Code page 37 is an EBCDIC code page with full Latin-1 character set.

Brocade Fabric OS FICON Configuration Guide, 8.1.0 53-1004394-02 115 Brocade Fabric OS FICON Configuration Guide, 8.1.0 116 53-1004394-02