We help IT Professionals succeed at work.

Massure bandwith within virtual machine

Medium Priority
323 Views
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 strNic.name
                  case "Marvell Yukon 88E8053 PCI-E Gigabit Ethernet Controller - SecuRemote Miniport"
                        UtilNetwork =  FormatNumber(((strNic.BytesTotalPerSec*8)/strNic.CurrentBandwidth)*100,2)
              end select
      next
      Set oNIC = nothing
end function

This doesn't work.

Thanks
Comment
Watch Question

Danny McDanielClinical Systems Analyst

Commented:
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

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.
Clinical Systems Analyst
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
partly asnwerd
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.