如何获取特定于每个 MAC 地址的网络字节发送/接收值
我有一个问题,我必须弄清楚通过每个接口发送/接收了多少网络字节。对于具有有效 MAC 地址的接口,该数据是已知的。
步骤 1:我将使用“where ipenabled = true”条件从 win32_NetworkAdapterConfiguration 类获取具有 MAC 地址的有效接口集。
步骤 2:然后,我需要找到 bytessentpersec、currentbandwith 等。为此,我可以使用 Win32_PerfRawData_Tcpip_NetworkInterface,但它没有与上述类的任何字段通用的字段来将这些值与 macaddress 相关联。即使两个类的名称和描述字段都请参阅
请帮助解决此问题。有什么办法可以解决这个问题吗?
问候, 苏达山
I have a problem in which I have to figure out how many network bytes are sent / received through every interface. This data is to be known for interfaces that have a valid mac address.
Step 1: I will obtain set of valid interfaces with mac address from win32_NetworkAdapterConfiguration class using "where ipenabled = true" condition.
Step 2: I then need to find bytessentpersec, currentbandwith etc. For this I can use Win32_PerfRawData_Tcpip_NetworkInterface but this has no field that is common with any of the fields of the above class to associate these values to a macaddress. Even though the name and description fields of both class see
Please help to resolve this issue. Is there any kind of option to solve this?
Regards,
Sudarshan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Microsoft IP 帮助程序函数
Microsoft IP Helper Functions