使用 WS-Management 从 Windows PC 获取 IPv6 路由表

使用 WS-Management 从 Windows PC 获取 IPv6 路由表

我必须使用 WS-Management 从 Windows PC 获取 IPv6 路由表。我在 Linux 上使用 wsman 作为客户端。我找到了 IPv4 的 Win32_IP4RouteTable WMI 类,但看起来 WMI 不支持 IPv6。有什么办法吗?

答案1

我终于找到了,合适的类是 \root\StandardCimv2 命名空间中的 MSFT_NetRoute,但它仅从 Windows 8 和 Windows Server 2012 开始存在。它包含 IPv4 和 IPv6 条目。

相关内容