<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calculating Bytes per Second or KB per Second in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863292#M579971</link>
    <description>Hello there&lt;BR /&gt;This may seem a strange question but does any one know how to calculate the bytes per second throughput through a network card.&lt;BR /&gt;We have Glance on one machine in the States but not on one of our machines in Germany.&lt;BR /&gt;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.&lt;BR /&gt;If you need further explaination please let me know and I will explain further.&lt;BR /&gt;So far we have:&lt;BR /&gt;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&lt;BR /&gt;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.&lt;BR /&gt;I know I have simplified it greatly but where / which metric's should I use.&lt;BR /&gt;Thanks and Best regards&lt;BR /&gt;Ben</description>
    <pubDate>Thu, 12 Dec 2002 15:57:38 GMT</pubDate>
    <dc:creator>BEN WRIGHT</dc:creator>
    <dc:date>2002-12-12T15:57:38Z</dc:date>
    <item>
      <title>Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863292#M579971</link>
      <description>Hello there&lt;BR /&gt;This may seem a strange question but does any one know how to calculate the bytes per second throughput through a network card.&lt;BR /&gt;We have Glance on one machine in the States but not on one of our machines in Germany.&lt;BR /&gt;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.&lt;BR /&gt;If you need further explaination please let me know and I will explain further.&lt;BR /&gt;So far we have:&lt;BR /&gt;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&lt;BR /&gt;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.&lt;BR /&gt;I know I have simplified it greatly but where / which metric's should I use.&lt;BR /&gt;Thanks and Best regards&lt;BR /&gt;Ben</description>
      <pubDate>Thu, 12 Dec 2002 15:57:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863292#M579971</guid>
      <dc:creator>BEN WRIGHT</dc:creator>
      <dc:date>2002-12-12T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863293#M579972</link>
      <description>check out the command&lt;BR /&gt;lanadmin&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 12 Dec 2002 16:05:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863293#M579972</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-12-12T16:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863294#M579973</link>
      <description>&lt;BR /&gt;netstat -s&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Dec 2002 16:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863294#M579973</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-12-12T16:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863295#M579974</link>
      <description>oops, youve already tried netstat -s. In that case PerfView is the best. Use it to graph network packets in/out on your server (from anything from an hour to a few months) and then do a test whereby you swamp the network card (say ftp a 1Gb file) and then on the PerfView graph you will see the max throughput of your card, which you can then compare to a normal day and see what% you are actually utilising.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Dec 2002 16:18:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863295#M579974</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-12-12T16:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863296#M579975</link>
      <description>Thanks Bill&lt;BR /&gt;But this would mean that I would have to run the command manually to get the values, I want to script it if possible.&lt;BR /&gt;Also I would then assume that:&lt;BR /&gt;1 Octet = 8 bits = 1 byte&lt;BR /&gt;Thus my reading of (over 15 Seconds):&lt;BR /&gt;965,002 Inbound Octets&lt;BR /&gt;445,241 Outbound Octets&lt;BR /&gt;Brings a reading of for 15 Seconds:&lt;BR /&gt;(965,002 / 15) / 1024 = 62 KB / s Inbound&lt;BR /&gt;(445,241 / 15) / 1024 = 28 KB / s Outbound&lt;BR /&gt;This is again high compared to Glance's average 10 KB / s In, and 8 KB /s Out - very differnt.&lt;BR /&gt;Best regards&lt;BR /&gt;Ben&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Dec 2002 16:29:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863296#M579975</guid>
      <dc:creator>BEN WRIGHT</dc:creator>
      <dc:date>2002-12-12T16:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863297#M579976</link>
      <description>PerView is the same as Glance me thinks, we don't (if we can want to spend any money on this machine).&lt;BR /&gt;Best regards&lt;BR /&gt;Ben</description>
      <pubDate>Thu, 12 Dec 2002 16:30:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863297#M579976</guid>
      <dc:creator>BEN WRIGHT</dc:creator>
      <dc:date>2002-12-12T16:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863298#M579977</link>
      <description>MRTG is what you want.  It will poll the site every 5 minutes and get the number of packets in and out and then draw you a neat graph of the traffic which makes a lot more sense than an average usage over 24 hours (which MRTG also provides).&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://people.ee.ethz.ch/~oetiker/webtools/mrtg/" target="_blank"&gt;http://people.ee.ethz.ch/~oetiker/webtools/mrtg/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It's free and runs on almost anything.&lt;BR /&gt;&lt;BR /&gt;Ron</description>
      <pubDate>Thu, 12 Dec 2002 19:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863298#M579977</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2002-12-12T19:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863299#M579978</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Iam using a free network bandwidth measurement tool called iperf for net benchmarking.&lt;BR /&gt;&lt;BR /&gt;you can download it from&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dast.nlanr.net/Projects/Iperf/" target="_blank"&gt;http://dast.nlanr.net/Projects/Iperf/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Dec 2002 05:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863299#M579978</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-12-13T05:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863300#M579979</link>
      <description>Netstat -p tcp will be for all TCP connections on the system, which will be all NICs and loopback. It will not include UDP traffic or traffic for link-level applications. It is also stats since boot, with no way to clear (see beforeafter below)&lt;BR /&gt;&lt;BR /&gt;Lanadmin can be used to retrieve stats from the individual links. If you are up-to-date on patches, you can use lanadmin -g mibstats &lt;PPA&gt;.&lt;BR /&gt;&lt;BR /&gt;You can take lanadmin snapshots over intervals, and if you like, use beforeafter (&lt;A href="ftp://ftp.cup.hp.com/dist/networking/tools/)" target="_blank"&gt;ftp://ftp.cup.hp.com/dist/networking/tools/)&lt;/A&gt;&lt;BR /&gt;to subtract one from the other&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Also, not all 100 Mbit/s links can go 100 Mbit/s - for example the HP-PB and EISA NICs cannot.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;There may be some additional useful stuff at &lt;A href="ftp://ftp.cup.hp.com/dist/networking/briefs/sane_glance.txt" target="_blank"&gt;ftp://ftp.cup.hp.com/dist/networking/briefs/sane_glance.txt&lt;/A&gt; which was written before Glance was enhanced to have the byte counters...&lt;/PPA&gt;</description>
      <pubDate>Fri, 13 Dec 2002 19:31:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863300#M579979</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2002-12-13T19:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Bytes per Second or KB per Second</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863301#M579980</link>
      <description>Try use glance with adviser_only mode turned on.&lt;BR /&gt;&lt;BR /&gt;glance -adviser_only -syntax mysyntax -j1  &amp;gt; networkstat.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the content of mysyntax:&lt;BR /&gt;print gbl_stattime&lt;BR /&gt;NETIF LOOP&lt;BR /&gt;print bynetif_name, " : ", bynetif_in_packet_rate, "(IN) : ", bynetif_out_packet_rate, "(OUT)" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This will give you an output like this every second: (These are # of packet per second though)&lt;BR /&gt;&lt;BR /&gt;=============16:42:21============&lt;BR /&gt;lan0         :    2.8(IN) :     0.0(OUT)&lt;BR /&gt;lo0          :    0.0(IN) :     0.0(OUT)&lt;BR /&gt;=============16:42:22============&lt;BR /&gt;lan0         :    3.3(IN) :     4.1(OUT)&lt;BR /&gt;lo0          :    0.0(IN) :     0.0(OUT)&lt;BR /&gt;=============16:42:23============&lt;BR /&gt;lan0         :    4.4(IN) :     5.5(OUT)&lt;BR /&gt;lo0          :    0.0(IN) :     0.0(OUT)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Dec 2002 00:43:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/calculating-bytes-per-second-or-kb-per-second/m-p/2863301#M579980</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-12-14T00:43:32Z</dc:date>
    </item>
  </channel>
</rss>

