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

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

On Debian possible default full paths are:

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

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