• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

iperf: command not found

by admin

The iperf command tests the maximum throughput an interface will support. The utility must be installed on both endpoint systems. One system is designated as a “server” and the other as a “client.” It is the iperf client that is getting tested. You can use this command to ensure that throughput is meeting your expectations.

A basic test is as follows:

1. On the server, run:

# iperf -s

2. On the client, run:

# iperf -c {server address}

3. Examine the results that appear.

If you encounter the below error while running the iperf command:

iperf: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
OS X brew install iperf
Debian apt-get install iperf
Ubuntu apt-get install iperf
Alpine apk add iperf
Arch Linux pacman -S iperf
Kali Linux apt-get install iperf
Fedora dnf install iperf
Raspbian apt-get install iperf

You can tune many parameters of iperf, like these:

  • –u: For using a UDP socket.
  • -t: For using a different time interval in seconds instead of the default of 10 seconds.
  • -T: Sets a TTL for multicast (the default is 1).
  • -B: Bind to a host, an interface, or a multicast address.

iperf Command Examples

1. Run on server:

# iperf -s

2. Run on server using UDP mode and set server port to listen on 5001:

# iperf -u -s -p 5001

3. Run on client:

# iperf -c server_address

4. Run on client every 2 seconds:

# iperf -c server_address -i 2

5. Run on client with 5 parallel threads:

# iperf -c server_address -P 5

6. Run on client using UDP mode:

# iperf -u -c server_address -p 5001

Filed Under: Linux

Some more articles you might also be interested in …

  1. pkginfo Command Examples in Linux
  2. curl Command Examples in Linux
  3. iotop Command Examples in Linux
  4. How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  5. “Authorization not available. Check if polkit service is running or see debug message for more information” – CentOS/RHEL 7 ssh service error
  6. ethtool Command Examples in Linux
  7. How to use shell aliases in Linux
  8. How to Set Resource Limits for a Process with Systemd in CentOS/RHEL 7 and 8
  9. How to configure LDAP Client on CentOS/RHEL 6 using SSSD
  10. killall: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • qsub Command Examples in Linux
  • qsub: command not found
  • qrcp Command Examples in Linux
  • qmrestore Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright