Virtualization Technology News and Information
Article
RSS
Gathering Virtual Server Network Statistics

Ben Armstrong comes through again.  This time, he offers up a script that uses the VM Accountant in order to display information about how much network traffic the virtual machines have received and sent.

Set vs = CreateObject("VirtualServer.Application")
set vms = vs.VirtualMachines

For Each vm in vms
        Wscript.Echo "Virtual machine: " & vm.Name
        Wscript.Echo "Network bytes sent: " & vm.Accountant.NetworkBytesSent
        Wscript.Echo "Network bytes received: " & vm.Accountant.NetworkBytesReceived
        Wscript.Echo
Next

Check out the original post where you can leave your comments for Ben, here.

Published Tuesday, April 18, 2006 3:12 PM by David Marshall
Filed under:
Comments
There are no comments for this post.
To post a comment, you must be a registered user. Registration is free and easy! Sign up now!
Calendar
<April 2006>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456