' Agent Plugin to get detailed network information per network interface ' Execute as module_plugin cscript //B network.vbs Option Explicit Dim colAdapters, objAdapter, NicDescription, strFileName, objFS, objTS, colAdapters2, objAdapter2 Dim totalNetworkUsage totalNetworkUsage=0 Set colAdapters2 = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery("SELECT * FROM Win32_PerfRawData_Tcpip_NetworkInterface WHERE Name != 'isatap.localdomain'") For Each objAdapter2 in colAdapters2 totalNetworkUsage = totalNetworkUsage + objAdapter2.BytesTotalPersec Next Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine " Network_Usage_Bytes" Wscript.StdOut.WriteLine " Total bytes/sec transfered in this system" Wscript.StdOut.WriteLine " generic_data_inc" Wscript.StdOut.WriteLine " " & totalNetworkUsage & "" Wscript.StdOut.WriteLine " bytes/sec" Wscript.StdOut.WriteLine " Networking" Wscript.StdOut.WriteLine "" WScript.Quit