- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Calculating Bytes per Second or KB per Second
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
Discussions
Discussions
Discussions
Forums
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
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
тАО12-12-2002 07:57 AM
тАО12-12-2002 07:57 AM
This may seem a strange question but does any one know how to calculate the bytes per second throughput through a network card.
We have Glance on one machine in the States but not on one of our machines in Germany.
I want to calculate the throughput, or at least be able to say we are using at this point in time X% of the Network Cards 100MB/s capacity.
If you need further explaination please let me know and I will explain further.
So far we have:
1) used the netstat command and taken the results for number of Packets In / Out, assumed (bad thing to do but what else do we have) that the packet size is 1500 bytes (Mtu) and tried to calculate it that way but it does not seem to be even close
2) used the netstat command (-s -p tcp) and used the bytes (total) taken away from each other but again this seems to give us a figure way above what Glance is reporting.
I know I have simplified it greatly but where / which metric's should I use.
Thanks and Best regards
Ben
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 08:05 AM
тАО12-12-2002 08:05 AM
Re: Calculating Bytes per Second or KB per Second
lanadmin
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 08:16 AM
тАО12-12-2002 08:16 AM
Re: Calculating Bytes per Second or KB per Second
netstat -s
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 08:18 AM
тАО12-12-2002 08:18 AM
Re: Calculating Bytes per Second or KB per Second
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 08:29 AM
тАО12-12-2002 08:29 AM
Re: Calculating Bytes per Second or KB per Second
But this would mean that I would have to run the command manually to get the values, I want to script it if possible.
Also I would then assume that:
1 Octet = 8 bits = 1 byte
Thus my reading of (over 15 Seconds):
965,002 Inbound Octets
445,241 Outbound Octets
Brings a reading of for 15 Seconds:
(965,002 / 15) / 1024 = 62 KB / s Inbound
(445,241 / 15) / 1024 = 28 KB / s Outbound
This is again high compared to Glance's average 10 KB / s In, and 8 KB /s Out - very differnt.
Best regards
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 08:30 AM
тАО12-12-2002 08:30 AM
Re: Calculating Bytes per Second or KB per Second
Best regards
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 11:02 AM
тАО12-12-2002 11:02 AM
Re: Calculating Bytes per Second or KB per Second
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
It's free and runs on almost anything.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2002 09:10 PM
тАО12-12-2002 09:10 PM
Re: Calculating Bytes per Second or KB per Second
Iam using a free network bandwidth measurement tool called iperf for net benchmarking.
you can download it from
http://dast.nlanr.net/Projects/Iperf/
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2002 11:31 AM
тАО12-13-2002 11:31 AM
SolutionLanadmin can be used to retrieve stats from the individual links. If you are up-to-date on patches, you can use lanadmin -g mibstats
You can take lanadmin snapshots over intervals, and if you like, use beforeafter (ftp://ftp.cup.hp.com/dist/networking/tools/)
to subtract one from the other
Keep in mind that the octet counters (bytes) are still only 32-bits, which means they can wrap in short lengths of time on links that can actually do 100 MB/s (which would be gigabit links). It can still happen before tooo terribly long on 100Mb/s (case is important here :) links.
Also, not all 100 Mbit/s links can go 100 Mbit/s - for example the HP-PB and EISA NICs cannot.
Another thing to consider watching is the outbound queue length. If this is non-zero for non-trivial lengths of time, it means the NIC is getting saturated.
There may be some additional useful stuff at ftp://ftp.cup.hp.com/dist/networking/briefs/sane_glance.txt which was written before Glance was enhanced to have the byte counters...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2002 04:43 PM
тАО12-13-2002 04:43 PM
Re: Calculating Bytes per Second or KB per Second
glance -adviser_only -syntax mysyntax -j1 > networkstat.log 2>&1
Here is the content of mysyntax:
print gbl_stattime
NETIF LOOP
print bynetif_name, " : ", bynetif_in_packet_rate, "(IN) : ", bynetif_out_packet_rate, "(OUT)"
This will give you an output like this every second: (These are # of packet per second though)
=============16:42:21============
lan0 : 2.8(IN) : 0.0(OUT)
lo0 : 0.0(IN) : 0.0(OUT)
=============16:42:22============
lan0 : 3.3(IN) : 4.1(OUT)
lo0 : 0.0(IN) : 0.0(OUT)
=============16:42:23============
lan0 : 4.4(IN) : 5.5(OUT)
lo0 : 0.0(IN) : 0.0(OUT)