Massure bandwith within virtual machine

Need a sollution zo I can massure bandwith of a virtual machine on Hyper-V

function UtilNetwork(strComputer)
      const wbemFlagReturnImmediately = 16
      const wbemFlagForwardOnly = 32
      IFlags = wbemFlagForwardOnly + wbemFlagReturnImmediately
      dim onic, strnic
      Set oNIC = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2").ExecQuery("Select * FROM Win32_PerfRawData_Tcpip_NetworkInterface",,IFlags)
      For each strNic in Onic
             select case
                  case "Marvell Yukon 88E8053 PCI-E Gigabit Ethernet Controller - SecuRemote Miniport"
                        UtilNetwork =  FormatNumber(((strNic.BytesTotalPerSec*8)/strNic.CurrentBandwidth)*100,2)
              end select
      Set oNIC = nothing
end function

This doesn't work.

Who is Participating?
Danny McDanielClinical Systems AnalystCommented:
download netperf and install it on a VM and a physcial system, set up the connection between the two and let it rip.  You will still have the OS's on the two systems that can be less than optimally configured, but it will still give you a starting place to benchmark from.
Danny McDanielClinical Systems AnalystCommented:
are you trying to measure utilization or test the capacity of your network connection?  I'd use perfmon for the first option and netperf for the second.  ipmonitor and other monitoring tools can alert you when utilization reaches a specified level, too.
mrc032Author Commented:
I would like tot massure the bandwith of the virtual networkcard. Because of remote presentation of the data i don't want to use the ms tools.
mrc032Author Commented:
partly asnwerd
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.