<?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 Re: Real-Time Network Throughput Stats in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204555#M167286</link>
    <description>Hi Nelson,&lt;BR /&gt;&lt;BR /&gt;RRD and MRTG are my favorites to use if I don't have perfview/measureware.&lt;BR /&gt;&lt;BR /&gt;I would use the SNMP MIBs &lt;BR /&gt;&lt;BR /&gt;.mgmt.mib-2.interfaces.ifTable.ifEntry&lt;BR /&gt;&lt;BR /&gt;.ifOutOctets&lt;BR /&gt;.ifInOctets&lt;BR /&gt;.ifSpeed&lt;BR /&gt;&lt;BR /&gt;An octet is 8 bits. So, you can keep your own counter and calculate the throughput based on the above three. You can integrate them with rrd.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
    <pubDate>Fri, 27 Feb 2004 12:07:16 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-02-27T12:07:16Z</dc:date>
    <item>
      <title>Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204554#M167285</link>
      <description>I am continously improving our home-grown system performance monitoring and stats gathering tool using Perl, and RRDTOOL. Already I have stats for just about anything except network. All I will need is actually code/script/command that will give me total network throughput(inbound+outbound) in Kbyes/sec.&lt;BR /&gt;&lt;BR /&gt;Does anyone already have one written or could point me in the right direction?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 11:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204554#M167285</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2004-02-27T11:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204555#M167286</link>
      <description>Hi Nelson,&lt;BR /&gt;&lt;BR /&gt;RRD and MRTG are my favorites to use if I don't have perfview/measureware.&lt;BR /&gt;&lt;BR /&gt;I would use the SNMP MIBs &lt;BR /&gt;&lt;BR /&gt;.mgmt.mib-2.interfaces.ifTable.ifEntry&lt;BR /&gt;&lt;BR /&gt;.ifOutOctets&lt;BR /&gt;.ifInOctets&lt;BR /&gt;.ifSpeed&lt;BR /&gt;&lt;BR /&gt;An octet is 8 bits. So, you can keep your own counter and calculate the throughput based on the above three. You can integrate them with rrd.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 12:07:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204555#M167286</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-27T12:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204556#M167287</link>
      <description>Sridhar.. would you mind sharing how and possibly an example? I am a fast-tracked admin working on HPUX environments.. so far I think I've covered the essentials except network monitoring..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 12:24:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204556#M167287</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2004-02-27T12:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204557#M167288</link>
      <description>#Script for chekcing lan i/p and o/p stats. &lt;BR /&gt;&lt;BR /&gt;let z=0&lt;BR /&gt;&lt;BR /&gt;let y=$(lanadmin -g mibstats 0|grep -i oct|grep Inbound|awk '{print $4}')&lt;BR /&gt;&lt;BR /&gt;let y2=$(lanadmin -g mibstats 0|grep -i oct|grep Outbound|awk '{print $4}')&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;let x=0&lt;BR /&gt;&lt;BR /&gt;sleep 1&lt;BR /&gt;&lt;BR /&gt;x=$(lanadmin -g mibstats 0|grep -i oct|grep Inbound|awk '{print $4}')&lt;BR /&gt;&lt;BR /&gt;x2=$(lanadmin -g mibstats 0|grep -i oct|grep Outbound|awk '{print $4}')&lt;BR /&gt;&lt;BR /&gt;let t=$x-$y&lt;BR /&gt;&lt;BR /&gt;let t2=$x2-$y2&lt;BR /&gt;&lt;BR /&gt;let y=$x&lt;BR /&gt;&lt;BR /&gt;let y2=$x2&lt;BR /&gt;&lt;BR /&gt;let z=$z+1&lt;BR /&gt;&lt;BR /&gt;let t=$t/1000&lt;BR /&gt;&lt;BR /&gt;let t2=$t2/1000&lt;BR /&gt;&lt;BR /&gt;echo "${t} Kb/s inbound, ${t2} Kb/s outbound"&lt;BR /&gt;&lt;BR /&gt;done  &lt;BR /&gt;&lt;BR /&gt;This was posted on forum. I find it vary userful.</description>
      <pubDate>Fri, 27 Feb 2004 12:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204557#M167288</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-02-27T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204558#M167289</link>
      <description>Hi Nelson,&lt;BR /&gt;&lt;BR /&gt;This means gathering information from my outdated memory cells. It's been almost 4 years since I used rrd/mrtg. I will try to put it as best as I can. Since you are already using rrdtool, you may be able to translate it into actual technical flow.&lt;BR /&gt;&lt;BR /&gt;1. Create an rrd database with three data sources - Input Output and Throughput.&lt;BR /&gt;&lt;BR /&gt;2. Gather the information of the remote systems for Input/Ouput using snmpget. For ex.,&lt;BR /&gt;&lt;BR /&gt;snmpget -c "your_community" .1.3.6.1.2.1.2.2.1.16.1 |awk '{FS=":";print $3}' &amp;gt; outfile&lt;BR /&gt;&lt;BR /&gt;Outfile will have the cumulative outoctets for the interface with the instance 1. Substract it with the previous collected value, devide with the interval of collection and multiply with 8 to get average outbound traffic (A) in bits. If the interface is reset, then the counter may start again from zero in which you will need to compare the previous and current values and arrive at the figure. Similarly calculate the inbound traffic (B). It's .1.10 OID.  Add both of them and devide with the speed of the interface multipled by 100. You will get %utilization (C). &lt;BR /&gt;&lt;BR /&gt;3. Use 'rrdtool update' with the above values to update the rrd database.&lt;BR /&gt;&lt;BR /&gt;4. Now the database is updated, you can then graph them easily.&lt;BR /&gt;&lt;BR /&gt;You can implement snmpget through perl.&lt;BR /&gt;&lt;BR /&gt;On the other hand, if you have ssh/rlogin access, you can calculate the inbound and outbound octet using lanadmin command. Instead of snmpget, you will need to do an ssh to get the values.&lt;BR /&gt;&lt;BR /&gt;-Sri &lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 13:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204558#M167289</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-27T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204559#M167290</link>
      <description>Hi (Again),&lt;BR /&gt;&lt;BR /&gt;I was editing the message, left for lunch, came back finished editing and posted it.&lt;BR /&gt;&lt;BR /&gt;I am talking in general about collecting information across multiple systems and loading them into rrd databases. snmp (if enabled) can get you this information irrespective of the OS.&lt;BR /&gt;&lt;BR /&gt;If you are interested in only system or few HP systems with remote access , then the method described by RAC is sufficient.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 27 Feb 2004 13:13:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204559#M167290</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-27T13:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204560#M167291</link>
      <description>I modified RAC's script to allow input of other lan cards:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# Script for checking lan i/p and o/p stats.&lt;BR /&gt;&lt;BR /&gt;if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Usage:"&lt;BR /&gt;  echo "lanstats \"PPA\""&lt;BR /&gt;  echo "Example:"&lt;BR /&gt;  echo "lanstats 1"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;#get the PPA from the command line&lt;BR /&gt;let LAN=$1&lt;BR /&gt;#initialize some variables&lt;BR /&gt;let z=0&lt;BR /&gt;let y=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')&lt;BR /&gt;let y2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')&lt;BR /&gt;&lt;BR /&gt;#run it until a control c&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;        let x=0&lt;BR /&gt;        sleep 1&lt;BR /&gt;        let x=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')&lt;BR /&gt;        let x2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')&lt;BR /&gt;        let t=$x-$y&lt;BR /&gt;        let t2=$x2-$y2&lt;BR /&gt;        let y=$x&lt;BR /&gt;        let y2=$x2&lt;BR /&gt;        let z=$z+1&lt;BR /&gt;...skipping...&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# Script for checking lan i/p and o/p stats.&lt;BR /&gt;# Geoff Wild&lt;BR /&gt;&lt;BR /&gt;if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Usage:"&lt;BR /&gt;  echo "lanstats \"PPA\""&lt;BR /&gt;  echo "Example:"&lt;BR /&gt;  echo "lanstats 1"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;#get the PPA from the command line&lt;BR /&gt;let LAN=$1&lt;BR /&gt;#initialize some variables&lt;BR /&gt;let z=0&lt;BR /&gt;let y=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')&lt;BR /&gt;let y2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')&lt;BR /&gt;&lt;BR /&gt;#run it until a control c&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;        let x=0&lt;BR /&gt;        sleep 1&lt;BR /&gt;        let x=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')&lt;BR /&gt;        let x2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')&lt;BR /&gt;        let t=$x-$y&lt;BR /&gt;        let t2=$x2-$y2&lt;BR /&gt;        let y=$x&lt;BR /&gt;        let y2=$x2&lt;BR /&gt;        let z=$z+1&lt;BR /&gt;        let t=$t/1000&lt;BR /&gt;        let t2=$t2/1000&lt;BR /&gt;        echo "${t} Kb/s inbound, ${t2} Kb/s outbound"&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Feb 2004 13:21:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204560#M167291</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-02-27T13:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Network Throughput Stats</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204561#M167292</link>
      <description>Contemporary versions of Measureware/PerfView will track the bytes per second over time and keep them archived for you along with loads of other metrics.  I suspect that any API/extraction information would be available on docs.hp.com.&lt;BR /&gt;&lt;BR /&gt;I _believe_ there is also a monitor mode in Glance that might be usable.</description>
      <pubDate>Mon, 01 Mar 2004 13:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/real-time-network-throughput-stats/m-p/3204561#M167292</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2004-03-01T13:48:32Z</dc:date>
    </item>
  </channel>
</rss>

