Jump to content

Recommended Posts

Posted

Hi guys,

It's been a while since I wrote my last message here and a while since I used AutoIt. I'm currently sort of desperate and I'm trying to find some help in regards of getting the network usage per process!

I'm not interested in the total network usage of the NIC, but only on a specific PID's network utilization. They idea is to collect the amount of traffic uploaded and downloaded by a list of specific processes. So far Process Hacker and Process Explorer are capable of getting what I need, but I need to use these numbers in another script so they're sort of useless to me. I can't seem to find a way around it.

Any idea, help is greatly appreciated.

Thanks

Posted
21 minutes ago, SlackerAl said:

There is a lot of good stuff here: 

TH

Thanks, but unfortunately this is not good for what I need. Actually, if you look the last message in that thread on page 4, you'll see a user asking what I'm after: 

Quote

Well now since this has been bumped, I was wondering.
Is there a way to get process receive/send bytes over network like procexp?

 

Posted

could you use something like Tcpvcon (included with TcpView) to extract the information you need?

Problem solving step 1: Write a simple, self-contained, running, replicator of your problem.

Posted
9 minutes ago, SlackerAl said:

could you use something like Tcpvcon (included with TcpView) to extract the information you need?

Tcpvcon only shows the connections, but not the bandwidth utilization of each process. I'd be more than happy to use a 3rd party cmd-like application at this point, but couldn't really find any.

Posted (edited)

Sorry, I assumed more functionality in the cmd line version than there was... Last stab in the dark: How about https://www.wireshark.org/docs/man-pages/tshark.html available open source and windows binaries.

 

Skip that, I can't see how to resolve port addresses to PIDs

 

 

Edited by SlackerAl
Not helpful :/

Problem solving step 1: Write a simple, self-contained, running, replicator of your problem.

Posted

Appreciated the help though. I very rarely open new threads as I try to search the hell out of things before (why shall I re-invent the wheel)? But yeah, this is one of the times where I'm stuck everywhere. My goal would be doing it in Powershell, but AutoIT, C anything else would do now as long as I can then play with the outputs.

What's funny is that Resource Monitor in Windows shows the Send/Receive network info per process, but I can't find the same counter in Perfmon (which would be the one I'd use to then grab the counters from).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...