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

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

On Debian possible default full paths are:

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

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