Massure bandwith within virtual machine

Posted on 2011-04-21
Last Modified: 2012-05-11
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.

Question by:mrc032
    LVL 16

    Expert Comment

    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.

    Author Comment

    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.
    LVL 16

    Accepted Solution

    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.

    Author Closing Comment

    partly asnwerd

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    #Citrix #Citrix Netscaler #HTTP Compression #Load Balance
    You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
    This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
    This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now