clase WMI de MS_SM_PortInformationMethods
Un controlador de minipuerto de HBA que admite Storage Management API usa la clase MS_SM_PortInformationMethods para consultar los atributos de puerto.
La clase MS_SM_PortInformationMethods se define de la siguiente manera en 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();
};
Cuando se compila mediante el conjunto de herramientas WMI, esta definición de clase genera la siguiente estructura de datos:
MS_SM_PortInformationMethods
No hay métodos asociados a esta clase WMI.