Sponsored Content
Top Forums Shell Programming and Scripting Script for real time network traffic per process Post 302781035 by Corona688 on Friday 15th of March 2013 11:49:41 AM
Old 03-15-2013
nettop sounds like exactly what you want, though it's a utility not a script. Not sure if it's been ported to AIX.
 

8 More Discussions You Might Find Interesting

1. Cybersecurity

How to capture network traffic

Hi, Can someone give me the clue on how to capture network traffic at gateway. Thanx (2 Replies)
Discussion started by: kayode
2 Replies

2. Shell Programming and Scripting

Perl or Shell script to read a transaction log in real time

Hello, I have a Apache webserver running on RedHat. Its primary function is a proxy server for users accessing the internet. I have a transaction log that logs every transactions of every users. For users trying to access certain sites/content the transactions goes into a 302 redirect loop and... (2 Replies)
Discussion started by: bruno406
2 Replies

3. Infrastructure Monitoring

Network Traffic

Hi all, Got a strange one here, well not so much strange, different :-) I need to work out if a server is particulary chatty, whether its talking / communicating heavily to a particular server, as Im planning to physically move the server to a different server, over a link. Hence the... (6 Replies)
Discussion started by: sbk1972
6 Replies

4. Shell Programming and Scripting

shell script to replicate the log files from one location to another in real time

Hi, On the server, we have app log files in this location /app/logs/error.log On the same server, in a real time, we would like to replicate that into /var/ directory. if someone has already done this, please share the script. Thanks in advance. (4 Replies)
Discussion started by: lookinginfo
4 Replies

5. Shell Programming and Scripting

Shell script to convert epoch time to real time

Dear experts, I have an epoch time input file such as : - 1302451209564 1302483698948 1302485231072 1302490805383 1302519244700 1302492787481 1302505299145 1302506557022 1302532112140 1302501033105 1302511536485 1302512669550 I need the epoch time above to be converted into real... (4 Replies)
Discussion started by: aismann
4 Replies

6. AIX

Script for real time network traffic per process

Hi All Gurus, I want to write a script (bash/ksh/csh) which will show real time network traffic ( TCP or UDP ) generated by per process/PID. For both Linux/AIX system, as nethogs ( Linux package ) shows ? Any suggestion is MOST welcome. Thanks in Advance, Amritendu Das (1 Reply)
Discussion started by: linux.amrit
1 Replies

7. Infrastructure Monitoring

How do I know what traffic is in network port?

If I would like to know what connection , data , traffic in a network port ( eth0 ) , what can I do ? ps. because I always found the network is very slow , so I would like what the network port is doing . Thanks Login ID ust3 is currently in read-only mode for multiple infractions. Creating... (0 Replies)
Discussion started by: ust03
0 Replies

8. IP Networking

I would like to monitor network traffic for a computer on my network

My son does homework on a school laptop. I was thinking about setting up a gateway on my home network, so that I can monitor web traffic and know if he is doing his homework without standing over his shoulder. Ideally I would like to use the Raspberry Pi Model b that I already have. However, I... (15 Replies)
Discussion started by: gandolf989
15 Replies
netusage(1)						    BSD General Commands Manual 					       netusage(1)

NAME
netusage -- Display traffic usage statistics about the network SYNOPSIS
netusage [--help] netusage commands [arguments ...] DESCRIPTION
The netusage program interfaces with symptomsd to display and manage network traffic usage statistics. As additional feature of this tool allows for looking up an application or process name using a Mach-O UUID or a PID. NETWORK STATISTICS COMMANDS
The following commands are used to provide different representations of network traffic usage statistics collected on the system. --all-traffic [-p] [-r] [-n name] [-s sortorder] [-d importfile] [-e exportfile] [--unitize] [--compact] [--interactive] [--interval seconds] Display a table listing the total ingress and egress network traffic usage for each application or process categorized by interface. A timestamp of when the first network traffic was observed is also shown. By default, only applications will be shown unless the -p flag is provided. -p Show a list that includes the combination of applications and processes. -r Force a database refresh before showing the list. -n name Only show the application or process matching name. -s sortorder Sort the list according the following available sort orders: t Sort by total network usage. (default) c Sort by cellular interface usage. w Sort by wi-fi interface usage. i Sort by wired interface usage. a Sort by awdl interface usage. e Sort by expensive interface usage. -d importfile Show a traffic usage comparison between the current values and the contents of the file at importfile. -e exportfile Save the current traffic usage values into exportfile. --unitize Show the table values in unitized format (eg. KB/MB/GB). --compact When showing a traffic usage comparison, only list the entries whose values have changed. --interactive Show a traffic usage table that periodically refresh and can be viewed interactively. When an update occurs, the usage value for the application or process that generated network traffic will appear emphasized. You can use the following com- mands to interact with the table. q Quit p Toggles the values between showing raw bytes and unitized format s Change the sort order of the columns r Redraw the screen h Show help Arrow Keys Scroll the list --interval seconds Set the periodic refresh interval to the specified number of seconds. The minimum value is 5 seconds, and the default interval is 15 seconds. (Only valid in interactive mode) MANAGEMENT COMMANDS
These commands are used to manage and reset the collected network traffic usage statistics. --reset-entry [-p] [-n name] Reset the network traffic usage statistics stored for a single entry. Use the -n flag (and optionally the -p flag) to specify the name of the entry. --unitize name Specify the name of the application to reset the network usage statistics. -p Specify a process name instead of an application name. --reset-all Reset the network traffic usage statistics for all the stored entries. OTHER COMMANDS
These are optional utility commands that are available to look up applications or processes. --resolve-uuid uuid Resolve the given mach-O uuid into an application identifier. --resolve-pid pid Resolve the given pid into an application identifier. Darwin May 31, 2019 Darwin
All times are GMT -4. The time now is 03:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy