Developers may need to detect the current configuration of host bus adapters (HBAs) throughout a Fibre Channel (FC) storage area networks (SAN), for example to automate discovery of the network topology. The HBA API function library provides C functions that can examine local HBAs. However, in order to discover the entire network topology you need a way to examine the HBAs of remote devices, such as servers, switches, and hubs. By using Web-based Enterprise Management (WBEM), your code can access the underlying WMI classes of remote HBAs as well as local ones. The sections of this paper explain how to use the WMI classes to collect the information you need. Most sections include code samples in VBScript or C#.
This information applies for the following operating systems:
Microsoft Windows Vista
Microsoft Windows Server 2003
Microsoft Windows XP
Microsoft Windows 2000
Included in this paper:
| • | Introduction |
| • | Listing Fibre Channel Adapters |
| • | Listing Fabric Elements |
| • | The SendCTPassThru Method |
| • | The SendCTPassThru Method In Parameters |
| • | The SendCTPassThru Method Out Parameters |
| • | Listing Fabric Ports |
| • | Listing Fibre Channel Nodes |
| • | The GetFcpTargetMapping Method |
| • | Platform Registration |
| • | SAN Topology |