network speed between servers

Recently we have been seeing some slow response to requests and found that the network connectivity speed was one issue to address. Is there a way we can monitor the network speed between the servers.

We do not want to install any third party softwares. Any shell scripts / OS tools is what we are looking for.
Who is Participating?
woolmilkporcConnect With a Mentor Commented:

in case you really don't want to install any third-party software,
here is a small script using the FTP command I suggested im my first post.
It doesn't need a local file, nor will it write a remote file.
You can give the target hostname as 1st parameter (default: localhost)
and the number of megabytes to transfer as the 2nd one (default: 100).
If the 3rd parameter is any nonblank character except "R",
the logfile /tmp/ftpspeed.[pid] will NOT be removed.
A drawback of the script is that it needs a clear text password.
I experimented a bit with formatting the speed value FTP reports,
but of course you can do with it what you like.
btw. you don't need 'hash' to have FTP report the transfer speed, 'verbose' is sufficient.


# --- Variables --- #
# --- Doit --- #
ftp -n $host <<EOF >/tmp/ftpspeed.$$ 2>/dev/null 
quote user $user
quote pass $pass
put "| dd if=/dev/zero bs=1m count=$mb" /dev/null
# --- Make a nice MB value. Not very elegant, could be improved a lot. --- # 
a=$(awk -F"(" '/bytes/ {print $2}' /tmp/ftpspeed.$$ | cut -d")" -f1)
le=$(echo $a | cut -d"+" -f2 | cut -d" " -f1)
val=$(echo $a | cut -d"e" -f1 |tr -d ".")000000
MB=$(echo $val | awk "{print substr(\$1,1,$le+1)/1024}")
# --- Output --- #
echo $(date) - FTP transfer speed \($mb MB\) to $host is $MB Megabytes/sec
# --- Cleanup --- #
[ ${3:-R} == R ] && rm /tmp/ftpspeed.$$

Open in new window

you can check the switch port setting and the servers nics' settings. You may monitor switch ports stats for those servers and this depends on you switch capabilities
woolmilkporcConnect With a Mentor Commented:
a simple way to test FTP speed by means of FTP without actually storing data on the target host is this -
- start an FTP session to your host and issue
put "| dd if=/dev/zero bs=1m count=1000" /dev/null
this will transfer 100 MB to your host, and FTP will report the network speed.
Besides that there is iperf, a very small and simple, yet useful tool to measure network speed -
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

if you do scp between two servers then you can see the rate at which files are transferred. This gives you some idea about the speed between them. FTP also shows stats when using hash command
nociSoftware EngineerCommented:
Netio from
does exactly this.

If will show you the transfer rate under several conditions (small/large packet, tcp/udp etc.).

Runs on Unix/Windows/VMS/DOS
nociSoftware EngineerCommented:
(I hit enter a tad to quick)..

NETIO can be considered 3rd party,  but it will show things like misconfigurations in adapters that would otherwise be hard to track (like misnegotiated auto configured interfaces or hard-set half/full duplex mismatches etc.)

Source code of the tool is available on the named site.
Kamran ArshadIT AssociateCommented:

You can use any of the below applications to check throughput;

Iperf      Open-Source
ttcp      Open-Source
Netperf      Open-Source
NetQoS      Propriety
Qcheck      Propriety
simplenetsoftware      Propriety
Bandwidth Meter      Propriety

Personal recommendation is using either Iperf or QCheck.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.