Article
RSS
CODE: Gathering Network Statistics Within Virtual Server

Ben Armstrong does it again, this time offering a sample script to gather information about the Virtual Server virtual networks.

Set vs = CreateObject("VirtualServer.Application")
       
For Each vn in vs.VirtualNetworks
    Wscript.Echo
    Wscript.Echo "Virtual Network: " & vn.name
    Wscript.Echo "Packets sent: " & vn.packetsSent
    Wscript.Echo "Packets received: " & vn.packetsReceived
    Wscript.Echo
Next

The script will iterate over all of the virtual networks on an instance of Virtual Server and let you know the name, packets sent, and packets received for each network.

You can thank Ben and comment on the script on his Web site at the original article, here.

Published Saturday, May 13, 2006 7:45 PM by David Marshall
Filed under:
Share this post: del.ici.ousDel.ici.ous Digg ThisDigg Newsvine ThisNewsvine Reddit ThisReddit Slashdot It!Slashdot TechnoratiTechnorati
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
<May 2006>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910