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

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

On Debian possible default full paths are:

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

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