Windows Vista Forums

Network Usage Percentage

  1. #1


    Brian H. Guest

    Network Usage Percentage

    I've been digging through WMI trying to figure out how I can check network
    usage percentages. You know, if you go to the Windows Task Manager,
    Networking tab, you can see a graph of usage. I'd like to be able to check
    this remotely via PSH periodically.

    Any ideas?

    Thanks

    Brian H.


      My System SpecsSystem Spec

  2. #2


    Jeff Guest

    Re: Network Usage Percentage

    On Oct 31, 1:42 am, "Brian H." <hoort...@xxxxxx> wrote:

    > I've been digging through WMI trying to figure out how I can check network
    > usage percentages. You know, if you go to the Windows Task Manager,
    > Networking tab, you can see a graph of usage. I'd like to be able to check
    > this remotely via PSH periodically.
    >
    > Any ideas?
    >
    > Thanks
    >
    > Brian H.
    It looks like the Win32_PerfRawData_Tcpip_NetworkInterface class will
    give you what you want. Try looking at the BytesReceivedPersec,
    BytesSentPersec, BytesTotalPersec, and CurrentBandwidth properties;
    you should be able to calculate usage percentages with those values.

    Jeff


      My System SpecsSystem Spec

  3. #3


    Kirk Munro Guest

    Re: Network Usage Percentage

    Hi Brian,

    If you have the PowerGadgets snapin, you should be able to create a
    PowerGadget (I recommend a gauge) and have it automatically refresh at the
    interval you specify. Then you could just monitor it on your desktop. I
    wouldn't mind experimenting with this and have access to that snapin, so if
    you determine the script to calculate the percentage and want to share it
    here, I'll give it a whirl and share the script for the PowerGadget back
    once I'm done.

    -
    Kirk Munro
    Poshoholic
    http://poshoholic.com

    "Jeff" <jeff.hillman@xxxxxx> wrote in message
    news:1193808779.091208.230080@xxxxxx

    > On Oct 31, 1:42 am, "Brian H." <hoort...@xxxxxx> wrote:

    >> I've been digging through WMI trying to figure out how I can check
    >> network
    >> usage percentages. You know, if you go to the Windows Task Manager,
    >> Networking tab, you can see a graph of usage. I'd like to be able to
    >> check
    >> this remotely via PSH periodically.
    >>
    >> Any ideas?
    >>
    >> Thanks
    >>
    >> Brian H.
    >
    > It looks like the Win32_PerfRawData_Tcpip_NetworkInterface class will
    > give you what you want. Try looking at the BytesReceivedPersec,
    > BytesSentPersec, BytesTotalPersec, and CurrentBandwidth properties;
    > you should be able to calculate usage percentages with those values.
    >
    > Jeff
    >


      My System SpecsSystem Spec

  4. #4


    nsoftware Guest

    Re: Network Usage Percentage

    On Oct 30, 1:42 pm, "Brian H." <hoort...@xxxxxx> wrote:

    > I've been digging through WMI trying to figure out how I can check network
    > usage percentages. You know, if you go to the Windows Task Manager,
    > Networking tab, you can see a graph of usage. I'd like to be able to check
    > this remotely via PSH periodically.
    Just one more note - you can also do this with SNMP.

    Lance
    http://geekswithblogs.net/Lance


      My System SpecsSystem Spec

  5. #5


    Shafik Guest

    Re: Network Usage Percentage

    On Nov 7, 8:23 pm, nsoftw...@xxxxxx wrote:

    > On Oct 30, 1:42 pm, "Brian H." <hoort...@xxxxxx> wrote:
    >

    > > I've been digging through WMI trying to figure out how I can check network
    > > usage percentages. You know, if you go to the Windows Task Manager,
    > > Networking tab, you can see a graph of usage. I'd like to be able to check
    > > this remotely via PSH periodically.
    >
    > Just one more note - you can also do this with SNMP.
    >
    > Lancehttp://geekswithblogs.net/Lance
    you can start with that (break on Ctrl+C):

    $net = new-object
    System.Diagnostics.PerformanceCounterCategory("Network Interface")
    $name = $net.GetInstanceNames()[1]

    $down = New-Object System.Diagnostics.PerformanceCounter("Network
    Interface", "Bytes Received/sec", $name)
    $up = New-Object System.Diagnostics.PerformanceCounter("Network
    Interface", "Bytes Sent/sec", $name)

    $dlOld = $down.NextSample().RawValue
    $upOld = $up.NextSample().RawValue

    while ($true) {
    $dlValue = $down.NextSample().RawValue;
    $upValue = $up.NextSample().RawValue;

    $dlSpeed = $dlValue - $dlOld
    $upSpeed = $upValue - $upOld

    $dlOld = $dlValue
    $upOld = $upValue

    write-host -nonewline "down: " ([int]($dlSpeed / 1024)) " up:
    " ([int]($upSpeed / 1024))
    write-host " " -nonewline
    for ($i=0; $i -lt 30; $i++) {
    write-host -nonewline "`b"
    }
    sleep 1
    }


      My System SpecsSystem Spec

  6. #6


    Lance Guest

    Re: Network Usage Percentage

    On Oct 30, 1:42 pm, "Brian H." <hoort...@xxxxxx> wrote:

    > I've been digging through WMI trying to figure out how I can checknetwork
    > usage percentages. You know, if you go to the Windows Task Manager,
    > Networking tab, you can see a graph of usage. I'd like to be able to check
    > this remotely via PSH periodically.
    >
    > Any ideas?
    >
    > Thanks
    >
    > Brian H.
    Just one more note - you can also do this with SNMP.

    Lance
    http://geekswithblogs.net/Lance


      My System SpecsSystem Spec

Network Usage Percentage

Similar Threads
Thread Forum
Perfmon tracks network link usage per user?
Is possible to view server network link utilisation per client or computer/IP on a workgroup, windows 2003? I need to track who is using most of...
Server General
view network link usage
how view server network link utilisation per client or computer/IP on a workgroup, windows 2003? I need to track who is using most of the bandwith...
Server General
Monitor Network Usage
Hey guys, bit off topic but thought I'd ask anyway; On my home network (wired and wireless) i would like to monitor the internet usage by various...
Network & Sharing
Value as % (percentage)
Hi Guys, I ma very new to dotnet and am working on a custom function, see below: public static string Saving2(object ProdRRP, object...
.NET General
Battery maximum charge percentage
Hi, My laptop battery is not charging up to 100%. It is charging up to 53% only. I brought this laptop 1 year back and since 1 week I am facing...
Vista General
Battery percentage isn't changing
My battery has been on 3% all day and saying that the charger is plugged in but not charging. This was the case when the charger was not plugged in...
Vista General
Copying large folders only finds a tiny percentage of files
I just tried copying my music folder from my XP to my Vista PC. When I browsed the network share and moused over the Shared Music folder, Explorer...
Vista General