MS_SM_PortInformationMethods WMI 클래스
Storage Management API를 지원하는 HBA 미니포트 드라이버는 MS_SM_PortInformationMethods 클래스를 사용하여 포트 특성을 쿼리합니다.
MS_SM_PortInformationMethods 클래스는 Hbaapi.mof에서 다음과 같이 정의됩니다.
class MS_SM_PortInformationMethods
{
[key]
string InstanceName;
boolean Active;
[Implemented, WmiMethodId(1)]
void SM_GetPortType(
[in ]
uint32 PortIndex,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out, HBA_PORTTYPE_QUALIFIERS ]
uint32 PortType
);
[Implemented, WmiMethodId(2)]
void SM_GetAdapterPortAttributes(
[in ]
uint32 PortIndex,
[in,
cpp_quote("#define SM_PORT_SPECIFIC_ATTRIBUTES_MAXSIZE "
" max(sizeof(MS_SMHBA_FC_Port), "
" sizeof(MS_SMHBA_SAS_Port))")
]
uint32 PortSpecificAttributesMaxSize,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out, HBAType("MS_SMHBA_PORTATTRIBUTES") ]
MS_SMHBA_PORTATTRIBUTES PortAttributes
);
[Implemented, WmiMethodId(3)]
void SM_GetDiscoveredPortAttributes(
[in ] uint32 PortIndex,
[in ] uint32 DiscoveredPortIndex,
[in ] uint32 PortSpecificAttributesMaxSize,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out, HBAType("MS_SMHBA_PORTATTRIBUTES") ]
MS_SMHBA_PORTATTRIBUTES PortAttributes
);
[Implemented, WmiMethodId(4)]
void SM_GetPortAttributesByWWN(
[in, HBAType("HBA_WWN")] uint8 PortWWN[8],
[in, HBAType("HBA_WWN")] uint8 DomainPortWWN[8],
[in ]
uint32 PortSpecificAttributesMaxSize,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out, HBAType("MS_SMHBA_PORTATTRIBUTES") ]
MS_SMHBA_PORTATTRIBUTES PortAttributes
);
[Implemented, WmiMethodId(5)]
void SM_GetProtocolStatistics(
[in ] uint32 PortIndex,
[in ] uint32 ProtocolType,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out, HBAType("MS_SMHBA_PROTOCOLSTATISTICS") ]
MS_SMHBA_PROTOCOLSTATISTICS ProtocolStatistics
);
[Implemented,
Description("Typical counters SMHBA_SASPHYSTATISTICS (9 counters) or"
" MSFC_HBAPortStatistics (15 counters)"),
WmiMethodId(6)
]
void SM_GetPhyStatistics(
[in ] uint32 PortIndex,
[in ] uint32 PhyIndex,
[in ] uint32 InNumOfPhyCounters,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out] uint32 TotalNumOfPhyCounters,
[out] uint32 OutNumOfPhyCounters,
[out, WmiSizeIs("OutNumOfPhyCounters")]
sint64 PhyCounter[]
);
[Implemented, WmiMethodId(7)]
void SM_GetFCPhyAttributes(
[in ] uint32 PortIndex,
[in ] uint32 PhyIndex,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out, HBAType("MS_SMHBA_FC_PHY") ]
MS_SMHBA_FC_PHY PhyType
);
[Implemented, WmiMethodId(8)]
void SM_GetSASPhyAttributes(
[in ] uint32 PortIndex,
[in ] uint32 PhyIndex,
[out, HBA_STATUS_QUALIFIERS ]
HBA_STATUS HBAStatus,
[out, HBAType("MS_SMHBA_SAS_PHY") ]
MS_SMHBA_SAS_PHY PhyType
);
[Implemented, WmiMethodId(10)]
void SM_RefreshInformation();
};
WMI 도구 모음에서 컴파일하는 경우 이 클래스 정의는 다음 데이터 구조를 생성합니다.
MS_SM_PortInformationMethods
이 WMI 클래스와 연결된 메서드는 없습니다.