MSiSCSI_ManagementOperations WMI 类
MSiSCSI_MangementOperations WMI 类包含 ping 方法,用于对目标地址执行 ICMP ping 请求。 此类在 Mgmt.mof 中定义如下。
class MSiSCSI_ManagementOperations
{
//
// This class must be registered using PDO instance names
//
[key]
string InstanceName;
boolean Active;
[WmiMethodId(10),
Implemented,
Description("Perform an ICMP ping") : amended,
cpp_quote(
"//\n"
"// This method is recommended.\n"
"//\n"
"// Ping will perform ICMP ping requests to the destination address \n"
"// and return the number of ping responses received. This is only supported\n"
"// by some HBA, use the ping command for the software initiator.\n"
"//\n"
)
]
void PingIPAddress(
[in,
Description("Number of requests to send") : amended
] uint32 RequestCount,
[in,
Description("Number of bytes in each request") : amended
] uint32 RequestSize,
[in,
Description("Number of ms to wait for response") : amended
] uint32 Timeout,
[in,
description("IP address to ping") : amended
] ISCSI_IP_Address Address,
[out,
ISCSI_STATUS_QUALIFIERS
] ISCSI_STATUS Status,
[out,
Description("Number of responses received") : amended
] uint32 ResponsesReceived
);
};
当 WMI 工具套件编译上述类定义时,它将生成 MSiSCSI_ManagementOperations 数据结构之一。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈