- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LAN traffic load in byte
Operating System - HP-UX
1753971
Members
7943
Online
108811
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-01-2008 08:51 AM
тАО02-01-2008 08:51 AM
Hi.
I need to measure the server LAN traffic load in byte for daily or weekly. Is there anyway that I can read this traffic statistics from HP-UX? Or, do I need a special software or appliance to measture this?
Please advice.
Thanks.
I need to measure the server LAN traffic load in byte for daily or weekly. Is there anyway that I can read this traffic statistics from HP-UX? Or, do I need a special software or appliance to measture this?
Please advice.
Thanks.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2008 02:32 PM
тАО02-01-2008 02:32 PM
Re: LAN traffic load in byte
Hello,
You can do it in many ways.
The simplest one is to use:
netstat -in
Here is an example for HP-UX 11.1:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 15.170.178.0 15.170.178.191 11275129 0 12984016 0 0
lo0 32808 127.0.0.0 127.0.0.1 2854459 0 2854459 0 0
It will report traffic in each interface.
You an create a cron job and summarize
reports any way you like.
Or, you can use more comprehensive tools
like OpenView, other SNMP-based solutions,
tcpdump(1), and so on.
Since your requirement is simple, just
use netstat(1).
Cheers,
VK2COT
You can do it in many ways.
The simplest one is to use:
netstat -in
Here is an example for HP-UX 11.1:
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0 1500 15.170.178.0 15.170.178.191 11275129 0 12984016 0 0
lo0 32808 127.0.0.0 127.0.0.1 2854459 0 2854459 0 0
It will report traffic in each interface.
You an create a cron job and summarize
reports any way you like.
Or, you can use more comprehensive tools
like OpenView, other SNMP-based solutions,
tcpdump(1), and so on.
Since your requirement is simple, just
use netstat(1).
Cheers,
VK2COT
VK2COT - Dusan Baljevic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2008 08:55 AM
тАО02-04-2008 08:55 AM
Solution
You don't require any extra software.
You can just use hpux's standard lanadmin command and query the mibstats for the relevant NIC.
E.g. here on this box I took 2 samples from lan0 within 10 secs.
So to get rates one only needs to divide the diffs by the sampling intervals to approximately get the first derivative.
As these are octets you only need to multiply
by 8 and divide by 1000 to get measures in kbps.
This gives roughly 10 Mbps of outbound traffic during this interval.
$ i=0;while (($((i+=1))<=2));do /usr/sbin/lanadmin -g mibstats 0|grep -E '(In|Out)bound Octets';sleep 10;done
Inbound Octets = 1895977889
Outbound Octets = 3452238482
Inbound Octets = 1902112099
Outbound Octets = 3464719953
$ echo '(3464719953-3452238482)*8/10/1000'|bc -l
9985.17680000000000000000
You can just use hpux's standard lanadmin command and query the mibstats for the relevant NIC.
E.g. here on this box I took 2 samples from lan0 within 10 secs.
So to get rates one only needs to divide the diffs by the sampling intervals to approximately get the first derivative.
As these are octets you only need to multiply
by 8 and divide by 1000 to get measures in kbps.
This gives roughly 10 Mbps of outbound traffic during this interval.
$ i=0;while (($((i+=1))<=2));do /usr/sbin/lanadmin -g mibstats 0|grep -E '(In|Out)bound Octets';sleep 10;done
Inbound Octets = 1895977889
Outbound Octets = 3452238482
Inbound Octets = 1902112099
Outbound Octets = 3464719953
$ echo '(3464719953-3452238482)*8/10/1000'|bc -l
9985.17680000000000000000
Madness, thy name is system administration
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP