• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

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 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
0
mrc032
Asked:
mrc032
  • 2
  • 2
1 Solution
 
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.
0
 
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.
0
 
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.
0
 
mrc032Author Commented:
partly asnwerd
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now