ibccquery: 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/sbin/ibccquery - from package: infiniband-diags

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

On Debian possible default full paths are:

/usr/sbin/ibccquery - from package: infiniband-diags

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