- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Real-Time Network Throughput Stats
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
02-27-2004 03:52 AM
02-27-2004 03:52 AM
Does anyone already have one written or could point me in the right direction?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2004 04:07 AM
02-27-2004 04:07 AM
Re: Real-Time Network Throughput Stats
RRD and MRTG are my favorites to use if I don't have perfview/measureware.
I would use the SNMP MIBs
.mgmt.mib-2.interfaces.ifTable.ifEntry
.ifOutOctets
.ifInOctets
.ifSpeed
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.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2004 04:24 AM
02-27-2004 04:24 AM
Re: Real-Time Network Throughput Stats
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2004 04:37 AM
02-27-2004 04:37 AM
Solutionlet z=0
let y=$(lanadmin -g mibstats 0|grep -i oct|grep Inbound|awk '{print $4}')
let y2=$(lanadmin -g mibstats 0|grep -i oct|grep Outbound|awk '{print $4}')
while true
do
let x=0
sleep 1
x=$(lanadmin -g mibstats 0|grep -i oct|grep Inbound|awk '{print $4}')
x2=$(lanadmin -g mibstats 0|grep -i oct|grep Outbound|awk '{print $4}')
let t=$x-$y
let t2=$x2-$y2
let y=$x
let y2=$x2
let z=$z+1
let t=$t/1000
let t2=$t2/1000
echo "${t} Kb/s inbound, ${t2} Kb/s outbound"
done
This was posted on forum. I find it vary userful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2004 05:08 AM
02-27-2004 05:08 AM
Re: Real-Time Network Throughput Stats
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.
1. Create an rrd database with three data sources - Input Output and Throughput.
2. Gather the information of the remote systems for Input/Ouput using snmpget. For ex.,
snmpget -c "your_community" .1.3.6.1.2.1.2.2.1.16.1 |awk '{FS=":";print $3}' > outfile
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).
3. Use 'rrdtool update' with the above values to update the rrd database.
4. Now the database is updated, you can then graph them easily.
You can implement snmpget through perl.
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.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2004 05:13 AM
02-27-2004 05:13 AM
Re: Real-Time Network Throughput Stats
I was editing the message, left for lunch, came back finished editing and posted it.
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.
If you are interested in only system or few HP systems with remote access , then the method described by RAC is sufficient.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2004 05:21 AM
02-27-2004 05:21 AM
Re: Real-Time Network Throughput Stats
#!/bin/sh
# Script for checking lan i/p and o/p stats.
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "lanstats \"PPA\""
echo "Example:"
echo "lanstats 1"
exit 1
fi
#get the PPA from the command line
let LAN=$1
#initialize some variables
let z=0
let y=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')
let y2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')
#run it until a control c
while true
do
let x=0
sleep 1
let x=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')
let x2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')
let t=$x-$y
let t2=$x2-$y2
let y=$x
let y2=$x2
let z=$z+1
...skipping...
#!/bin/sh
# Script for checking lan i/p and o/p stats.
# Geoff Wild
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "lanstats \"PPA\""
echo "Example:"
echo "lanstats 1"
exit 1
fi
#get the PPA from the command line
let LAN=$1
#initialize some variables
let z=0
let y=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')
let y2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')
#run it until a control c
while true
do
let x=0
sleep 1
let x=$(lanadmin -g mibstats $LAN|grep -i oct|grep Inbound|awk '{print $4}')
let x2=$(lanadmin -g mibstats $LAN|grep -i oct|grep Outbound|awk '{print $4}')
let t=$x-$y
let t2=$x2-$y2
let y=$x
let y2=$x2
let z=$z+1
let t=$t/1000
let t2=$t2/1000
echo "${t} Kb/s inbound, ${t2} Kb/s outbound"
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2004 05:48 AM
03-01-2004 05:48 AM
Re: Real-Time Network Throughput Stats
I _believe_ there is also a monitor mode in Glance that might be usable.