sasl2-sample-client: 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/sasl2-sample-client - from package: cyrus-sasl-devel

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