MSiSCSI_NICPerformance WMI Class
The MSiSCSI_NICPerformance WMI class exposes performance statistics for a network interface card (NIC) port. The miniport driver that registers this class should create one instance of the class for each port on the adapter.
The initiator should implement one instance of the MSiSCSI_NICPerformance class for each Ethernet port on the adapter and register each instance of the class the name of the particular physical device object (PDO) for the port.
The MSiSCSI_NICPerformance class is defined in Iscsiprf.mof.
class MSiSCSI_NICPerformance : Win32_PerfRawData {
[key] string InstanceName;
boolean Active;
[read, WmiDataId(1), PerfDefault,
CounterType(PERF_COUNTER_COUNTER),
// 32bit per sec display
DefaultScale(0), PerfDetail(100), description("Number of
bytes per second transmitted via Ethernet port") :
amended]
uint32 BytesTransmitted;
[read, WmiDataId(2), PerfDefault,
CounterType(PERF_COUNTER_COUNTER),
// 32bit per sec display
DefaultScale(0), PerfDetail(100), description("Number of
bytes per second received via Ethernet port") : amended]
uint32 BytesReceived;
[read, WmiDataId(3), PerfDefault,
CounterType(PERF_COUNTER_COUNTER),
// 32bit per sec display
DefaultScale(0), PerfDetail(100), description("Number of
bytes per second transmitted via Ethernet port") :
amended]
uint32 PDUTransmitted;
[read, WmiDataId(4), PerfDefault,
CounterType(PERF_COUNTER_COUNTER),
// 32bit per sec display
DefaultScale(0), PerfDetail(100), description("Number of
bytes per second received via Ethernet port") : amended]
uint32 PDUReceived;
};
When the WMI tool suite compiles the preceding class definition, it produces the MSiSCSI_NICPerformance data structure.