- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- measuring lan speed without glance
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
11-17-2003 07:49 PM
11-17-2003 07:49 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2003 07:50 PM
11-17-2003 07:50 PM
Solutionexport HOSTNAME=$(hostname)
let 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 into $HOSTNAME, ${t2} Kb/s outbound from $HOSTNAME"
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2003 07:54 PM
11-17-2003 07:54 PM
Re: measuring lan speed without glance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2003 07:57 PM
11-17-2003 07:57 PM
Re: measuring lan speed without glance
lanadmin -g mibstats 0
to
lanadmin -g mibstats
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2003 10:30 PM
11-17-2003 10:30 PM
Re: measuring lan speed without glance
though basically not much different from Stefan's solution, if you have Perl you could use the attached script.
To find out about its usage try
$ perldoc /path/where/this/script/was/copied_to
If your box isn't a MC/SG cluster and you know wich NIC's mibstats to query anyway, just change the line of code where the assignment to something like
my $prim_nic = 2;
if your NIC was say lan2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 06:23 PM
11-18-2003 06:23 PM
Re: measuring lan speed without glance
Use the netstat -in command
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 11:30 PM
11-18-2003 11:30 PM
Re: measuring lan speed without glance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 12:57 AM
11-19-2003 12:57 AM
Re: measuring lan speed without glance
# lan-thru-put
Started - Wed Nov 19 06:53:24 MST 2003
Iterations remaining: 1 ; Collection time: 60 seconds
Collecting data ...
Finished - Wed Nov 19 06:54:24 MST 2003
Interface IP Address Hostname InPkts OutPkts KbIn/Sec KbOut/Sec TtlKb/Sec
============================================================================================
lan4* none none 0 1 0 0 0
lan5 156.44.59.39 pc0004f 0 0 0 0 0
lan2:1 156.44.176.32 156.44.176.32 0 0 0 0 0
lo0 127.0.0.1 localhost 0 0 0 0 0
lan1 156.44.44.182 pc0004hb 0 2 0 0 0
lan5:1 156.44.59.32 iqadbcif 0 0 0 0 0
lan2 156.44.176.28 pc0004 0 0 0 0 0
lan3* none none 0 0 0 0 0
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 01:05 AM
11-19-2003 01:05 AM
Re: measuring lan speed without glance
Open an FTP session with another server (Solaris or HPUX 11.11) and invoke the following:
put "|dd if=/dev/zero bs=32k count=1000" /dev/null
And here are the expected 1 way bandwidth on a switched environment:
100BT - 8-10 MBytes/sec
1000BT - 20-40 Mbytes/sec (dependent on CPU)
1000SX - 30-60 Mbytes/sec. (again dependent on CPU)
FCIP/IPFC (ie. JNI Cards running IP)
- 40-60 Mbytes/sec. sustained