MoshiachNow
IS-IT--Management
HI,
On windows I use the following code to Display my network card performance:
my $objWMIService = Win32::OLE->GetObject("winmgmts:\\\\$computer\\root\\CIMV2") or die "WMI connection failed.\n";
my $colItems = $objWMIService->ExecQuery("SELECT * FROM Win32_PerfRawData_Tcpip_NetworkInterface", "WQL",
wbemFlagReturnImmediately | wbemFlagForwardOnly);
The problem is that the number is very different from the real bytes/sec displayed by the Network monitor .
Is there a better method to aquire the above from script ?
Thanks
Long live king Moshiach !
On windows I use the following code to Display my network card performance:
my $objWMIService = Win32::OLE->GetObject("winmgmts:\\\\$computer\\root\\CIMV2") or die "WMI connection failed.\n";
my $colItems = $objWMIService->ExecQuery("SELECT * FROM Win32_PerfRawData_Tcpip_NetworkInterface", "WQL",
wbemFlagReturnImmediately | wbemFlagForwardOnly);
The problem is that the number is very different from the real bytes/sec displayed by the Network monitor .
Is there a better method to aquire the above from script ?
Thanks
Long live king Moshiach !