Il contatore perfmon sta usando nomi diversi NIC confronta con ipconfig/all e c chiamata # sistema, come potete vedere qui sotto (questo è da ipconfig/all)C contatore # prestazioni e il nome nic
Ethernet adapter HHHH: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : HP NC364T PCIe Quad Port Gigabit Server Adapter #3 Physical Address. . . . . . . . . : 00-1F-29-0D-26-59 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes IPv4 Address. . . . . . . . . . . : 166.49.47.10(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.240 Default Gateway . . . . . . . . . : NetBIOS over Tcpip. . . . . . . . : Disabled
using System.Net.NetworkInformation;
NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces();
Ottengo HP NC364T PCIe Quad Port Gigabit Server Adapter #3
. Esattamente come ipconfig. MA il perfmon utilizza HP NC364T PCIe Quad Port Gigabit Server Adapter _3
(trattino basso anziché hash). Devo usare una chiamata diversa per ottenere lo stesso identico contatore di quello che ha il perfmon? Se è così, che cosa è?
Si ottiene '" HP NC364T PCIe Quad Port Gigabit Server Adapter # 3 "utilizzando anche WMI – GETah