afpcmd: 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/afpcmd - from package: afpfs-ng

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