- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Network traffic per socket
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 11:38 AM
01-10-2004 11:38 AM
Network traffic per socket
Hi,
I need to know the network traffic for a particular socket, ie. packet size transferred. How can I get this info with out using any tools, I mean inbuilt Unix commands. Suggestions are highly appreciated.
TIA
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 11:54 AM
01-10-2004 11:54 AM
Re: Network traffic per socket
I believe this tool can dod the job.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2004 12:01 PM
01-10-2004 12:01 PM
Re: Network traffic per socket
Thanks for ur answer. But I need to find out by using Unix commands, not by using any additional tools.
Thanks for additional info.
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2004 04:57 AM
01-11-2004 04:57 AM
Re: Network traffic per socket
Filtering the data is kinda a pain.
There are a couple of cookbooks in the itrc search database though.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2004 07:35 AM
01-11-2004 07:35 AM
Re: Network traffic per socket
To do with nettl
First create a filter file containing the port/socket numbers you wish to trace, for eg
filter tcp_sport 23 /* TCP port 23 =
telnet */
filter tcp_dport 23 /* TCP port 23 = telnet */
You can also add filters for a specific ip address
filter ip_saddr ip.ip.ip.ip
filter ip_daddr ip.ip.ip.ip
If you are 10baseT use the below to start your trace, ensure you have plenty of space in your filesystem as the tracefiles can grow quite quickly
nettl -tn pduin pduout â e ns_ls_driver â size 1024 â tracemax 99999 â f /tmp/raw
If you are using 100BaseT
nettl â tn pduin pduout â e all â size 1024 â tracemax 99999 â f /tmp/raw
Initiate an event you need to trace
To stop the trace
nettl â tf â e all
Then to format your file using the previously created filter file
netfmt -N -n -l -c filter -f raw.TRC0 > /tmp/fmt-10
The format will display the filters you have in place and create the