hca_self_test.ofed: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/hca_self_test.ofed - from package: mstflint

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/hca_self_test.ofed - from package: mstflint

You may install the required package with command apt-get install {package}
Error in other languages:
hca_self_test.ofed: bevel nie gevind nie
hca_self_test.ofed: comandă negăsită
hca_self_test.ofed: comando não encontrado
hca_self_test.ofed: commande introuvable
hca_self_test.ofed: command not found
hca_self_test.ofed: käsku ei ole
hca_self_test.ofed: không tìm thấy lệnh
hca_self_test.ofed: komanda nerasta
hca_self_test.ofed: Kommando nicht gefunden.
hca_self_test.ofed: kommandot finns inte
hca_self_test.ofed: komut yok
hca_self_test.ofed: nie znaleziono polecenia
hca_self_test.ofed: níor aimsíodh an t-ordú
hca_self_test.ofed: no se encontró la orden
hca_self_test.ofed: no s'ha trobat l'ordre
hca_self_test.ofed: opdracht niet gevonden
hca_self_test.ofed: parancs nem található
hca_self_test.ofed: perintah tidak ditemukan
hca_self_test.ofed: príkaz nenájdený
hca_self_test.ofed: příkaz nenalezen
hca_self_test.ofed: команда не найдена
hca_self_test.ofed: командата не е открита
hca_self_test.ofed: 命令找不到
hca_self_test.ofed: コマンドが見つかりません