Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Monitor  PSched  Flow  Performance  

 Content of Monitor PSched Flow Performance.vbs
MD5 Hash: 97AABDA18603A3DC46775DBB2A0DC000
' Description: Uses cooked performance counters to measure flow statistics from the packet scheduler


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
set objRefresher = CreateObject("WbemScripting.SWbemRefresher")
Set colItems = objRefresher.AddEnum _
(objWMIService, "Win32_PerfFormattedData_PSched_PSchedFlow").objectSet
objRefresher.Refresh

For i = 1 to 5
For Each objItem in colItems
Wscript.Echo "Average Packets in Netcard: " & _
objItem.AveragePacketsinnetcard
Wscript.Echo "Average Packets in Sequencer: " & _
objItem.Averagepacketsinsequencer
Wscript.Echo "Average Packets in Shaper: " & _
objItem.Averagepacketsinshaper
Wscript.Echo "Bytes Scheduled: " & objItem.Bytesscheduled
Wscript.Echo "Bytes Scheduled Per Second: " & _
objItem.BytesscheduledPersec
Wscript.Echo "Bytes Transmitted: " & objItem.Bytestransmitted
Wscript.Echo "Bytes Transmitted Per Second: " & _
objItem.BytestransmittedPersec
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Maximum Packets in Netcard: " & _
objItem.MaximumPacketsinnetcard
Wscript.Echo "Maximum Packets in Sequencer: " & _
objItem.Maxpacketsinsequencer
Wscript.Echo "Maximum Packets in Shaper: " & _
objItem.Maxpacketsinshaper
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Non-conforming Packets Scheduled: " & _
objItem.Nonconformingpacketsscheduled
Wscript.Echo "Non-conforming Packets ScheduledPersec: " & _
objItem.NonconformingpacketsscheduledPersec
Wscript.Echo "Non-conforming Packets Transmitted: " & _
objItem.Nonconformingpacketstransmitted
Wscript.Echo "Non-conforming Packets TransmittedPersec: " & _
objItem.NonconformingpacketstransmittedPersec
Wscript.Echo "Packets Dropped: " & objItem.Packetsdropped
Wscript.Echo "Packets Dropped Per Second: " & _
objItem.PacketsdroppedPersec
Wscript.Echo "Packets Scheduled: " & objItem.Packetsscheduled
Wscript.Echo "Packets Scheduled Per Second: " & _
objItem.PacketsscheduledPersec
Wscript.Echo "Packets Transmitted: " & objItem.Packetstransmitted
Wscript.Echo "Packets Transmitted Per Second: " & _
objItem.PacketstransmittedPersec
Wscript.Sleep 2000
objRefresher.Refresh
Next
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a